Open-source headless ecommerce with REST API, TypeScript SDK, Next.js storefront, and no platform fees
BSD-3-Clause
- Ruby
- TypeScript
- HTML

About Spree
Spree is an open-source headless ecommerce platform for cross-border storefronts, B2B wholesale, and custom commerce backends. It combines a REST API, TypeScript SDK, admin dashboard, and Next.js storefront so teams keep ownership of their code, data, and infrastructure under a BSD 3-Clause core license with no platform or transaction fees.
The REST API ships publishable keys, rate limiting, and an OpenAPI 3.0 spec. Markets bundle currency, language, payment methods, and shipping rules per country, and multi-store runs several branded storefronts off one backend. B2B selling uses price lists, customer groups, and gated storefronts via publishable keys.
Provider-agnostic payment sessions cover Stripe, Adyen, and PayPal. The core adds promotions, gift cards, digital products, metafields, CSV import and export, bulk operations, MeiliSearch search, webhooks, an event bus, and GA4, GTM, and Klaviyo integrations. A funded team also offers a paid Enterprise Edition with extra modules.
Key features
- REST API with publishable keys, rate limiting, and OpenAPI 3.0 spec
- TypeScript SDK with autocomplete and type safety
- Next.js storefront with multi-region routing and customer accounts
- Markets for currencies, languages, payment methods, and shipping rules
- B2B price lists, customer groups, and gated storefronts
Details
- First released
- 2008
- Self-hosting
- Own code, data, infrastructure
- Pricing
- No platform fees
- License
- BSD 3-Clause core
- API
- REST · OpenAPI 3.0
- Storefront
- Next.js 16 · React 19 · TypeScript
