Shopify commerce in your framework

Primitives for you and your agents

Storefront essentials covered

Add a cart

// 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>  );}

Your cart

Give it a try

Live cart running Hydrogen

Start with ready-made primitives

Money, markets, Shop Pay, accounts, variants, consent-aware analytics. All maintained by Shopify.

Give your agents the right skills

Setup copies the packaged guides into your project, so your agent reads the same instructions your install ships with.

Let shopping agents shop and check out

WebMCP exposes search, product variants, cart, and checkout as tools for AI shopping agents.

Catch errors as you code

A typed Storefront API client. Write GraphQL with gql() and get results typed against the schema.

The rest is yours

All open source. Extend or build beyond the toolkit.

Read the docs

Power one-of-a-kind shopping experiences

Lady Gaga
Manors Golf
Chubbies
Drake Related

Host for free
with Oxygen

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.

Get started.

Add Shopify commerce to the project you’re already building.