GlossaryShop architecture
Hydrogen: Shopify's framework for headless storefronts
What is Hydrogen?
Hydrogen is Shopify's React-based framework for building headless storefronts. It provides ready-made components, hooks and tight access to the Storefront API, so developers can build a custom front end for a Shopify store without reinventing cart, checkout and payment. It usually runs on Shopify's hosting, Oxygen.
Context
Hydrogen is Shopify's answer to the wish for full front-end control while keeping the commerce infrastructure. It sits between two worlds: the freedom of a fully custom front end and the convenience of a theme. For an e-commerce agency, Hydrogen matters when a client wants headless but does not want to give up closeness to the Shopify ecosystem, its checkout and apps.
Mechanics
A Hydrogen project is a standalone React application. It fetches products, collections and content through the Storefront API and renders pages on the server and the client. Standard building blocks for cart, product variants and SEO ship with it, so the team focuses on brand and speed. The checkout stays Shopify's, which secures payment, tax and fraud protection. Hosting is typically on Oxygen, Shopify's edge hosting.
Distinction from the theme
A Shopify theme uses Liquid and is rendered by the platform, quick to set up and cheap to maintain. Hydrogen is a dedicated front end, more work to build, but with full control over structure, load performance and interaction. The choice is not a matter of taste but a trade-off of effort against control needs, made on the specific case.
Hydrogen versus classic Liquid theme
| Criterion | Hydrogen | Liquid theme |
|---|---|---|
| Technology | React, custom front end | Liquid, platform-rendered |
| Front-end control | very high | limited |
| Build effort | high | low to medium |
| Hosting | usually Oxygen | Shopify platform |
| Checkout | Shopify checkout | Shopify checkout |
| Fits | brands with high front-end demands | most stores |
Decision signal (schematic)
Hydrogen is Shopify's React framework for headless storefronts. As a schematic decision signal: it is worth it once a frontend team runs it long term and the performance or content needs exceed a theme. Without that team an optimised theme stays the cheaper choice. The figure that actually matters is the team's ability to operate it, not the technology itself.