Spree Commerce
Spree Commerce 6 for B2B & Marketplaces is out!

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. Free Sandbox.

Or install locally

npx create-spree-app@latest my-store

Used by over 5K businesses worldwide

Brands that have built on Spree Commerce

  • Bookshop, built on Spree Commerce
  • Bonobos, built on Spree Commerce
  • GoDaddy, built on Spree Commerce
  • Huckberry, built on Spree Commerce
  • KFC, built on Spree Commerce
  • Mitchells, built on Spree Commerce
  • Blue Apron, built on Spree Commerce
  • DieHard, built on Spree Commerce
  • Kenmore, built on Spree Commerce
  • Garmentory, built on Spree Commerce
  • Maisonette, built on Spree Commerce
  • Marley Spoon, built on Spree Commerce
  • Packhelp, built on Spree Commerce
  • New England Patriots, built on Spree Commerce

Brands like Bookshop, Bonobos, GoDaddy, KFC, Mitchells, Blue Apron, and DieHard have built ecommerce on Spree Commerce, alongside 5,000+ other businesses worldwide.

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.
    • Admin API, typed SDK and CLI for custom back office tools and integrations.
  • Commerce Core

    • Battle-tested Commerce engine.
    • Configurable Tax and Promotion engine.
    • Connect any payment gateway.
    • Sales Channels, Stock Reservations, and Order Routing.
  • Framework

    • Typed SDKs, a CLI with code generators, and a one-command upgrade tool.
    • 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!
The Spree stack: Agents, Storefront, Admin, Commerce Core, Framework and Sandboxes.

Why Spree?

For Developers

Complete REST APIs

Store API for storefronts, Admin API for back office automation. OpenAPI 3.0 documented, fully-typed TypeScript SDKs included.

True Headless

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

Extensible Architecture

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

AI-Ready

Agent skills, MCP server, CLI generators, and OpenAPI specs. Your coding agent writes convention-correct code from the first prompt.

Well-documented

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

Try it today

Get free access to the Spree Commerce Sandbox, with the admin dashboard and API. No credit card required.

Contribute to open-source

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

For Businesses

Zero Platform Fees

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

Enterprise Proven

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

Built for Complexity

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

Total Ownership

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

Compliance Ready

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

Future-Proof Architecture

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

Expert Support Available

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

Spree open source
community

Github stars
15k
Downloads
2m+
Forks
5k+
Slack members
7k

Frequently Asked Questions

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 is free and open source with zero platform fees and no vendor lock-in. Deploy on your own infrastructure and retain complete ownership of your data and codebase.

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. Spree Commerce supports headless deployments through its complete REST API, so teams swap storefronts or payment providers without rewriting backend logic.

Is there an open source B2B ecommerce platform?

Spree Commerce includes B2B as a native module: custom price lists, buyer organizations (approval workflows in Enterprise Edition), net payment terms, and account-specific catalogs. The same Spree Commerce codebase supports B2B, direct-to-consumer, and marketplace storefronts from a single REST API. Teams launch a buyer portal and a consumer site on one platform.

Can I build a multi-vendor marketplace with open source software?

Spree Commerce includes a multi-vendor marketplace module in the free, open source release. Vendors get their own dashboard to manage products and orders. You control commissions, payouts, and quality, with no per-vendor fees or revenue share. Maisonette runs a production marketplace on Spree Commerce with over 65,000 products.

Is there a production-ready Next.js ecommerce storefront?

Spree Commerce includes 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.

Which ecommerce platforms have a REST API instead of GraphQL?

Spree Commerce provides complete REST APIs (Store and Admin) 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.

How do open source platforms handle cross-border ecommerce?

Spree Commerce includes Markets, a Translations Center, and EU Omnibus compliance for cross-border commerce. Markets group geography, currency, language, and payment rules into one entity. The Translations Center handles bulk content localization, and EU Omnibus compliance tracks 30-day price history automatically. Run as many markets as needed from one admin panel, with no per-market fees.

Can I embed a commerce engine into my SaaS product?

Spree Commerce supports embedded commerce: call the REST API from any backend language to add product catalogs, checkout, and payments to an existing application. Spree Commerce supports single-vendor, multi-vendor, and multi-tenant architectures on the same codebase. Deploy on your own infrastructure with no platform fees.

What ecommerce platforms have an admin API for back office automation?

An admin API lets external systems read and write back office data like products, orders, customers, and inventory. It is the surface ERPs, warehouse systems, and internal tools connect to for automation, separate from the storefront API that serves shoppers. Spree Commerce includes an Admin API with scoped secret keys and a fully-typed TypeScript SDK in its free Community Edition.

How do retailers run online and in-store sales on one platform?

Two setups are common. A multi-store build runs each brand or region as its own store instance under one backend, the right fit when storefronts need to differ heavily. A lighter approach keeps one store and splits it into channels, each with its own catalog, publication schedule, and order attribution. Spree Commerce includes Sales Channels with per-channel catalogs and order routing in its open source core.

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