Open Source eCommerce
Platform for B2B, Marketplace,
and Enterprise
REST API, TypeScript SDK, and production-ready Next.js storefront. Self-host it. Own your stack. No vendor lock-in. Zero platform fees.
npx create-spree-app@latest my-store
Build with Spree
Spree handles complex commerce scenarios out of the box, from B2B wholesale portals to multi-vendor marketplaces to cross-border operations. Use each model independently or combine them.
Spree has given us the flexibility to run our B2B wholesale and consumer brands from one unified catalog with custom pricing, ERP integration, and multi-store management that fits how our business actually works. As we’ve grown from a single storefront to multiple brands, the platform has scaled with us.
Wilson Lau, President @ Nuherbs
Spree features
From advanced product management and flexible pricing to multi-currency checkout and provider-agnostic payments. A complete commerce backend with REST API access to every feature. Open source. No plugins.
We integrated Spree’s REST API into our mobile app to bring a full marketplace shopping experience to our users connecting multiple vendors, including Shopify stores, into one seamless checkout. The API documentation was clear, the endpoints did what we needed out of the box, and we had our first vendor live in days, not months.
Antoine Lavail, CTO @ VERO
What is Spree?
Build Your Commerce Stack,
Layer by Layer
A modular architecture designed for speed, flexibility, and AI-powered customization.
Agents
- Make your products discoverable by AI agents.
- Allow customers to check out instantly.
Storefront
- DTC, Marketplace and B2B starters to quickly get you going.
- Industry best practices for performance and SEO.
- Integrated with payments and analytics.
Admin
- Fully customizable admin dashboard.
- Role-driven permission system.
- Generate boilerplate code with AI Agents with ease.
Commerce Core
- Battle-tested Commerce engine.
- Configurable Tax and Promotion engine.
- Connect any payment gateway.
Framework
- SDK and CLI included.
- Customize any part of the stack.
- Rip and replace whatever you need.
Sandboxes
- Free sandbox hosting.
- Spin-up Spree instance in seconds.
Experiment, build, evaluate!
Agents
- Make your products discoverable by AI agents.
- Allow customers to check out instantly.
Storefront
- DTC, Marketplace and B2B starters to quickly get you going.
- Industry best practices for performance and SEO.
- Integrated with payments and analytics.
Admin
- Fully customizable admin dashboard.
- Role-driven permission system.
- Generate boilerplate code with AI Agents with ease.
Commerce Core
- Battle-tested Commerce engine.
- Configurable Tax and Promotion engine.
- Connect any payment gateway.
Framework
- SDK and CLI included.
- Customize any part of the stack.
- Rip and replace whatever you need.
Sandboxes
- Free sandbox hosting.
- Spin-up Spree instance in seconds.
Experiment, build, evaluate!
Why Spree?
For Developers
Complete REST APIs
True Headless
Extensible Architecture
AI-Ready
Well-documented
Try it today
Contribute to open-source
For Businesses
Zero Platform Fees
Enterprise Proven
Built for Complexity
Total Ownership
Compliance Ready
Future-Proof Architecture
Expert Support Available
Enterprise Edition
Everything enterprise teams need to launch, scale, and secure mission-critical commerce. Backed by dedicated enterprise support for go-live, daily operations, security compliance, and continuous optimization.
FreshRealm uses Spree Commerce multi-tenant eCommerce platform for its white-label meal subscription websites. The platform integrates FreshRealm’s production, inventory, and fulfillment systems, supporting direct-to-consumer operations. FreshRealm continues to work with Spree as a technology partner and endorses them for businesses seeking a customizable and enterprise-level eCommerce platform.
Eva Jakubowska, CTO @ FreshRealm
Spree success stories
Spree open source
community
15k
Github stars
2m+
Downloads
5k+
Forks
7k
Slack members
Frequently Asked Questions
Can I embed a commerce engine into my SaaS product?
Spree Commerce is designed for embedding. Call the REST API from any backend language to add product catalogs, checkout, and payments to your existing application. Single-vendor, multi-vendor, or multi-tenant architectures all work on the same codebase. No platform fees. Deploy on your infrastructure.
How do open source platforms handle cross-border ecommerce?
Spree Commerce bundles cross-border capabilities natively. Markets group geography, currency, language, and payment rules into one entity. A Translations Center handles bulk content localization. EU Omnibus compliance tracks 30-day price history automatically. Run as many markets as the business needs from a single admin panel, with no per-market fees.
Which ecommerce platforms have a REST API instead of GraphQL?
Spree Commerce provides a complete REST API with OpenAPI 3.0 documentation. Every commerce resource (products, orders, customers, payments) is accessible via standard HTTP endpoints with flat JSON responses. Teams that need REST for mobile apps, ERP integrations, or AI agents can generate typed clients in any language from the spec.
Is there a production-ready Next.js ecommerce storefront?
Spree Commerce ships an open source Next.js storefront built with TypeScript, MeiliSearch, and transactional React emails. Fork the repository, connect it to the Spree Commerce REST API, and deploy. The TypeScript SDK handles authentication, cart, and checkout. Go from zero to a working storefront in hours, not weeks.
Can I build a multi-vendor marketplace with open source software?
Spree Commerce includes a multi-vendor marketplace module in the open source Community Edition. Vendors get their own dashboard to manage products and orders. You control commissions, payouts, and quality. No per-vendor fees or revenue share with the platform. Maisonette runs a production marketplace on Spree Commerce with over 65,000 products.
Is there an open source B2B ecommerce platform?
Spree Commerce ships B2B as a native module: custom price lists, buyer organizations with approval workflows, net payment terms, and account-specific catalogs. Most platforms require third-party plugins or a separate B2B product. Spree Commerce runs B2B, D2C, and marketplace from a single codebase with one REST API.
What is headless ecommerce and why does it matter?
Headless ecommerce separates the storefront from the commerce engine that handles catalog, cart, checkout, and payments. You build any frontend (website, mobile app, SaaS interface) while the backend exposes a REST API. The result: full design freedom, faster page loads, and the ability to swap your storefront or payment provider without rewriting backend logic.
What is an open source ecommerce platform?
An open source ecommerce platform provides full source code access so your team can inspect, modify, and extend every part of the system. Spree Commerce uses the BSD 3-Clause license with zero platform fees and no vendor lock-in. Deploy on your own infrastructure and retain complete ownership of your data and codebase.