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.

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.

B2B eCommerce

Build B2B or wholesale portals with custom price lists, buyer organizations, purchase approvals, and net payment terms. Connect via REST API or use the Next.js storefront.

Spree B2B eCommerce platform — wholesale portal with custom price lists, buyer organizations, and approval workflows

Multi-vendor Marketplace

Launch a multi-vendor marketplace where vendors manage their own products while you control payouts, commissions, and quality. Ships with a production-ready Next.js storefront.

Spree multi-vendor marketplace — vendors managing their own products with payout and commission controls

Multi-tenant eCommerce

Embed a full commerce engine in your SaaS, franchise network, or reseller program. Each tenant gets their own storefront and dashboard. Integrate via REST API from any language.

Spree multi-tenant eCommerce — multiple independent storefronts and dashboards powered by one platform

Multi-store eCommerce

Run multiple brands or storefronts from
a single backend with shared inventory, customers, and operations.

Spree multi-store eCommerce — many brand storefronts managed from a single Spree admin dashboard

Multi-region eCommerce

Sell cross-border with localized storefronts, currencies, tax rules, and shipping options per market. Markets, Translations Center, and EU Omnibus compliance built in.

Spree multi-region eCommerce — one brand storefront selling in USD, GBP, and EUR across US, UK, and Germany markets

Digital Products eCommerce

Sell software, downloads, subscriptions, 
or licenses with automated fulfillment and access management.

Spree digital products eCommerce — images, videos, and audio files managed and sold through an open-source storefront

Subscriptions

Manage recurring revenue with flexible subscription models, from meal kits to replenishment boxes to digital memberships.

Spree subscription eCommerce — configurable subscriptions with recurring subscription payments

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.

Advanced Product Management

Handle unlimited products and variants, product properties, and rich media with a flexible data model that fits any catalog.

Flexible Pricing Engine

Create price lists, volume tiers, customer-specific pricing, and time-based promotions. Markets support per-region currency and pricing from a single instance.

Spree flexible pricing engine — tiered pricing showing Retail $49, Wholesale $32, and VIP $25 for the same product

Customer Segmentation

Group customers by segment, order history, or custom attributes to deliver personalized pricing and experiences.

Spree customer segmentation — 30K+ customers grouped into Gold, New, and B2B segments

International By Default

Multi-currency, multi-language, region-specific tax rules, and EU Omnibus compliance built in. Translations Center for bulk content localization. No plugins.

Spree international eCommerce — multi-currency and multi-language storefront with region-specific settings

Configurable Promo Engine

Build sophisticated promotions with configurable rules and actions, manual coupon codes, automatic discounts, gift cards, free shipping.

Spree promo engine — shopping cart with coupon 20% off, $50 gift card, and free shipping promotions

Flexible Order Workflows

Customize order states and steps, fulfillment flows, and post-purchase processes to match how your business actually operates.

Spree flexible order workflows — customizable order states and fulfillment steps

Checkout & Payments

Payment Sessions handle any provider: Stripe, Adyen, PayPal, or your own. 3D Secure, PCI compliance, and webhooks work the same regardless of gateway. Swap providers without changing storefront code.

Spree checkout and payments — payment gateway integration with multiple payment method options

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

icon Agents

  • Make your products discoverable by AI agents.
  • Allow customers to check out instantly.

icon Storefront

  • DTC, Marketplace and B2B starters to quickly get you going.
  • Industry best practices for performance and SEO.
  • Integrated with payments and analytics.

icon Admin

  • Fully customizable admin dashboard.
  • Role-driven permission system.
  • Generate boilerplate code with AI Agents with ease.

icon Commerce Core

  • Battle-tested Commerce engine.
  • Configurable Tax and Promotion engine.
  • Connect any payment gateway.

icon Framework

  • SDK and CLI included.
  • Customize any part of the stack.
  • Rip and replace whatever you need.

icon Sandboxes

  • Free sandbox hosting.
  • Spin-up Spree instance in seconds.
    Experiment, build, evaluate!

icon Agents

  • Make your products discoverable by AI agents.
  • Allow customers to check out instantly.

