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.
bebox ("Backend-in-a-Box") collapses your reverse proxy, API gateway,
auth, rate limits, exact-invalidation HTTP cache, embedded databases
(dimedb + rodedb), background queues, and polyglot handlers
into one zero-glue executable configured by a single bebox.toml.
curl -fsSL https://bebox.run/install.sh | sh
Traditional backends split gateway, cache, queues, search, and databases across network
hops. bebox unbundles the OS process into composable tiers inside one binary.
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.
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.
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.
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.
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.
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.
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.
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.
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.
[[stream]] SSE Feed (/events/accounts)
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!
Measured on 4 vCPUs (AMD EPYC 9354P, Linux x86_64, hardware PKU enabled) via
cargo run --release -p bebox-bench.
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.
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.