
Spree Commerce
Spree Commerce is a BSD-3-Clause headless ecommerce framework with REST APIs, a TypeScript SDK, and storefront tooling for custom commerce builds. It replaces proprietary commerce suites when teams ne
Replaces —

Who it's for
Spree fits marketplace and multi-vendor commerce where catalog, checkout, and vendor rules need backend customization. API-first design keeps storefront choices flexible.
Use a hosted commerce builder if your requirements match a standard catalog, cart, and checkout flow.
Teams can adapt Spree for account-specific pricing, cross-border requirements, and custom order logic. Code ownership helps when commerce behavior is a differentiator.
Skip it if your team lacks developers to maintain payment, fulfillment, and commerce operations.
The problem
Commerce teams hit limits when storefront, checkout, catalog, promotions, and fulfillment rules must fit a hosted product's assumptions. Custom B2B, marketplace, multi-vendor, or international workflows often require deeper backend control than a simple SaaS storefront allows.\u000A\u000ABuilding commerce infrastructure from scratch is risky because payments, inventory, orders, taxes, and promotions contain many edge cases. Teams need a proven commerce core they can customize without giving up code ownership.
How it works
Spree exposes commerce capabilities through APIs so teams can build custom storefronts, mobile apps, or partner portals on top of one backend.
The project includes modern storefront tooling around Next.js and a TypeScript SDK. That helps teams start with a working frontend while keeping commerce logic in Spree.
Spree positions itself for cross-border, B2B, and marketplace ecommerce. These workflows usually require deeper customization than basic hosted storefront products.
Features
- Headless commerce APIs
- Next.js storefront path
- Marketplace and B2B support
Recommended for this setup
Strengths
- Commerce code ownership: Teams can modify the commerce backend instead of working around a proprietary SaaS API. That matters when checkout, tax, pricing, or marketplace rules are core product logic.
- Permissive open source base: BSD-3-Clause licensing gives teams a permissive foundation for commercial ecommerce projects. It is easier to evaluate than source-available commerce cores with field-of-use limits.
Trade-offs
- Requires ecommerce engineering: Spree is not a no-code store builder. Teams need developers who can run, customize, and maintain a commerce backend, storefront, integrations, and deployment pipeline.
- Hosted platforms move faster for standard shops: Shopify-style products are usually faster for simple catalogs and standard checkout. Spree pays off when customization and ownership justify the added engineering work.
Tech stack
FAQ
Spree Commerce is an open source headless ecommerce framework. It provides APIs and backend commerce capabilities for teams building custom storefronts, marketplaces, or B2B commerce flows.
Yes. Spree Commerce is BSD-3-Clause licensed. Teams can use and modify it for commercial commerce projects under permissive terms.
Spree gives developers source-level control over the commerce backend, while Shopify provides a managed hosted product. Spree is better for custom commerce logic; Shopify is better for standard stores that need speed and hosted operations.