Headless storefronts

Two webshops on Shopify without a Shopify theme and without a framework: static HTML and plain JavaScript, with the Storefront API for catalogue and checkout.

Year
2026
Type
Technique
Stack
Storefront API, HTML, JavaScript
Status
Live in two shops
An ivory sneaker displayed in a coral storefront window.

The photographs on this page are illustrations made for this site, not screenshots of the project.

What it is

Two webshops I built at The Creativity Lab run on Shopify, but not on a Shopify theme. The pages are static HTML, CSS and JavaScript on Vercel. Shopify keeps the catalogue, the stock and the checkout, and the site talks to it through the Storefront API.

This page is about the pattern. The shops themselves, and what was made for each client, are described in the case studies at The Creativity Lab.

Ivory suede, mesh and precise stitching beside a cobalt heel tab.

The question

Going headless usually means adopting a framework: Hydrogen, Next.js, a build pipeline and a server. I wanted to know how little you actually need. In both shops the answer was: no framework and, in one of them, no build step at all. The configuration is read from a file at runtime.

Hands tying an ivory sneaker against a coral boutique interior.

How it works

The whole integration is deliberately small, so there is one place to look when something breaks.

  • One file is the seam. It is the only code that calls Shopify, with the queries, the mutations and a fetch that has a timeout.
  • The token in the browser is the public Storefront token, which Shopify intends for client code. The Admin token is never used in the site.
  • The API version is pinned in the configuration. Shopify releases versions on a schedule, so the pin is a line that has to be raised on purpose.
  • When Shopify does not answer in time, the page falls back to a local copy of the catalogue, so the shop still renders.
  • Checkout is always Shopify's own hosted checkout. The site hands over a cart and redirects to the URL Shopify returns.
  • In one shop, a small Liquid snippet sends visitors of Shopify's default storefront to the real domain, and leaves the cart and checkout pages alone.
An ivory sneaker displayed in a coral storefront window.

What it costs

No server means no server-side caching: how fresh the catalogue is depends on the request the browser makes. Pages that need to rank are generated ahead of time by a script, from one source. Anything the site calculates itself, such as a tiered discount, has to come out exactly the same as in Shopify's checkout, or the cart and the checkout disagree in front of the customer.

You also give up the theme ecosystem. Apps that inject themselves into a Liquid theme do nothing here, so every feature is something you build or connect yourself. For a small catalogue with a strong brand that trade is fine. For a shop that leans on a dozen apps it probably is not.

More work.

Let’s talk

Curious about an experiment, or want to compare notes? I'd like to hear from you.

Need a website or a designer? That's The Creativity Lab. Visit the studio