Next.js Commerce vs Medusa is not a fair fight, because the two do different jobs. Next.js Commerce was a free storefront template from Vercel. Medusa is a backend that handles products, carts, and orders. One update matters most: Vercel has archived the Next.js Commerce repository and calls the template deprecated (Next.js Commerce GitHub, 2026). If you want Medusa with a Next.js storefront, start from Medusa's own starter instead.
At a glance
- Next.js Commerce is archived. Medusa has its own Next.js starter.
- Medusa's core is free (MIT license). Hosting it is not free.
- Medusa Cloud costs $29, $99, or $299 a month (Medusa pricing, 2026).
- Self-hosting needs at least 2 GB of RAM, Postgres, and Redis.
Prices checked November 14, 2026 on the Medusa, Vercel, Railway, and Hostinger pricing pages. Plans and prices change, so check each page before you buy.
Disclosure: the Hostinger links and the coupon code below are part of Hostinger's affiliate programme. Tutorsbot may earn a commission if you buy, at no extra cost to you.
Next.js Commerce vs Medusa: what each one does
Next.js Commerce is the storefront, which is the part shoppers see. Medusa is the backend, which stores products and takes orders. A storefront cannot run a shop alone, and a backend has no pages for shoppers.
Next.js Commerce is a server-rendered Next.js App Router app under the MIT license. It uses React Server Components and Server Actions. The code in the repository talks to Shopify. The README lists Medusa, BigCommerce, Saleor, and others as providers that you swap in by replacing the lib/shopify file (Next.js Commerce GitHub, 2026).
Medusa is a headless commerce platform. Headless means the backend has no built-in storefront and shows data through an API (a set of web addresses your code calls). Its server runs on Express.js and supports only PostgreSQL as its database (Medusa docs, 2026).
Nextjs ecommerce template, starter and GitHub options
The free options in 2026 are the Medusa Next.js starter, the Vercel Shop template for Shopify, and the archived Next.js Commerce repo. Pick by backend, not by looks.
- Medusa Next.js Starter Storefront: free, built for a Medusa backend. Since Medusa v2.14.0 you install it with the Medusa app through
create-medusa-app. It needs Node.js v22.22.0 or newer (below v25) and PostgreSQL (Medusa docs, 2026). - vercel/shop: an MIT-licensed Shopify storefront on Next.js 16, React 19, and Tailwind CSS 4. It works only with Shopify (vercel/shop GitHub, 2026).
- vercel/commerce: read-only. Its README says development moved to vercel/shop.
Is there a free nextjs ecommerce template?
Yes. All three options above are free to copy and change. The template costs nothing, but the backend and hosting behind it do. A Shopify backend needs a Shopify plan. A Medusa backend needs a server or a Medusa Cloud plan.
Do not start a new project on the archived repo. It gets no fixes. Medusa also links a separate medusajs/vercel-commerce repo for its backend, but the README does not show whether that repo is still maintained, so test it before you trust it. If you want a nextjs ecommerce starter that fits Medusa, use the Medusa starter. It is the one the Medusa team documents.
Medusa vs Shopify: which one should you pick?
Pick Shopify if you want a shop live fast and have no developer. Pick Medusa if you have developers and want to own the code and the checkout logic.
This is the medusa vs shopify choice in one line. Shopify is a hosted product. You pay a plan fee and Shopify runs the servers, the checkout, and the admin. Medusa is code that you run or rent. Medusa Cloud lists a 0% GMV platform fee (GMV is the total value of your sales) and unlimited orders and products on every plan (Medusa pricing, 2026). You still pay for payment processing, which Stripe or another provider charges.
Medusa JS vs Shopify: where each one wins
Medusa JS wins on code control and on platform fees. Shopify wins on setup time, ready-made apps, and one-click checkout features. I did not count apps on either side, so I give no app numbers.
| Question | Medusa | Shopify |
|---|---|---|
| Who runs the servers? | You, or Medusa Cloud | Shopify |
| Who writes the storefront? | Your developers | A theme, or your developers on the Storefront API |
| Platform fee on sales | 0% on Medusa Cloud (Medusa pricing, 2026) | Depends on plan and payment provider. Check Shopify's pricing page for your country. |
| Database | PostgreSQL only | Managed by Shopify |
| Best fit | Custom shops with a dev team | Shops that need to launch fast |
If you already know you want Shopify with a custom front end, read our headless Shopify cost guide. If you compare other big platforms, see BigCommerce vs WooCommerce Enterprise.
Is Medusa good? A short Medusa review
Medusa is good if you have developers and want control. It is a poor pick if nobody on your team writes TypeScript or runs servers. This medusa review is based on its docs and pricing page, not on a load test of my own.
What looks strong from the docs:
- The core is licensed under the MIT License, and the GitHub repo shows 37.2k stars (Medusa GitHub, 2026).
- The code is split into modules, workflows, and API routes, so you can add your own logic (Medusa docs, 2026).
What to watch:
- You must run a server, a database, and Redis, or pay Medusa Cloud to do it.
- Postgres is the only supported database for the core.
- The role-based access (RBAC) features in the Enterprise Edition need a separate commercial agreement with MedusaJS, Inc. (Medusa GitHub, 2026).
- You build the storefront. The starter helps, but you own the code after that.
Self hosted ecommerce platform: what you need to run one
A self hosted ecommerce platform is a shop engine that you install on your own server. The software can be free. The server, backups, updates, and security are your job.
For Medusa v2, the docs describe two copies of the same app plus two databases (Medusa docs, 2026):
- Server mode: handles API requests and serves the Medusa Admin dashboard.
- Worker mode: runs background jobs such as scheduled tasks.
- PostgreSQL: stores your shop data.
- Redis: stores sessions.
The docs say your host and plan must offer at least 2 GB of RAM. They set the two modes with environment variables, so one codebase serves both:
# Server instance
MEDUSA_WORKER_MODE=server
DISABLE_MEDUSA_ADMIN=false
# Worker instance
MEDUSA_WORKER_MODE=worker
DISABLE_MEDUSA_ADMIN=true
The Next.js storefront runs on its own. It reads NEXT_PUBLIC_MEDUSA_BACKEND_URL and NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY to find and talk to your backend. Pair it with a database plan you understand. Our PostgreSQL vs MySQL guide explains the basics, and Stripe vs Adyen vs Braintree helps you pick a payment provider.
Best self hosted ecommerce platform: is Medusa the one?
No single platform is best for every shop. I only compared Medusa and the Next.js storefront options here, so I cannot rank it against others. Medusa fits teams that write JavaScript or TypeScript. For a store that already runs on WordPress, a different open source tool may suit you better.
Free self hosted ecommerce: what is really free?
The Medusa core and the Next.js storefront code cost $0. The server does not. Count hosting, a domain, email, backups, and your own time.
Medusa JS hosting and self hosting costs
Medusa JS hosting starts at $29 a month on Medusa Cloud. Self hosting on a VPS can cost less per month, but you take on the work. The prices below come from each provider's own page in 2026.
| Option | What you get | Price and billing |
|---|---|---|
| Medusa Cloud Develop | One shared server, 600 compute hours a month. No Redis, no autoscaling, no automatic backups. | From $29 per month, billed monthly |
| Medusa Cloud Launch | Autoscaling, Redis, 7-day automatic backups, 1,000 compute hours | From $99 per month, billed monthly |
| Medusa Cloud Scale | Adds a background worker, priority support, 14-day backups, 2,800 compute hours | From $299 per month, billed monthly |
| Railway Pro | You build the services yourself. Usage is billed by the second. | $20 per month per workspace, with $20 of usage included |
| Vercel Pro (storefront) | Hosts the Next.js storefront. 1 TB of data transfer included. | $20 per month |
Sources: Medusa pricing, Railway pricing, Vercel pricing (2026). Medusa lists extra compute hours at $0.16 an hour past the plan limit. Vercel's page does not say whether Hobby ($0 per month) allows shops that earn money, so read Vercel's terms before you put a shop on it.
How much does Railway cost for Medusa?
Railway charges about $20 a month per vCPU and about $10 a month per GB of RAM if a service runs all month. That is my math from its per-second rates ($0.00000772 per vCPU-second and $0.00000386 per GB-second). One server with 1 vCPU and 2 GB would use about $40. Postgres and Redis also run as services and add to the bill. For more detail, see Railway pricing and Vercel pricing.
Medusa JS self hosting on a VPS
A VPS (virtual private server) is a rented slice of a server that only you control. You can put Medusa, Postgres, Redis, and the storefront on one machine. That is the cheapest layout, and it is also the easiest to break. For plans from other providers, see cheap VPS hosting.
Hostinger as a cheaper self-hosted option
You can run Medusa or a Next.js storefront on a Hostinger KVM VPS. KVM is a type of virtualization that gives you your own CPU and memory share. Hostinger lists four plans, and every price below needs a 24-month term paid up front (Hostinger, 2026).
| Plan | vCPU | RAM | NVMe storage | Price for 24 months | Renewal price |
|---|---|---|---|---|---|
| KVM 1 | 1 | 4 GB | 50 GB | $6.49 per month ($155.76 up front) | $11.99 per month |
| KVM 2 | 2 | 8 GB | 100 GB | $8.79 per month ($210.96 up front) | $14.99 per month |
| KVM 4 | 4 | 16 GB | 200 GB | $12.99 per month ($311.76 up front) | $28.99 per month |
| KVM 8 | 8 | 32 GB | 400 GB | $25.99 per month ($623.76 up front) | $49.99 per month |
The renewal price is higher and also runs for 24 months. Check the renewal price before you buy. I worked out the four-year totals myself:
| Plan | First 24 months | Next 24 months | Total over 48 months | Average per month |
|---|---|---|---|---|
| Hostinger KVM 1 | $155.76 | $287.76 | $443.52 | $9.24 |
| Hostinger KVM 2 | $210.96 | $359.76 | $570.72 | $11.89 |
| Medusa Cloud Develop | $29 times 48 months | $1,392 | $29.00 | |
| Medusa Cloud Launch | $99 times 48 months | $4,752 | $99.00 | |
Both KVM plans pass Medusa's 2 GB RAM minimum. KVM 2 gives more room, because one machine would run the server, a worker, Postgres, Redis, and maybe the storefront. That sizing is my judgment, not a Hostinger or Medusa rule. Hostinger lists full root access and free automatic weekly backups. It also offers a 30-day money-back guarantee. The plans are not managed, so you handle updates, security, and database backups (Hostinger, 2026).
Who should not self-host? Skip it if nobody on your team can fix a server at night. Skip it if you take card payments and cannot keep the server patched and the data backed up. Skip it if you want to test for a few months, because the price needs 24 months up front and the refund window is 30 days. In those cases, Medusa Cloud or Shopify costs more each month but removes the server work. If a VPS fits, see the Hostinger VPS plans.
Disclosure: this link is an affiliate link. Tutorsbot may earn a commission if you buy, at no extra cost to you.
Which stack should you choose?
Use this rule. If you have no developer, use Shopify. If you have developers and want less server work, use Medusa Cloud with a Next.js storefront. If you have developers and an ops person, self-host Medusa on a VPS or Railway.
- Custom checkout rules and a small dev team: Medusa Cloud Launch ($99 per month) plus the Medusa Next.js starter.
- Tight budget and strong server skills: self-hosted Medusa on a KVM 2 plan. Plan on about $11.89 a month over four years, plus your time.
- Shopify backend with a custom front end: the vercel/shop template.
If you pay a team to build the shop, see Shopify app development cost to set a budget.
Fazlur Rahman






