r/webdev • u/artensonart98 • 2d ago
Question Most mature open-source eCommerce system with a ready starter template?
I'm looking for a battle-tested, open-source eCommerce backend that handles commerce and payment edge cases reliably, including successful, failed and pending payments, webhooks, reconciliation, background jobs, retries, order lifecycle, etc.
Ideally, I'd prefer a serverless architecture using Hono or a similar framework that can run on Cloudflare Workers or comparable platforms.
My preferences:
- Production maturity and payment reliability.
- Ready-to-use starter template.
- Lowest possible hosting and operational costs.
- Minimal infrastructure and maintenance overhead.
What would you recommend? I'd rather build on a proven system than reinvent critical commerce and payment logic.
13
Upvotes
17
u/EngYehiaMahmoud 2d ago
No mature OSS commerce backend runs natively on Workers today. The ones that actually handle payment edge cases all assume a long-running Node/Python/Ruby process plus Postgres, so the real choice is: accept a container host, or keep the commerce core off Workers.
Worth a look:
npx create-medusa-appgives you backend + starter storefront. It deploys as a normal Node service with Postgres and Redis, so Railway/Render/Fly stays cheap.@vendure/createscaffolds a project.On the payment lifecycle specifically: don't reimplement reconciliation. Make your PSP the source of truth. Idempotency keys on every charge, a webhook handler that verifies signatures and is itself idempotent, and stored webhook events that your order state machine derives from. Pending/failed/succeeded should come from those events, not from polling the API.
If Workers is non-negotiable, the pragmatic split is Stripe for payments, Hyperdrive plus Postgres for order tables, Queues for background jobs and retries, and a small Hono API on top. What you lose is the ready-made admin and fulfillment backend, and you end up writing order state transitions yourself, which is the part you said you don't want to reinvent. Honest take: run Medusa or Vendure on a container host and put Cloudflare in front for DNS and caching.
10
u/Copthill 2d ago
WooCommerce.
3
u/clearlight2025 2d ago edited 2d ago
Drupal Commerce can do all that, but you’ll need a container to host it. It provides a mature and flexible framework for ecommerce solutions.
https://drupalcommerce.org/
2
u/ArseniyDev 2d ago
For something production mature id look at woo first because it have more then 2 mil stores on production while medusa have much less adoption. Medusa you can technically put on worker maybe but you will have to deal with making pg working server-less.
2
u/NoNewspaper1837 2d ago
WooComerce is the best
1
u/Greedy_Ad_7658 2d ago
Whatever platform you pick, the payment edge cases mostly come down to a few habits, so check that the system you choose does them (or add them yourself):
On the Workers side, the awkward part is usually DB connections and long jobs, which is why most of the mature options want a container. Splitting it works well: commerce core on a small container or VPS, storefront on the edge.
1
u/Ahmed_Hisham0 2d ago
depends what "mature" means to you, but roughly in order of how safe i'd feel shipping one:
medusa is the one most people land on now. node, good docs, headless by default, and the admin is usable. it's not as deep as the old php ones but the ecosystem is active, which matters more.
saleor if you want python and a more opinionated graphql api. heavier, but it's the closest thing to a proper commerce platform in that stack.
vendure if you're on node and want to own more of it. plugin system is the nicest of the bunch.
sylius if you're a symfony shop already. spree or solidus if you're ruby.
and bagisto or magento if you genuinely need the full traditional feature set and don't mind the weight.
the honest caveat: "ready starter template" is where these all fall down. the starter gets you a storefront that looks finished and then you spend three weeks on tax, shipping rules and returns, which is the actual work in ecommerce. pick the one whose admin you can live in, because you'll be in it more than the code.
1
u/Haunting_Affection 2d ago
Vendure is underrated for this. TypeScript, very solid job queue, and the payment handling is clearly built by people who've been burned by edge cases before. Less hype than Medusa but feels more stable release to release.
1
u/SoundSpecific9751 2d ago
If you want battle-tested maturity, MedusaJS or Saleor are the best open-source picks
1
u/thekwoka 2d ago
Basically none are good. Most are pretty objectively awful.
1
u/sachingkk 2d ago
OroCommerce
1
u/SingleWillingness650 2d ago
Medusa or Saleor are super mature for heavy order/payment edge cases, though they usually want more traditional servers/queues than Cloudflare Workers
1
u/SectionAndShelf 2d ago
One thing I'd weigh before picking an engine is how much of the store you actually need. If the catalog is small and the checkout is mostly standard, a full commerce engine is a lot of surface area to run — the starter template is the easy part, and the order lifecycle, refunds, and reconciliation are where the maintenance lives.
A cheaper way to find out: prototype the money path first. Put a thin Hono service on Workers in front of the payment provider's hosted checkout, with a queue for the slow work and one job that reconciles pending orders against the provider. If that feels solid, you've learned what you need from an engine before adopting one. If it starts to strain — complex pricing, multi-warehouse stock, backorders — that's when Medusa or Saleor earn their keep, hosted as a small always-on service behind the edge storefront.
The trap to avoid is treating serverless as zero-ops. It moves the ops, it doesn't remove it: you still own retries, idempotency, and what happens when a webhook arrives twice.
1
u/imhongst 2d ago
one thing i'd add from working on payment stuff: the webhook + order state machine covers single orders, but you still want a separate check against the payment provider's payout/settlement report. fees, partial refunds and disputes land there days later and they don't always map 1:1 to your order rows.
what i do is put the order id in the payment metadata when creating the charge, then match the payout lines back by that id and flag anything where the net amount isn't what you expected. boring, but that's where money quietly goes missing.
so whichever backend you pick, check how it stores partial refunds and fees (actual amounts, not just a status). much easier to have that from day one than to rebuild it later
1
u/ravibhojani 2d ago
For payment edge cases specifically, I'd look at Medusa before anything else. It's open source, has a proper order lifecycle, payment sessions and webhook handling, and a starter storefront you can deploy. The catch is it's Node with Postgres and Redis, so it won't run on Workers; you'd host it on a small VPS or Railway and put a Workers or Next.js storefront in front of it. If Workers is a hard requirement, nothing in that space is as mature, and I'd be careful about rolling your own. A middle path is Stripe Checkout plus its webhooks, with a small orders table you update idempotently (store the event ID, ignore repeats). That covers failed, pending and retried payments with far less code than a full commerce engine, though you give up inventory and fulfilment features.
1
u/SecureComfortable259 1d ago
Medusa v2 is the most proven open-source option, but it needs Node, Postgres and Redis and doesn't run on Workers. Pair it with a Workers-hosted storefront, since the Hono + D1 templates are too new to trust with payments.
1
u/flexext 1d ago
The honest catch with Hono on Cloudflare Workers right now is that there is no truly battle-tested open-source e-commerce backend built natively for Workers yet. Once you need reliable webhook idempotency, background retries, reconciliation jobs, and ACID order state transitions, pure edge runtimes start adding complexity rather than removing it (queues, Durable Objects, D1 limitations, cold-start quirks with some payment SDKs).
If payment reliability and low operational cost matter more than running the backend strictly on Workers, you have a few pragmatic paths:
MedusaJS or Vendure if you want TypeScript, proper order lifecycle workflows, and a ready Next.js/Remix starter. Both run very cheaply on a single small VPS (around 5 to 10 USD/month) with Postgres and Redis, and you can still put Cloudflare or a Hono storefront in front of them.
Traditional pure-PHP monoliths like OpenCart 4 or WooCommerce if lowest hosting cost and a ready starter template out of the box are the top priority. You get mature payment gateway modules, built-in order lifecycles, and zero separate worker/queue infrastructure to babysit.
If you really want to stay on Hono and Cloudflare Workers, the cleanest compromise is letting Stripe Checkout (or Lemon Squeezy / Paddle) own the payment state machine, retries, and receipts, and keeping your Workers backend thin: just an idempotent webhook handler backed by Postgres (Neon/Supabase) or D1 with a unique constraint on payment_intent_id / event_id so duplicate webhooks never double-fulfill an order.
1
u/usually_guilty99 1d ago
Would you still run a periodic fetch for orders stuck in pending? Webhooks can be delayed or dropped, so event-driven transitions alone can leave a paid order stranded unless there is a reconciliation pass against the PSP.
1
u/NadirDev 2d ago
if you are a WordPress user, then WooCommerce is best. And in this AI era, literally, whatever you need you can do with it.
0
u/[deleted] 2d ago
[deleted] — view deleted comment