OPEN SOURCE & SELF-HOSTED

Commerce for
Perfectionists.

A lightweight, high-performance headless ecommerce platform built entirely in Rust. Zero-cost abstractions, predictable resource usage, and a single binary deployment.

Read Documentation
server.rs — vim
1 use rcommerce::prelude::*;
2
3 async fn main() -> Result<()> {
4 // Initialize high-performance runtime
5 let config = Config::from_env()?;
6 let server = Server::new(config)
7 .with_database(Postgres)
8 .with_cache(Redis);
9
10 server.serve().await
11 }
TERMINAL 4ms startup
Benchmark Results
42k+
Requests/sec
4ms
Latency (P99)
20MB
Binary Size
~30MB
Memory

Philosophy

The Modern Commerce Stack

We rebuilt the ecommerce engine from first principles. Focusing on what matters: raw performance, type safety, and developer experience.

Zero-Cost Abstractions

Built on Rust's ownership model. No garbage collection pauses means consistent, predictable latency for your checkout flow, even during Black Friday spikes.

Type Safe

Compile-time guarantees catch bugs before they reach production. Fearless concurrency handled by the compiler.

PostgreSQL Native

Optimized exclusively for PostgreSQL 15+. Leveraging robust ACID compliance, JSONB, and advanced indexing for maximum performance and scale.

Truly Headless

Unopinionated frontend. Official SDKs for JavaScript, Python, PHP, and Rust. Connect Next.js, Vue, iOS, Android, or POS.

Stripe Airwallex AliPay WeChat
Storefront (Next.js)
R Commerce API
PostgreSQL

Seamless Migration

Drop-in compatibility layer for WooCommerce and Medusa.js APIs. Migrate your backend incrementally without rewriting your existing frontend or integrations.

# config.toml
[compatibility]
enabled = true
platform = "woocommerce"

Cross-Platform

Tier-1 support for Linux, macOS, and FreeBSD. Deploys as a single ~20MB binary or Alpine-based container.

Architecture

Built for Scale

A decoupled, layered architecture ensures clear separation of concerns. Isolate core business rules from external interfaces and data storage.

CLIENTS & INTEGRATIONS WEB MOBILE POS API GATEWAY REST GRAPHQL AUTH R COMMERCE CORE (RUST) ORDERS PRODUCTS USERS PAYMENTS POSTGRESQL 15+ SQLx Connection Pool

Developer Experience

Speak your language.

We meet you where you are. Use the industry standard REST API, the flexible GraphQL endpoint, or go native with the Rust SDK.

src/main.rs
use rcommerce::Client;

let client = Client::new("sk_live_xxx");

// Type-safe order creation with Rust structs
let order = client.orders().create(&CreateOrder {
    customer_id: "cus_123".to_string(),
    line_items: vec![LineItem {
        product_id: "prod_456".to_string(),
        quantity: 2,
        ..Default::default()
    }],
    ..Default::default()
}).await?;
# rcommerce.toml
[server]
host = "0.0.0.0"
port = 8080
[database]
type = "postgres"
pool_size = 50
[payments]
default_gateway = "stripe"
auto_capture = true
[payments.airwallex]
enabled = true
request_currency = true
[features]
graphql_api = true
webhooks = true

Configuration

Configuration as Code.

Stop wrestling with database tables for system settings. R commerce is configured via a single TOML file or our rcommerce cli tool.

  • GitOps ready
  • CLI tool management
  • Hot-reload supported