icon Storefront

  • DTC, Marketplace and B2B starters to quickly get you going.
  • Industry best practices for performance and SEO.
  • Integrated with payments and analytics.

icon Admin

  • Fully customizable admin dashboard.
  • Role-driven permission system.
  • Generate boilerplate code with AI Agents with ease.

icon Commerce Core

  • Battle-tested Commerce engine.
  • Configurable Tax and Promotion engine.
  • Connect any payment gateway.

icon Framework

  • SDK and CLI included.
  • Customize any part of the stack.
  • Rip and replace whatever you need.

icon Sandboxes

  • Free sandbox hosting.
  • Spin-up Spree instance in seconds.
    Experiment, build, evaluate!

Why Spree?

icon For Developers

icon Complete REST APIs

OpenAPI 3.0 documented. Build any frontend or mobile app. TypeScript SDK and Next.js storefront included.

icon True Headless

Use Spree as your commerce backend API. Next.js, React Native, Flutter, or generate clients from OpenAPI. Your choice.

icon Extensible Architecture

Events, webhooks, dependency injection. Replace your payment provider, search engine, or any component without forking.

icon AI-Ready

CLI, AGENTS.md, MCP server, and OpenAPI specs. AI coding assistants understand your Spree project from the first prompt.

icon Well-documented

For both you and your AI agent. Support also available. Join our Slack!

icon Try it today

Get free demo access to the admin dashboard and API. No credit card required.

icon Contribute to open-source

If you care to share, contribute your pull requests and support the Spree community.

icon For Businesses

icon Zero Platform Fees

No GMV cuts. No transaction fees. Predictable costs that don’t scale with revenue.

icon Enterprise Proven

Maisonette, GoDaddy, and global brands run production commerce on Spree. Trusted for over a decade.

icon Built for Complexity

B2B, marketplace, multi-tenant, multi-store, cross-border, and D2C. All native. One platform, any business model.

icon Total Ownership

Own your entire stack and IP. Your data, your servers, your roadmap. Deploy anywhere. Migrate never.

icon Compliance Ready

Use any SSO. Data sovereignty built-in. SOC2, ISO27k, CCPA & CPRA, GDPR, HIPAA on your terms.

icon Future-Proof Architecture

Swap your storefront or payment provider without touching the backend. Stable REST APIs mean your integrations survive every upgrade.

icon Expert Support Available

Dedicated support plans, and an active community. Help when you need it, independence when you don’t.

Handles operations at scale

Manage millions of SKUs, orders, and customers without performance bottlenecks. Multi-warehouse, multi-currency, and multi-regional support built in.

Spree enterprise operations at scale — handling millions of SKUs, orders, and customers

Runs on any infrastructure

Deploy on AWS, GCP, Azure, or your own data centers. Docker-ready with full control over your hosting environment and data residency.

Spree self-hosted deployment — runs on AWS, GCP, Azure, or on-premise with Docker

Customizable & Extensible

Extend any workflow through clean extension points – no core modifications required.

Spree customizable and extensible — custom workflows, analytics, and payment integrations connected to core platform

Integrates with your systems

REST APIs for every resource mean your ERP, PIM, WMS, and marketing automation tools connect through standard HTTP calls. OpenAPI 3.0 specs for automated client generation.

Spree system integrations — connecting ERP, CRM, PIM, and fulfillment providers through APIs and webhooks

Role Based Access Control

Granular access controls with custom roles and audit trail for separation of duties and accountability.

Spree role-based access control — one admin dashboard with Admin, Store Manager, and CS Agent roles at different access levels

Enterprise security by default

Security-hardened architecture with encryption, SSO, audit logging, and compliance-ready controls out of the box.

Spree enterprise security — encryption, SSO, audit logging, and compliance-ready controls built in

Enterprise support available

Dedicated support team with SLA-backed response times, priority escalation, and direct access to Spree engineers.

Spree enterprise support — dedicated support team with SLA-backed response times and priority escalation

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

15k

icon Github stars

2m+

icon Downloads

5k+

icon Forks

7k

icon 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.

Let's use Spree to build exactly what your business needs

facebook