TecnoStack
Start a projectالعربية
Two equal stacks with the same storefront on top: a Platform-run backend and a Team-run backend, neither highlighted.
E-commerce

Hydrogen builds a custom storefront while Shopify keeps running checkout and orders. Medusa is an open-source commerce backend your team extends and operates. Decide who runs commerce after launch, then test Saudi payments, refunds and e-invoicing before you commit.

In this article

Silent video with on-screen text. The transcript below repeats every screen and describes what it shows.

Watch on the video page

  1. 0:00–0:06

    Store A • Name every layer • Headless splits the storefront • Three layers need owners • Detached storefront • Commerce backend • Integrations layer • Operations layer

    The Store A badge stays fixed in its lane. The article's layer-owners figure: "Detached storefront" starts on top of the stack and lifts away, and one double-headed cyan connector draws across the new gap to "Commerce backend". A cyan outline then visits the blank owner tag beside "Commerce backend", "Integrations layer" and "Operations layer" in turn; every tag stays blank.

  2. 0:06–0:12

    Store A • A storefront toolkit keeps the platform • You own storefront code • The platform runs checkout

    A stack whose backend the platform runs: an office-building emblem on its backend block and a shop canopy for the storefront on top, drawn at the same size and place as the team-run stack in the next scene. The canopy lights in the team colour (cyan) while the backend stays in the platform colour (royal blue). "You own storefront code" points to the canopy and "The platform runs checkout" to the backend; a blank order card drops from the storefront into the platform's backend.

  3. 0:12–0:18

    Store A • An open backend moves the work • Change the commerce logic • Run it for years

    A stack whose backend the team runs: a server rack with a wrench on its backend block, at the same size and place as the platform-run stack before it. The backend lights in the team colour, then four small module tiles dock beside it one by one, two for integrations (plug) and two for operations (gear). "Change the commerce logic" and "Run it for years" appear in the team colour. Neither stack is marked as the better choice.

  4. 0:18–0:24

    Store A • Test local payments • Approvals, declines, refunds • Sandbox, then production

    A cyan route leaves the outer end of the Store A badge, runs down the side and on through a dashed sandbox frame into a solid production frame. Three blank test cards travel it one after another, pause in the sandbox and wait in production. No card is marked approved or declined.

  5. 0:24–0:30

    Store A • Decide who issues invoices • Ask your tax adviser • Storefront choice does not settle it • Store backend • ERP • Accounting software

    The article's invoice-issuer figure: one blank invoice sheet with three dashed cyan routes to "Store backend", "ERP" and "Accounting software". A cyan pulse travels down each route in turn and returns to the sheet. Every route stays dashed and no system is chosen, while "Ask your tax adviser" and "Storefront choice does not settle it" stay on screen.

Shopify Hydrogen vs Medusa is a choice about who runs your commerce backend. Hydrogen is Shopify's toolkit for building a custom storefront, while Shopify keeps running products, checkout, orders and payments. Medusa is an open-source commerce backend that your team extends and operates. Pick Hydrogen to change the storefront and Medusa to change commerce itself.

Both tools have moved recently. On 14 October 2026 Shopify released Hydrogen 2026-10, which turns Hydrogen from a framework built on React Router into a library you add to the framework you already use. Medusa's current documentation describes a commerce platform with a built-in framework for customisation. The comparison below reflects both, as of October 2026.

Hydrogen works at the storefront layer and Medusa works at the commerce layer. That is why the two are hard to compare head to head: with Hydrogen you still have Shopify behind the storefront, and with Medusa you still have to build a storefront in front of it.

CriterionShopify HydrogenMedusa
What it isA headless toolkit that adds Shopify cart, variant and collection features to your frontend frameworkA commerce platform made of modules (products, pricing, cart, orders, payments, inventory, tax) plus a framework to extend them
Commerce backendShopify, which you configure but don't runMedusa, which your team customises and deploys
Checkout and ordersStay in ShopifyBuilt from Medusa modules and the providers you connect
HostingOxygen, included on paid Shopify plans, or a host you chooseMedusa Cloud, or self-hosted with PostgreSQL, Redis, a server and a worker
Licence and feesShopify plan fees; the toolkit itself is freeMIT-licensed core; Enterprise Edition is commercial; you pay for hosting
What you can changeThe storefront: design, content, discovery, Arabic layoutThe storefront and the commerce logic: pricing rules, order flows, multi-store setups
Who fixes the backend at 2 a.m.Shopify, for its platformYour team, or Medusa Cloud for the infrastructure it manages

