Hydrogen is now a library you can plug into any JavaScript framework. The old version was a framework built on React Router, so using its cart or analytics meant building the whole storefront on it.
Hydrogen handles commerce, the dev team handles the rest
What makes this option matter is how Shopify has redrawn the split of work between Hydrogen and the dev team. According to Shopify, the dev team only needs to add the library to the app it already has, "instead of needing to replatform":
- Hydrogen handles commerce: cart, variants, collection filters, predictive search, Markets, analytics, Shop Pay, customer accounts.
- The dev team's framework handles the rest: routing, data loading, rendering. Design is entirely up to the dev team.
Shopify also explains why Hydrogen takes on these pieces: they're "harder to get right than they look." The cart has to stay correct when a shopper taps "Add to cart" twice, prices have to match the buyer's country and currency, and analytics have to respect consent choices while still getting data back to Shopify.
That cart isn't only there for shoppers clicking buttons. Hydrogen uses the same standard storefront actions as Liquid themes, so compatible apps, the storefront UI and AI agents can all work on one cart.
In browsers that support WebMCP (a proposed web standard that lets a page register tools for AI agents to call directly), a shopping agent can find products and update the cart, and once the buyer confirms, Shopify Checkout can submit the order. Shopify says developers "don't have to build anything" for this.
The dev team's share of the work also comes with a head start. Shopify ships starters for React Router and Next.js, lets you host the storefront anywhere, keeps Oxygen free, and includes 20 skills that teach coding agents to build a storefront, from the home page through cart and accounts, then test the result on their own.

