Headless Shopify means you build your own storefront, in a framework such as Next.js or Shopify's Hydrogen, and use Shopify as the commerce engine behind it through its APIs. It gives you full control of the front end, and it takes on a full custom software project to get it, with ongoing developer maintenance and apps that may not work. Most small and mid-sized stores do better with a well-built theme, and this guide helps you work out whether you are the exception.
What does headless mean in Shopify?
Headless means the front end (the "head") is separated from the back end. Shopify describes headless commerce as separating the storefront's front end from its back end. You build the storefront, and Shopify's APIs supply products, collections, customers, the cart and international pricing (Shopify.dev, headless).
On a normal Shopify store, a theme written in Liquid renders every page. The theme lives inside Shopify, apps plug into it, and the theme editor lets you change layouts without a developer. In a headless build, Shopify still holds your products, inventory, customers and orders. The storefront is a separate application that asks Shopify for data and displays it however the developers choose.
Think of it as swapping the shop front while keeping the stockroom and the till. The stockroom is Shopify's catalogue and order management. The till is Shopify's checkout, which stays where it is.
What are Hydrogen, Oxygen and the Storefront API?
These three names come up in every headless conversation, and they do different jobs.
The descriptions come from Shopify's developer documentation (Hydrogen, Oxygen deployment). Details change quickly. Shopify's own pages note that some Hydrogen versions use different commands, so a developer should work from the current documentation, not from an article or a tutorial from a year ago.
Shopify Hydrogen
Shopify Hydrogen is a toolkit and a set of starter templates. According to Shopify's documentation, its core depends only on fetch and other web platform APIs, and it works with server-capable frameworks including Next.js, React Router, Nuxt, Astro and SvelteKit. It includes a typed client for Storefront API queries. It does not include checkout, and it does not cover the Admin API (Shopify.dev, Hydrogen).
If you read older articles, you may see Hydrogen described as a React framework tied to Oxygen. Shopify's current documentation describes it as a framework-agnostic toolkit that can sit inside a framework you choose. That is one reason to check dates on anything you read.
Oxygen
Oxygen is where a Hydrogen storefront can be hosted. Shopify describes it as its hosting platform for Hydrogen storefronts, running the storefront as a Web Worker rather than a Node server, with deployment environments and preview links. You install the Hydrogen sales channel on your store to use it. Shopify's headless documentation also says Hydrogen storefronts can deploy to other hosts, so Oxygen is an option. Shopify's page on Oxygen deployment does not state whether it is included in a plan or billed separately, so confirm that with Shopify before budgeting.
The Storefront API
The Storefront API is the part every headless build depends on, whether it uses Hydrogen or not. It serves products, collections, search and the cart, and passes the customer to checkout. Shopify says you can also build with your own stack by calling the Storefront API and Customer Account API directly, in any language (Shopify.dev, headless). That is how a custom Next.js storefront connects to a Shopify store.
Can you use Next.js with Shopify?
Yes. Next.js is one of the most common front ends for headless Shopify builds, and Shopify's Hydrogen documentation lists Next.js among supported frameworks and names a Next.js starter template. A Next.js storefront gives you a large developer talent pool, mature hosting options and tools many agencies already know.
Other options Shopify lists include:
- React Router, Nuxt, Astro and SvelteKit with Hydrogen
- A mobile app using the Storefront API and Checkout Kit
- Buy buttons on an existing site, using Storefront Web Components or Buy Button JS
- The Shopify plugin for WordPress, for content-led sites that want to sell
Not everything labelled "headless" needs a full custom storefront. If your goal is to sell a few products from an existing content site, a buy button may do the job at a fraction of the effort.
What are the real benefits of headless commerce?
The benefits are real but narrow. They apply when you need something a theme cannot give you.
Design and layout freedom. A custom front end can follow any design without working around a theme's structure. That matters for brands whose experience is the product, with unusual navigation, rich editorial layouts or interactive product configurators.
Control over performance. A lean, purpose-built front end can ship less JavaScript than a theme with many apps. This is a possibility, not a promise. Our guide to Shopify speed optimisation shows how many slow stores can be fixed on the theme without a rebuild.
One front end across channels. If you sell through a website, a mobile app and in-store screens, the Storefront API lets one commerce backend feed all of them.
Content and commerce together. Teams with a heavy content operation, run in a separate content management system, can combine that with Shopify's commerce data in one front end.
Custom behaviour at the storefront. Complex logic around products, pricing display or personalisation can live in your own code, though Shopify's native tools and apps handle a lot of this already. See our article on custom Shopify development for what can be built without leaving the theme.
What does headless Shopify cost you?
Headless costs more in build, running and attention. Shopify says so itself: a headless storefront costs more to build and run than a theme, and you need developers to maintain the storefront after launch (Shopify.dev, headless). I will not put figures on it here, because they vary widely by scope and any number from me would be a guess before scoping. What I can say is where the cost comes from.
App compatibility
This one surprises people. In a theme, an app can add a review widget, a loyalty banner or a size guide by inserting code. A headless storefront has no theme, so an app's front-end features may not appear unless the app offers an API or a headless integration. Shopify advises building headless only when needs cannot be met by its sales channels, themes and apps. Before committing, list every app that touches the storefront and ask each vendor whether it supports headless, and how.
Checkout is still Shopify's
Headless does not give you a custom checkout. Hydrogen includes no checkout interface, and the Storefront API hands customers off to Shopify's checkout. Checkout changes go through Shopify's own checkout tools, which we cover in our article on Shopify Plus development, because checkout extensibility is where Plus matters. If your main reason for going headless is checkout control, headless is not the route.
SEO responsibility moves to your developers
On a theme, Shopify outputs sensible defaults for URLs, sitemaps, canonical tags and basic structured data. In a headless build, your team owns all of that. A migration from a theme to a headless front end can lose rankings if redirects, metadata, internal links and rendering are not handled carefully. Server-side rendering and clean HTML matter, so ask any agency how they will test crawlability before launch. Our article on the best ecommerce platform for SEO compares what each platform gives you out of the box.
Who is headless Shopify for, and who is it not for?
Headless is for a small group of stores with a specific need and the budget to maintain a software product. For most small and mid-sized online businesses, it is the wrong tool.
Headless may suit you if:
- Your design or content requirements cannot be built in a theme, and you have tried
- You sell across web, app and other screens from one catalogue
- You already have an in-house development team, or the budget to retain one
- Your commerce is tied to a content platform that needs a custom front end
- You have a clear, measurable reason, such as a conversion test that a theme cannot run
Headless probably does not suit you if:
- You are a small or mid-sized store with a standard catalogue and checkout
- Your main problem is slow pages caused by apps and scripts
- You rely on many third-party apps that change the storefront
- You want to edit pages yourself without a developer
- You are choosing it because it sounds modern, or a competitor did
The honest answer for most SMEs is that a well-built theme, with a lean app list, gets them most of the result at a fraction of the effort. Our article on Shopify theme development explains when a custom theme is the better step up.
Headless or theme: a decision table
Use this table to test your situation. If most of your answers sit in the right-hand column, a theme is almost certainly the better choice.
If you are weighing headless against Plus, note that they solve different problems. Plus changes limits, checkout options and store structure, while headless changes the storefront. Our article on Shopify Plus development covers what Plus adds.
Want this done for you? Message me directly on WhatsApp with your store URL and what you are trying to achieve, and I will tell you whether a theme can do it. I work through my Shopify store development service and quote after scoping.
How do you evaluate a headless Shopify agency?
Searching for a headless Shopify agency turns up firms that sell headless as the default answer. Test any proposal with these questions:
- What problem does headless solve for us that a theme cannot? Look for a specific answer, not "performance and flexibility".
- Which of our current apps will stop working, and what replaces them? They should have audited your app list.
- Who edits content, and how? Ask to see the editing experience, not a diagram.
- How will you protect our SEO? Expect a redirect map, rendering approach, metadata plan and a crawl test.
- Who maintains it after launch, and what does that cost per month? Get this in writing.
- Who owns the code and hosting accounts? You should.
- What is the exit route? If the relationship ends, can another developer take over?
A good agency will sometimes talk you out of headless. If a proposal never mentions a theme as an option, it is not a fair comparison.
Should you move to headless now, or improve what you have first?
Improve what you have first, in nearly every case. Most stores asking about headless have a slow, cluttered or hard-to-manage theme, and that can often be fixed within the theme. Remove apps you do not use, clean out leftover code, fix image loading, and measure your real-visitor Core Web Vitals. If you still hit a wall that a theme cannot get past, headless is a reasonable next step, and you will have a clearer brief because you know exactly what the theme could not do.
When should you hire help, and when not?
Hire help for a headless project if you have a genuine requirement a theme cannot meet and a budget for maintenance. You need a developer who can build in a modern JavaScript framework, understands the Storefront API and can handle SEO in code. Make sure you can reach them after launch.
Do not hire for headless if your real problem is speed, conversion or product content. Those need a different kind of work, and headless adds cost without addressing them. A review of your current store is cheaper than a rebuild and tells you whether the rebuild is justified.
I work with Shopify merchants directly. I do not publish prices, because they depend on scope, and I quote once I understand what you need. I will also tell you plainly when a theme is the right answer, which for many stores it is. If you do land on a complex build such as headless, I can scope and advise on the requirements before you commit to an agency.
Next steps
Write down the single thing you want from headless that a theme cannot give you. If you can name it and test it, you have a case. If you cannot, spend the money on theme work, app clean-up and speed first.
Want this done for you? Message me directly on WhatsApp or use the contact page, and tell me about your store, your apps and what you need the storefront to do. I will give you a straight view on whether headless Shopify makes sense, and a quote if you want help with the build. Learn more about my custom Shopify development approach, or see the Shopify store development service.