A headless commerce architecture has at least four layers, and each one needs a named owner. "Headless" only means the storefront is separate from the backend. It says nothing about who owns the other three layers, and that is where Hydrogen and Medusa differ most.

  1. Storefront: the pages, search, product pages and basket customers use, in Arabic and English.
  2. Commerce backend: catalogue, pricing, promotions, cart, checkout, orders, payments, returns and tax calculation.
  3. Integrations: payment providers, shipping carriers, ERP or accounting, e-invoicing, marketing and support tools.
  4. Operations: hosting, monitoring, security updates, incident response and the changes you ship every month.

Product data usually lives in the commerce backend, while campaign pages and editorial copy often live in a CMS. Before you build, agree which system owns which field and how editors preview both languages. Our guide to a bilingual content model covers that split in detail.

A Detached storefront sits apart above three stacked layers, Commerce backend, Integrations layer and Operations layer, each with an empty owner tag.

Headless only separates the storefront from the backend. The commerce backend, integrations and operations still need a named owner each, and that is where a storefront toolkit on a hosted platform and an open commerce backend differ most.

Hydrogen changes the storefront and leaves commerce operations with Shopify. You design and build the experience customers see; Shopify keeps the products, inventory, checkout, orders and the admin your team already knows.

Since Hydrogen 2026-10, Shopify ships starters for React Router and Next.js, and says Hydrogen can be hosted anywhere, including Oxygen, which it describes as still free. Shopify's documentation lists Oxygen at no extra charge on its paid plans, but not on Agentic plans. Stores built on the earlier framework version keep working, according to the same release notes.

In practice that split means:

  • You own the storefront code: its speed, accessibility, Arabic right-to-left layout and the host it runs on.
  • Shopify owns most commerce operations: you configure checkout, shipping and taxes, but you don't run the servers behind them.
  • Shopify sets your limits: the APIs, checkout options, apps and payment providers available to your plan and country.

The payment limit matters in Saudi Arabia. As of October 2026, Shopify Payments is available in the United Arab Emirates but not in Saudi Arabia, so a Saudi store connects a third-party provider. Check which methods each provider offers before you plan the checkout; our comparison of which store platform supports mada and BNPL is a useful starting point.

Hydrogen makes sense when the storefront is where you win customers and Shopify's way of handling catalogue, checkout and orders already fits how you sell.

Medusa gives you the commerce logic itself to change, and with it the job of running that logic. Its documentation describes commerce modules for cart and checkout, payments, products, pricing, promotions, orders, inventory and tax, plus a framework for adding your own behaviour on top.

The core is published on GitHub under the MIT licence. Materials marked as Enterprise Edition fall under a separate commercial licence, so check which parts you plan to use.

Deployment is a separate decision. Medusa's deployment guide recommends Medusa Cloud, its managed service, which hosts the server, the admin dashboard, the database and Redis. If you self-host, you run a Node.js server instance for API requests and a worker instance for background jobs, both connected to PostgreSQL and Redis.

What you take on:

  • Custom commerce logic: pricing rules, order flows, B2B accounts, multi-store setups or unusual fulfilment, and a storefront to match.
  • Infrastructure work if you self-host: database, backups, monitoring, upgrades, security patches and on-call response. Medusa Cloud takes on the parts its service terms cover; read them rather than assume every duty moves.
  • Every integration: payments, refunds, shipping and invoicing are yours to select or build, and to keep working as providers change their APIs.

Medusa makes sense when your commerce logic differs from what hosted platforms model, and you have engineers who will run it for years.

The option that looks cheaper on paper can cost more once you count the people needed to run it. Write down an owner for each item, for nights and weekends too.

