Start with ready-made primitives
Money, markets, Shop Pay, accounts, variants, consent-aware analytics. All maintained by Shopify.
// ~/lib/cart calls createCartComponents() onceimport {} from "~/lib/cart"; export function AddItem({variantId}) { const {, } = (); return ( <form {...()}> <input type="hidden" {...(, {value: variantId})} /> <button {...()}>Add item</button> </form> );} export function ({line}) { const {, } = (); return ( <form {...()}> <input type="hidden" {...(, {value: line.id})} /> <input type="hidden" {...(, {value: line.quantity})} /> <button {...()}>−</button> {line.quantity} <button {...()}>+</button> <button {...()}>Remove item</button> </form> );}Money, markets, Shop Pay, accounts, variants, consent-aware analytics. All maintained by Shopify.
Setup copies the packaged guides into your project, so your agent reads the same instructions your install ships with.
WebMCP exposes search, product variants, cart, and checkout as tools for AI shopping agents.
A typed Storefront API client. Write GraphQL with gql() and get results typed against the schema.
With 300+ points of presence globally, your storefront is within 50ms of 95% of the internet. Previews, caching, logs, and rollbacks at no extra cost.
Deploying elsewhere? Hydrogen also runs on Vercel, Cloudflare, your own Node server, and anywhere else JavaScript runs.