Headless commerce
Headless commerce separates the storefront your customers see from the engine that handles products, carts and orders. We build the storefront in Next.js on top of Medusa or Shopify, so the design and the buying flow are yours to shape. It is the route we suggest when a theme has become the limit, or when you want a custom store as an alternative to a standard Shopify setup.
Headless commerce: an overview
Headless commerce development makes sense when the storefront has become the bottleneck. On a theme, every change to the product page or the buying path fights the template, and each app adds its own script to the page. With a decoupled storefront, the Next.js front end asks the engine for products, prices and carts through an API and renders the pages the way you designed them.
The engine behind it stays a proven one. Medusa v2 gives us products, pricing, inventory, carts and orders as modules we extend in TypeScript, on PostgreSQL and Redis. With Shopify, the storefront uses the Storefront API while Shopify's admin and checkout remain in place. Headless has a real cost: you now host and maintain a front end, and theme apps that inject widgets into pages stop working. We weigh that before recommending it.
We also check whether headless is the answer at all. A slow theme can sometimes be fixed by removing unused apps, compressing images and cleaning the template, which costs less than a new front end. When the limits are structural, such as a buying flow the theme cannot express or several storefronts on one engine, a decoupled storefront is the cleaner path.
What the service covers
Storefront architecture
Next.js pages, server components and routing for categories, products, search and content. The structure follows your catalog rather than the assumptions of a theme.
Commerce engine integration
The storefront talks to Medusa through its store API, or to Shopify through the Storefront API. Cart, customer and checkout state are handled on the server, not in fragile browser code.
Caching and revalidation
Each page type gets a caching rule, and engine webhooks refresh only the pages affected by a change. Personal data such as the cart is never cached for anyone else.
Checkout and customer account
Either the engine's own checkout, kept as it is, or a custom checkout built on its API. The customer account covers orders, addresses and returns.
SEO and structured data
Titles, descriptions, canonical URLs, product structured data and sitemaps are generated from the catalog. Redirects are managed in one place when URLs change.
Hebrew and multilingual layout
Right-to-left layout, mixed Hebrew and English text and localized URLs are designed from the first screen. Each language can have its own prices, content and domain or path.
When it is the right call
- 01
Your product pages are slow on mobile because the theme and its apps load more scripts than the page needs.
- 02
Your designers have a buying flow in mind that the theme cannot express without hacks.
- 03
You want one front end for several sales channels or languages, Hebrew and English among them, on the same catalog.
- 04
You are leaving a legacy platform and want the new storefront independent from whichever engine sits behind it.
What you get
Server-rendered storefront with controlled caching
A proven commerce engine behind it: Medusa or Shopify
Full freedom over design and buying flows
Hebrew right-to-left layout where the market needs it
How we work on it
Step 1
Engine and data model
We choose Medusa or Shopify as the engine and map your products, variants, prices and regions onto it. Fields that the storefront needs but the engine lacks are identified at this stage.
Step 2
Storefront prototype
A clickable prototype of the home, category, product, cart and checkout pages, designed for mobile first. It is approved before any development starts.
Step 3
Catalog and product pages
Category, product and search pages are built against your real catalog on a test URL. Performance is measured on a phone from the first milestone, not at the end.
Step 4
Cart, checkout and account
The buying flow and the customer account are built and tested end to end with Playwright, including payment in the provider's test mode. Failed payments and products that run out of stock are tested as carefully as the normal path.
Step 5
Caching and launch
We set caching rules per page type, wire product updates to refresh the right pages, and move the storefront to production once it has run on the test environment. Redirects from old URLs go live at the same moment.
How a Next.js storefront stays fast with a live catalog
Category and product pages are rendered on the server and cached, so most visitors receive a page that is already built. When a price or a stock level changes in the engine, a webhook tells the storefront which pages to refresh, instead of rebuilding the whole site. The cart, the customer account and anything personal are fetched per request and never cached for someone else.
We measure this on real phones over a mobile connection, with the product images, fonts and tracking scripts you will actually ship, not on an empty demo page.
Medusa or Shopify behind a headless storefront
Shopify behind a headless storefront keeps its admin, its checkout and its payment and tax settings, which reduces what you have to build and run. Its limits stay too: checkout customization is restricted, and some apps assume a Shopify theme. Medusa gives you the engine's code, your own checkout and your own data in PostgreSQL, at the price of hosting and maintaining the backend. For a store with standard logic, Shopify headless is usually the lighter choice.
There is a middle path for stores that start on Shopify: build the headless storefront on the Storefront API now and keep the option of changing engine later. Because the pages only talk to a thin data layer in our code, changing the engine behind them means rewriting that layer, not every page.
What a headless storefront costs in maintenance
A theme is maintained by its vendor. A headless storefront is maintained by whoever owns its code, which means framework upgrades, dependency updates, hosting and monitoring. Next.js and the engine both release new versions regularly, and skipping them for a long time turns a routine update into a project.
We reduce that load with choices made early: few dependencies, the same Docker image in development and production, end-to-end tests that run on every pull request, and errors reported to Sentry. It is still more to run than a theme, and the decision to go headless should include who will do that work after launch.
Technologies
- Medusa
- Shopify
- Strapi
- Meilisearch
- Next.js
- PostgreSQL
How you can work with us
Fixed-scope project
The scope of the first version is written down, split into milestones and priced per milestone. It suits a product or a feature with a clear outline.
Dedicated team
A team works on your product over the long run, with its own planning and release cadence. It suits a product that keeps changing.
Team extension
One or more of our engineers join your team and work with your tools and routines. It suits a company that knows where it is going but lacks people or a specific skill.
Monthly support
A monthly retainer covers maintenance, updates and small changes, with an agreed response time. It suits a product in production that needs upkeep more than new features.
Questions about Headless commerce
Is headless commerce good for SEO?
It can be, as long as pages are rendered on the server, which is how we build them. Titles, descriptions, structured product data and clean URLs are controlled page by page in the code. The SEO risk in headless comes from storefronts rendered only in the browser, and we avoid those.
What makes a headless storefront more or less expensive?
The number of page types and how custom each one is, the checkout (Shopify's or your own), the integrations the storefront calls directly, and the number of languages. A storefront that reuses Shopify's checkout in one language costs less than one with a custom checkout in Hebrew and English. The state of the catalog data also counts.
Who maintains the storefront after launch?
Your developers or us, and the handover is planned for both cases. The code is in your repository, it runs in Docker the same way in development and production, and the documentation explains how to deploy. Updates to Next.js and to the engine are part of normal maintenance and do not stop at launch.
Can we go headless without leaving Shopify?
Yes. Shopify's Storefront API lets a Next.js front end read products and manage carts while Shopify keeps the admin, the payments and the checkout. Your team keeps working in the Shopify admin as before. The trade-off is that apps which change the look of the theme do not apply to the new storefront, so each one has to be replaced or rebuilt.
What decides how long a headless storefront takes to build?
The number of distinct page types, the amount of custom design in each, whether the checkout is custom, and how many third-party services the storefront calls, such as reviews or a loyalty widget. A catalog that needs cleaning before it can feed the pages adds time as well. We size the project after the prototype, when the pages are known.
Does a headless storefront handle Hebrew better than a theme?
It handles Hebrew the way you design it, which is the point. Right-to-left layout, the position of icons and arrows, the Hebrew font and the direction of mixed product names are decided in the prototype and built into the components. With a theme, Hebrew support depends on how carefully the theme author handled it. On a custom storefront it is our responsibility, and we test it on every page.
In the same service area
Design, build and ship your project
Describe it in three lines. We reply with specific questions and a first take on how to proceed.