Start with ready-made primitives
Money, markets, Shop Pay, accounts, variants, consent-aware analytics. All maintained by Shopify.
Primitives for you and your agents
// app/lib/cart.tsimport {} from "@shopify/hydrogen/react";export const {CartProvider, } = (); // app/routes/cart.tsximport {} 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> );}Give it a try
Live cart running Hydrogen
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.
All open source. Extend or build beyond the toolkit.
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.
Add Shopify commerce to the project you’re already building.