RAPI is a local-first, high-performance Headless CMS built with Rust (Axum + SQLite WAL) and React + TypeScript (Vite + Tailwind + Radix UI), designed for API and functional parity with Strapi v5 without a Node.js backend runtime.
- Zero-config single binary:
cargo run --bin rapi -- serveboots immediately using SQLite (WALmode: 1 writer + 8 readers), in-memorymokacache, and a persistent SQLitejob_queue. - Optional Redis scaling: Set
REDIS_URL=redis://127.0.0.1:6379to transparently switchCacheBackend,QueueBackend, andPubSubBackendto Redis. - Strapi v5 wire compatibility: Flattened
{ data, meta }responses with 24-characterdocumentIds,serde_qsnested bracket queries (filters, polymorphicpopulate,fields,sort,pagination,locale,status), and exact Strapi v5 GraphQL query naming. - Extensibility & AI: Native
CmsPlugintrait + fuel-meteredwasmiWebAssembly plugin sandbox, Custom Fields registry, OIDC Single Sign-On, Opt-in AI Editorial Assistant, and built-in JSON-RPC 2.0 MCP server (POST /api/mcpandrapi mcpstdio). - Precision Admin UI: Compact, keyboard-first (
⌘K) React dashboard wired to live platform telemetry.
rapi/
├─ crates/
│ ├─ cms-core/ # DocumentId, AppConfig, Strapi v5 envelopes, Cache/Queue/PubSub traits
│ ├─ cms-plugin-api/ # CmsPlugin trait & registry (native Rust + Phase 7 WASM plugins)
│ ├─ cms-db/ # Split SQLite WAL pools, migrations, SQLite queue, Redis runtime
│ ├─ cms-services/ # ServiceContainer & system/domain services
│ ├─ cms-api/ # Axum 0.8 router, qs parser, OpenAPI 3.1 (/openapi.json)
│ ├─ cms-worker/ # Background queue runner (embedded or standalone)
│ └─ cms-bin/ # `rapi` CLI binary (serve | worker | migrate | seed | info | mcp)
├─ migrations/ # Core SQLite platform tables
└─ web/ # Vite + React 19 + TypeScript + Tailwind v4 + Radix UI dashboard
cp config/.env.example .env
cargo run --bin rapi -- serveThe API server starts on http://localhost:1337 (with automatic SQLite database creation & core migrations in ./data/rapi.db):
GET http://localhost:1337/health— Liveness checkGET http://localhost:1337/ready— Readiness check (SQLite WAL + Cache backend)GET http://localhost:1337/admin/init— Onboarding status (hasAdmin,defaultLocale)GET http://localhost:1337/admin/system/overview— Platform counts & runtime diagnosticsGET http://localhost:1337/openapi.json— OpenAPI 3.1 specification
cd web
npm install
npm run devOpen http://localhost:5173 (Vite proxies /api, /admin, /health, /ready, and /openapi.json to http://127.0.0.1:1337).
docker compose up --build# Rust unit + API integration tests
cargo test --workspace
# Frontend strict TypeScript & production bundle verification
cd web && npm run build