Introduction
此内容尚不支持你的语言。
rCommerce is a headless, open-source commerce engine written in Rust. It ships as a single binary backed by PostgreSQL — no Node runtime, no PHP, no microservices to orchestrate.
Why rCommerce
Section titled “Why rCommerce”Hosted platforms like Shopify charge a fee on every order and hide the logic your business runs on. Self-hosted alternatives like WooCommerce carry the weight of PHP and its stack. rCommerce trades that familiarity for a compiled core that holds its types, its memory and its throughput as your store grows.
| rCommerce | WooCommerce | Shopify | |
|---|---|---|---|
| Language | Rust | PHP | hosted |
| Baseline memory | ~35 MB | ~768 MB | n/a |
| What you deploy | One static binary | PHP-FPM, web server, MySQL | nothing (SaaS) |
| Concurrency | Multi-threaded, no GC | Process per request | n/a |
| Licence | AGPL or commercial | GPL | proprietary |
What’s in the box
Section titled “What’s in the box”A single binary contains:
- Catalogue — products, variants, options, media, collections
- Cart & checkout — server-authoritative carts, deterministic state machine
- Payments — Stripe, Airwallex, Alipay, WeChat Pay (pluggable)
- Shipping — weight-based zone rates, carrier integrations
- Tax — pluggable strategies (Stripe Tax, manual, OSS)
- Orders & fulfillment — lifecycle management, split shipments
- Notifications — email (Postmark/SMTP), SMS, webhooks
- REST API — versioned, JWT auth, API key scoping
- CLI — every operation from the command line
How it works
Section titled “How it works”Your storefront (Next.js, Astro, mobile app, POS) talks to the rCommerce REST API. The core handles every request through typed, auditable services. State changes fan out as signed events to webhooks, email, analytics, and OpenTelemetry.
Frontends → REST/WebSocket API → rCommerce Core (Rust) → PostgreSQL ↓ Events → webhooks, email, analyticsNext steps
Section titled “Next steps”- Install rCommerce — get the binary
- Quickstart — first store in 5 minutes
- API overview — start building