ResponsibilityHydrogen on ShopifyMedusa on Medusa CloudMedusa self-hosted
Storefront code and its hostingYour team; Oxygen or your chosen hostYour teamYour team
Backend uptime and securityShopifyMedusa Cloud for infrastructure; your team for your codeYour team
Checkout and order logicShopify, within its settings and appsYour teamYour team
Payment, shipping and invoicing integrationsShopify apps or your teamYour teamYour team
UpgradesStorefront and Hydrogen versionsYour application and its modulesApplication, modules, database and servers
IncidentsShopify status and support, plus your storefrontShared with Medusa CloudYour team, with your hosting provider

A Gulf store succeeds or fails on local details, whichever architecture you choose. Test each of these in every country you sell into, in a sandbox first and then with controlled production checks.

  • Payments: confirm with each provider which methods it supports for your business, such as mada, Apple Pay and pay-later plans. Test approved payments, declines, 3-D Secure challenges and partial refunds end to end.
  • Refunds and returns: check that refunds reach the original payment method, including pay-later plans, and that stock and accounting entries follow.
  • Arabic checkout: test forms, Saudi address and phone formats, error messages and emails in Arabic.
  • Speed on a phone: a custom storefront is only worth it if it stays fast. Reserve space for images and banners, and read our notes on CLS and layout stability before launch.
  • E-invoicing: decide which system issues tax invoices: the commerce backend, an ERP or accounting software. Then test that integration end to end.

The e-invoicing point needs its own check. ZATCA brings taxpayers into the integration phase in waves. As of October 2026, its latest announced wave, Wave 25, covers taxpayers whose VAT-subject revenue exceeded SAR 187,500 in 2022, 2023, 2024 or 2025, with integration with the Fatoora platform due by 1 February 2027. Ask your tax adviser how this applies to you; your storefront choice does not settle it.

A passing sandbox does not prove production works, so check credentials, webhooks, settlement and invoice reporting again before the full launch.

One blank invoice sheet labelled Who issues the tax invoice? has dashed routes to Store backend, ERP and Accounting software, none chosen.

Decide which system issues tax invoices: the commerce backend, an ERP or accounting software, then test that integration end to end. ZATCA brings taxpayers into its integration phase in waves; ask your tax adviser how it applies to you, because the storefront choice does not settle it.

Our headless e-commerce plans start at SAR 6,000 for an architecture blueprint, SAR 25,000 for a headless storefront and SAR 50,000 for a connected storefront, all before VAT. The storefront plans assume a commerce backend that already works, so building or customising a Medusa backend is scoped separately, as are licences, hosting and usage costs.

The blueprint is a planning engagement with no build: one discovery workshop, a map of the catalogue, cart and checkout APIs, wireframes for up to 3 key screens and an itemised estimate. Your proposal confirms the final scope and price. For a wider comparison with Salla storefront design, Shopify theme development and WooCommerce, see our guide to store build prices in riyals.

Choose by what has to change, then by who will run it.

  • Choose Hydrogen when a custom storefront is what sets you apart, Shopify's commerce model and the payment providers available in your country fit your business, and you want Shopify to run the backend.
  • Choose Medusa when your commerce logic needs changes that hosted platforms don't support, and you can staff its operation for the life of the store.
  • Choose neither when a store built on an established platform would serve your customers well. A headless build adds a storefront to build and maintain, so take it on only for a clear reason.

Before either build, work out what one order earns after payment, delivery and returns; our article on the GCC e-commerce opportunity shows the calculation.

When you are ready, bring us your current platform, the checkout you need and the people who will run the store after launch. We'll tell you whether a separate storefront solves a real problem, and if it does, scope the headless commerce development with a named owner for every layer.

Platform features, payment options and tax obligations change and differ by country, so confirm them with providers, ZATCA and your advisers. This article is TecnoStack's planning guidance, not vendor requirements or tax advice. Sources checked in October 2026.

Discuss your website, store, app or AI project in Arabic or English. We agree the scope before work starts.

Book a free scoping callCompare services and prices