We've written individual deep-dives on Hydrogen vs Next.js, why we chose Sanity and when to upgrade to Algolia. But we haven't explained why these three tools together form our default stack for headless Shopify Plus builds. It's not because they're the trendiest options. It's because after building headless stores for years, this combination consistently delivers the best outcomes for the types of brands we work with.
The principle behind the stack
The best ecommerce stack isn't the one with the most impressive technology. It's the one where every team can move independently without breaking things for each other.
Developers need a storefront that is straightforward to build and maintain. Marketing teams need to publish content without filing a ticket for every change. Merchandisers need control over product discovery. The integration needs to keep commerce facts reliable across those tools, with clear ownership when something goes wrong. That matters for customers today and for any AI-assisted work the team introduces later.
That's what drove each choice in our default stack.
Hydrogen: the frontend
Our Hydrogen vs Next.js comparison needs an important distinction: current Hydrogen is a Shopify commerce toolkit, not an alternative framework. The 2026-10 release can work with frameworks including Next.js, Astro and React Router. We choose the framework and hosting around the store, then use Hydrogen for the Shopify-specific work.
Hydrogen provides tools for Storefront API requests, carts, customer accounts and analytics. That saves us from rebuilding common commerce plumbing. Product queries, page layouts, integrations and the buying experience still need to be designed, implemented and tested for the store.
Hosting follows the framework and runtime. Shopify’s React Router starter targets Oxygen; its Next.js starter targets Vercel. An Astro build needs a compatible deployment setup. Oxygen can reduce infrastructure work for an eligible storefront, but using Hydrogen does not make every application deployable to Oxygen. See Shopify’s current starter guidance.
The result: we typically deliver a headless Hydrogen build 3-4 weeks faster than an equivalent Next.js build. At our rates, that's a meaningful cost saving for the client. See our headless cost breakdown for the full picture.
That is our delivery experience, not a benchmark for every project. The current toolkit can also be used inside Next.js, so the framework choice alone does not predict a delivery time.
Sanity: the content layer
We've written extensively about why Sanity wins for ecommerce and why structured content matters for AI readiness. The practical reasons we chose it as our default come down to three things.
First, structured content that maps to commerce. Sanity lets us define documents and references for promotional modules, product stories and campaigns. We connect those fields to tested storefront components and the design system. Editors can work within those layouts; validation and preview help catch content that needs attention.
Second, real-time collaboration with live preview. Multiple editors can work on the same content simultaneously, and changes preview against the actual Hydrogen storefront in real time. Your team publishes with confidence instead of submitting changes and hoping they look right.
Third, GROQ lets developers request the content a page needs. Sensible queries can reduce unnecessary data transfer. Page speed still depends on caching, images, scripts, rendering and the rest of the implementation, so we measure the finished experience.
Algolia: the search and discovery layer
Not every store needs Algolia. We've been clear about that in our Algolia vs Shopify Search comparison. But for stores where search is a meaningful part of the shopping experience (15%+ of sessions include a search, 200+ products), Algolia earns its place in the stack.
The real value isn't the speed (although sub-50ms results are genuinely instant). It's merchandising control. Your merchandising team can pin products to specific search queries, boost new arrivals, hide out-of-stock items, and create landing pages from search results, all through a dashboard without involving a developer.
For a headless storefront, we connect Algolia’s index and merchandising rules to the search experience. The reason to add it is a specific gap in search relevance, merchandising control or discovery that the store needs to solve. Compare those needs with Shopify’s current search capabilities before adding another service.
How they work together
The individual components are strong. The integration is where the real value compounds.
Shopify remains the source for commerce facts such as products, prices and availability. Sanity holds editorial content and references to those products. Algolia holds a search index populated through the agreed integration. The storefront brings those sources together. Update flows, market context and stale-data handling matter: the systems do not stay aligned simply because they expose APIs.
API access can also support AI-assisted commerce work, but each connection needs an explicit scope. Shopify integrations, Claude’s Sanity connector and Algolia’s APIs have different capabilities and permissions. We define what can be read or changed, keep people responsible for approval and test the result before it reaches customers.
When we deviate
This is our default, not our only option. We reach for Next.js when the project has significant non-commerce functionality or the team has deep Next.js expertise. We use Prismic when budget constraints make Sanity's pricing challenging for smaller projects (we've built several stores on Prismic including Carwyn Cellars and Smash). We skip Algolia when search volume doesn't justify the cost.
The stack serves the brand, not the other way around. But after years of building headless Shopify Plus stores, Hydrogen + Sanity + Algolia is where we start the conversation. It's earned that position. Talk to our team about whether it's right for your brand.
Does AI recommend your brand?
We ask ChatGPT and Perplexity 10 real buying questions for your category and score you against your biggest competitor. Live, in about 2 minutes.
Free. Enter your store's website, e.g. yourstore.com
Flux is a Shopify Plus Agency for Advanced Engineering & AEO
- Hydrogen provides Shopify commerce tools; the framework and hosting are separate choices.
- Sanity gives editors control over content fields and layouts we build for the store.
- Algolia adds search and merchandising controls where the catalogue and buyer journey justify them.
- Keep Shopify commerce facts, CMS content and the search index aligned through tested integrations.
- AI-assisted work needs defined permissions and human review, not just API access.




