Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

hydrogen-predictive-search

Skill by remix-run

Guides developers building predictive search with @shopify/hydrogen. It covers the same-origin route handler, tracking URLs, custom fragments and framework bindings for search-as-you-type UI.

  • Score 78
  • 217 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install hydrogen-predictive-search

Built from the published package, never by AI.

git clone --depth 1 https://github.com/remix-run/remix-store /tmp/remix-store && mkdir -p ~/.claude/skills && cp -r /tmp/remix-store/.agents/skills/hydrogen-predictive-search ~/.claude/skills/hydrogen-predictive-search

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install hydrogen-predictive-search in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a guide for adding, changing or reviewing predictive search in a Hydrogen storefront built with @shopify/hydrogen. It describes four layers: a Storefront API query helper, a same-origin route at /api/predictive-search, a framework-neutral client store, and framework provider or hooks. The guide keeps rendering app-owned, since Hydrogen supplies data, state, request lifecycle and URL helpers rather than a dropdown template.

The skill explains how to register the packaged route handler, build result links with getPredictiveSearchItemUrl() so tracking parameters are kept, and add custom fragments for extra result fields. It also sets rules for progressive enhancement, requiring a working /search link or GET form without JavaScript, and for native dialog behavior. It is written for developers working on Hydrogen storefronts.

Written from the project's SKILL.md and checked against it.

What it can do

  • Server route setupRegisters the packaged predictive search route handler with createPredictiveSearchServerHandlers().
  • Tracking URLsBuilds predictive result links with getPredictiveSearchItemUrl() and keeps trackingParameters intact.
  • Custom fragmentsAdds extra result fields through additive fragments and makePredictiveSearchQueries().
  • No-JavaScript fallbackKeeps search working through a real /search link or GET form when JavaScript is off.
  • Client store behaviorPlaces debounce, aborts and stale response handling in the Hydrogen store instead of components.
  • Modal guidanceDescribes a native dialog opened with showModal() and safe backdrop-dismiss handling.
  • Verification checklistLists checks to confirm search works without JavaScript and preserves tracking parameters.
  • Anti-patternsLists common mistakes such as calling Storefront API from browser UI or reusing /search?predictive=true.

What you need

  • A Hydrogen storefront using @shopify/hydrogen
  • A Storefront API client in the app

Try asking

  • Add predictive search to my Hydrogen storefront search bar
  • Check that my predictive search result links keep trackingParameters
  • Review my search modal for a no-JavaScript fallback to /search

Good to know

  • Does not provide a dropdown or autocomplete component; rendering stays app-owned.
  • Framework-specific instructions are in a references/ directory.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/hydrogen-predictive-search/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to hydrogen-predictive-search

All alternatives →

Compare with shopify, shopify-development or ticketmaster

hydrogen-predictive-search: common questions

Does predictive search work without JavaScript?

The guide requires the search trigger to be a real /search link or a role="search" GET form. The full search page then renders results server-side.

Which endpoint does browser autocomplete use?

It uses the same-origin route GET /api/predictive-search by default. The guide says to override it with predictiveSearchEndpoint if the route lives elsewhere.

Why use getPredictiveSearchItemUrl()?

It infers the standard storefront route from the item's __typename and keeps Storefront API trackingParameters without double-encoding.

How do I install hydrogen-predictive-search?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is hydrogen-predictive-search free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is hydrogen-predictive-search safe to use?

It scores 78 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to hydrogen-predictive-search?

Similar skills: shopify, shopify-development, ticketmaster, seo-ecommerce.

hydrogen-predictive-search Install

Add to stack

Loading.