Your entire backend, in one binary.
bebox ("Backend-in-a-Box") collapses your edge TLS, API gateway, auth, rate limits, HTTP cache, embedded databases, background queues, and polyglot handlers into one zero-glue executable configured by a single bebox.toml.
Replace 8 networked services with zero-IPC execution
Traditional backends split gateway, cache, queues, search, and databases across network hops. bebox unbundles the OS process into composable tiers inside one binary.
- API Gateway / Ingress — TLS/Certbot, redirects, static SPA, JWT/JWKS, schema validation, CORS
- Redis — response cache (TTL guessing), rate limits, BullMQ
- PostgreSQL — relational data & connection pooler
- Elasticsearch / Pinecone — BM25 keyword & vector search
- Temporal / Cron — durable workflows & scheduled jobs
- Kafka / Pusher — live change feeds & SSE fan-out
- Node / Go / Python pods — separate deploys & glue SDKs
- Litestream / Backup cron — sidecar WAL shipping
Everything modern backends need, built in
Use just one piece or combine all of them inside the same bebox.toml—verified statically by bebox check and bebox plan before traffic ever arrives.
Config-First Security & Routing
Declare API keys, Clerk/Auth0/Supabase JWKS JWT auth, parameter bounds, JSON schemas, CORS, IP rules, and durable rate limits in TOML. Invalid requests fail before handler code runs.
Dual Embedded Databases
Pair microsecond in-memory transactional [state] (dimedb) with disk-paged [sql] (rodedb) featuring SSI transactions, BM25 full-text, Int8 vector indexes, [[sql.mirror]], and atomic ctx.multiCommit.
Exact Read-Set Cache & Live SSE
Every cached GET records the exact keys and SQL ranges it read. The instant a matching row commits, ReadSetCache evicts only affected responses while [[stream]] pushes live SSE deltas.
Queues, Crons & Durable Workflows
Stage jobs atomically inside SQL transactions with tx.enqueue, run leader-guarded UTC [[cron]] schedules, and write replay-safe [[workflow]]s with ctx.journal, sleep, and waitEvent.
Deterministic Whole-Backend Testing
Run your entire app—routing, auth, both databases, torn-write crash recovery, crons, workflows, and mocked outbound HTTP—under one u64 seed and virtual clock for bit-for-bit reproducible tests.
Encrypted Raft, ACME HTTPS & PITR
Scale to 3–5 HA nodes with automatic X25519 + ChaCha20-Poly1305 encryption, deploy live .cartridge bundles in 154 ms, enable native Let's Encrypt HTTPS + HTTP/3, and stream encrypted WAL backups to S3/R2.
Write endpoints in the languages you already use
Mix TypeScript, Rust, Go, Python, C, and Zig freely inside one project. Every handler shares the exact same BoxHost capability ABI with zero external glue.
TypeScript / JavaScript — Built-In QuickJS-NG + oxc
Zero Node or Bun install required. bebox transpiles TypeScript natively with oxc and executes warm pre-evaluated QuickJS-NG isolates in-process at 90.4k req/s.
Try bebox live right now
Every button below sends real HTTP & SSE requests to the bebox binary currently serving bebox.run—backed by live dimedb, rodedb, ReadSetCache, and [[stream]].
Try this: Click GET twice in a row—notice the second read returns the exact same execution_token straight from ReadSetCache (handler skipped!). Then click Deposit +$25 and watch the live SSE feed fire AND the next GET immediately return fresh data with a new token—despite the 60s TTL.
Durable Per-IP Rate Limiter (5 requests / 15s)
Configured in one line of bebox.toml: rate_limit = { requests = 5, per = "15s" }. Backed by embedded SystemDb—zero Redis needed. Click rapidly to trigger a real 429 Too Many Requests!
Sub-millisecond reads, linearizable Raft writes
Measured on 4 vCPUs (AMD EPYC 9354P, Linux x86_64, hardware PKU enabled) via cargo run --release -p bebox-bench.
From single-host ACME HTTPS to encrypted Raft clusters
Run directly on a Linux VPS with automatic Let's Encrypt HTTPS & HTTP/3, build a single stripped executable with boxc, or deploy a generated container image to Fly.io, Railway, or Render.
Explore the complete bebox platform
Click a category below to browse topics served live from this server's embedded rodedb database, copy any snippet directly, or jump into the repository docs.