Headless Shopify Development
with Hydrogen and the Storefront API
Decoupled storefronts on Hydrogen or custom React, edge-cached, with Shopify still owning cart, checkout and inventory. We also say when not to do it.
Shopify's engine.
Your front end, your stack.
Headless Shopify development means replacing the Liquid theme layer with a separately deployed front end that reads commerce data through the Storefront API, while Shopify still owns products, inventory, cart, customers, taxes, discounts and checkout. The front end is usually Hydrogen, Shopify's React framework, or a custom React application on Next.js. The commerce engine does not change. What changes is who renders the page and where content comes from.
Nugro Tech builds both routes, and the first useful thing we do is say whether you need either. Headless is justified when content genuinely lives in another system, when you serve several brands or markets from one codebase, when you need interaction patterns the theme layer cannot express, or when a large catalogue needs faster navigation than a theme delivers. It is not justified because a conference talk said it was faster. A well-built OS 2.0 theme on Shopify's CDN beats a badly built headless storefront on every Core Web Vital, at a fraction of the running cost. See Shopify theme development if that is the right route for you.
Hydrogen or custom React: the actual decision
Hydrogen is the default recommendation. It ships Shopify's own data primitives, cart handling, analytics hooks and SEO helpers, deploys to Oxygen with no infrastructure work, and is maintained by the team that owns the API. Custom React on Next.js earns its place when you already have a Next application and a team maintaining it, when non-commerce surfaces dominate, or when hosting is contractually fixed. There we use the Hydrogen React component and hook library rather than rewriting cart logic.
Hosting: Oxygen, or somewhere you already pay for
Oxygen is Shopify's hosting for Hydrogen, available on Shopify plans, deployed to a global edge network and wired to the Storefront API without credentials management. For Hydrogen builds it is the cheapest route to operate. Vercel, Cloudflare Workers and Netlify are viable for custom React, but you take on build pipelines, environment secrets, preview environments and egress cost that Oxygen handles. That operating overhead is the cost line most headless projects underestimate.
Storefront API, cart and query cost
Data comes from the Storefront API over GraphQL, and cart state lives in Shopify through the Cart API, so a cart created on the front end is the cart checkout receives. The constraint that catches teams out: Storefront API rate limiting is calculated on query cost rather than request count, so a nested query asking for every variant and metafield on a forty-product collection can throttle you while a tidy query will not. Query shape, fragment reuse and pagination are day-one decisions.
Caching, which is the whole performance story
Headless is only fast if caching is deliberate. Hydrogen gives you sub-request caching with explicit cache policies per query, so catalogue data caches at the edge for minutes while cart and customer data stay uncached. We set policy per query type, use stale-while-revalidate where seconds of staleness are harmless, and define invalidation on price and inventory changes through webhooks. Without that, a headless storefront issues a fresh API call per page view and performs worse than the theme it replaced.
Content: CMS, metaobjects, or both
Decide this before you write components. Shopify metaobjects and metafields are enough for structured product content and are already in the Storefront API, with no extra bill or second deploy. A dedicated CMS such as Sanity or Contentful earns its place when editorial teams work on long-form content, need workflow and scheduling, or publish across non-commerce channels. Running both is workable, but needs an explicit rule about which system owns which field, or you get two half-complete product descriptions within a quarter.
Checkout, accounts and the hard boundary
Checkout stays on Shopify. You can brand it and extend it with checkout UI extensions and Shopify Functions, but it is not yours to rebuild, and that boundary is set by the platform terms. Customer login runs through the Customer Account API. Two consequences: the handoff from your domain to checkout must be configured so analytics and consent survive it, and any post-purchase experience you planned to own has to be an extension, not a page in your app.
What your team loses, stated plainly
The theme editor goes away. Merchandisers can no longer drag a section into a page, so every layout change becomes either a CMS content model you designed in advance or a developer ticket. Shopify's app ecosystem partly stops working too: apps relying on theme app extensions or script injection have nothing to inject into, so reviews, upsells, search and loyalty tooling get re-implemented against their APIs or replaced. We cost that in the scope, because it is the item that surprises people.
Brands with content at the centre
Editorial, lookbooks or education carry the site and already live in a CMS your writers will not leave.
Multi-brand and multi-market operators
Several storefronts from one codebase, with market routing, currency and language in the front end.
Large catalogues with heavy filtering
Hundreds of thousands of variants where navigation and faceted search must feel instant.
Teams with in-house React capability
Developers who will own this after launch. Headless without that is a dependency you may regret.
Most stores under a few million in GMV with a standard catalogue and no separate content system are better served by a theme rebuild and a performance pass. See Shopify theme development.
Six phases,
caching planned before the first component.
We will talk you out of it when it is wrong
Most headless enquiries should be theme or performance projects, and saying so costs us a bigger invoice.
Caching is designed, not discovered
Cache policy per query goes into the build plan before the first component.
App replacements are costed up front
Every storefront app that stops working is listed in the scope with its replacement route.
Shopify-side work in the same team
Checkout extensions, Functions and metaobject modelling are done by the people who built the front end.
You own the repository
Standard framework conventions, your hosting account, no wrapper only we understand.
95+ average Lighthouse
Performance is a build requirement, not a post-launch project. Measured against field data, not lab only.
Common
questions.
What is headless Shopify development?
+
It is replacing Shopify's Liquid theme layer with a separately deployed front end that reads commerce data through the Storefront API, while Shopify keeps products, inventory, cart, customers, taxes and checkout. The front end is typically Hydrogen or custom React.
Is headless Shopify faster than a theme?
+
Only if it is built well. Headless gives control over rendering and caching, but it also lets you make a far slower site than Liquid ever could. A well-built OS 2.0 theme on Shopify's CDN outperforms a poorly cached headless storefront on every Core Web Vital.
Hydrogen or Next.js?
+
Hydrogen unless you have a reason. It ships Shopify's data primitives, cart handling and SEO helpers, and deploys to Oxygen without infrastructure work. Next.js makes sense when you already run a Next application with a team maintaining it, or when non-commerce surfaces dominate.
Do I still use Shopify checkout?
+
Yes, and there is no alternative within Shopify's terms. Checkout stays Shopify-hosted and can be branded and extended with checkout UI extensions and Shopify Functions. The handoff from your front end must be configured so analytics and consent tracking survive it.
Will my Shopify apps still work?
+
Storefront-facing apps mostly will not. Anything relying on theme app extensions or script injection has nothing to inject into, so reviews, upsells, search and loyalty tooling must be re-implemented against their APIs or replaced. Admin-side apps are unaffected. We list every affected app and its replacement route in the scope.
Can my marketing team still edit pages?
+
Not in the theme editor, which no longer applies. Editing moves to whatever CMS you choose, and how much they can change depends on the content model designed for them. Designing it properly is the difference between autonomy and a permanent developer queue.
When is headless the wrong choice?
+
When your content lives in Shopify, your catalogue is standard, you have no in-house React team and your storefront depends on several apps. A theme rebuild plus a performance pass then delivers more revenue for less money and far less operating risk.
Will going headless affect SEO?
+
It can, in both directions. You gain rendering control; you also take on server-side rendering, canonical tags, structured data, sitemaps and redirects that the theme handled for you. We carry all of them across and capture a baseline before cutover. See Shopify SEO migration for the approach.
Tell us the limitation.
We'll say if headless is the fix.
Send your catalogue size, your content stack and the thing your storefront cannot do. You get a straight answer and a scope within 24 hours.