vado / docs
GitHub

Develop

Repository

An npm workspace: two apps and three packages. How to check, test and build it, and what CI runs on every push.

Layout

PathWhat
apps/dashboardThe dashboard (TanStack Start, React, Kumo) and the Worker's entry, src/server.ts, which exports every Durable Object class
apps/docsThis site, deployed as its own Worker, vado-docs
packages/serverThe database: router, shards, replication, catalog, admin and the bench API
packages/clientbindingConnector for ioredis over a service binding, and vado-shim
packages/wasmThe Valkey and Redis wasm builds: patches, build scripts and the committed binaries
test/End-to-end tests against a deployed Worker
tools/oxlintThe vendored anti-slop lint plugin

Commands

From the repository root
npm install
npm run dev      # the dashboard and database on http://localhost:5173
npm run docs     # this site
npm run check    # format, lint (oxlint with anti-slop) and type-check
npm test         # unit tests, in plain Node
npm run build    # build the Worker
npm run deploy   # build, then deploy it

The Worker's wrangler.jsonc stays at the repository root, where the Deploy to Cloudflare button reads it, with main pointing at apps/dashboard/src/server.ts. npm run deploy builds apps/dashboard, then deploys the generated config in apps/dashboard/dist/server.

End-to-end tests

test/e2e.sh runs every check against a deployed Worker on fresh databases: stock ioredis, RESP3, chunked requests, WATCH across a reset, 1 shard against N, the hammer's invariants, and the bench durability, replica and drop checks.

Against your own deployment
npx vado-shim wss://<your-worker>.workers.dev/ws 6379 &
BASE=https://<your-worker>.workers.dev TOKEN=<BENCH_TOKEN> PW=<VALKEY_PASSWORD> test/e2e.sh

FLAVOUR=redis runs it on Redis, if the Worker carries it. HOST and PORT point it at another TCP address, such as a Spectrum application.

Continuous integration

WorkflowRuns
ci.ymlEvery push and pull request: check, unit tests and a build
wasm.ymlChanges under packages/wasm: rebuilds Valkey and Redis and fails unless the bytes and the host interface match the committed ones
e2e.ymlPushes to main: deploys to a throwaway Worker, vado-e2e, and runs test/e2e.sh on both servers. Off until the repository has CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID and the variable E2E=on
valkey-release.ymlWeekly: opens an issue when a newer Valkey is out, with a test build's results

The wasm builds

Needs wasi-sdk 34 and binaryen's wasm-opt
WASI_SDK=/path/to/wasi-sdk-34.0 packages/wasm/valkey/build.sh
WASI_SDK=/path/to/wasi-sdk-34.0 packages/wasm/redis/build.sh

Each build downloads a pinned, checksummed release, applies its patches in order, compiles with the shared WASI shims and runs wasm-opt. The same toolchain gives the same bytes on any machine. interface.txt lists what the host must provide and may call, so a patch that changes that contract shows up as a diff of names. Changes to a server go in its patches, never in a branch in the TypeScript.

Code rules

TypeScript, strict, with no lint suppressions. At most 250 lines a file. Each directory keeps its types in types.ts and its tunables in config.ts. Few comments, only the why the code can't show. The invariants every change must keep are in AGENTS.md.

vado · Valkey and Redis on Durable Objects · Apache-2.0Independent and experimental. Not an official Cloudflare or Valkey product.

Browse topics or type to search

Introductionvado runs real Valkey 9.1, compiled to WebAssembly, in Cloudflare Durable Objects. A router in a Worker spreads keys over the shards, so valkey-cli and ioredis see one ordinary server.What you getIntroductionA first commandIntroductionThe dashboardIntroductionRead onIntroductionQuick startCreate the Access application, deploy the Worker, and connect valkey-cli or ioredis. About ten minutes on Workers Paid.1. Create the Access applicationQuick start2. DeployQuick start3. Connect valkey-cliQuick start4. Connect from a WorkerQuick startRun it locallyQuick startArchitectureA router per connection, shard objects running Valkey with their AOF in SQLite, and memory-only replicas in other regions. What each part owns, and what it costs.Where everything livesArchitectureHow clients reach itArchitectureRouterArchitectureShardsArchitectureRead replicasArchitectureRewritersArchitectureCatalogArchitectureWatcher, Pulse and the dashboardArchitectureWhat the design buys, and costsArchitectureSharding and routingKeys hash to 16,384 slots, slots map to shards in contiguous ranges, and a database's size and placement are fixed when it is created.Slots and shardsSharding and routingShard countSharding and routingPlacementSharding and routingHow the router routesSharding and routingCROSSSLOTSharding and routingShard classesSharding and routingConnectionsSharding and routingUnsupported commandsSharding and routingDurabilityEvery acknowledged write is in SQLite before its reply leaves. Group commit keeps that cheap under load, a helper object compacts the AOF, and deploys restart shards without failing commands.Write-through storageDurabilityGroup commitDurabilityAOF rewrites in a helperDurabilityWhen a shard resetsDurabilityClean restarts on deployDurabilityRead replicasEach shard can keep a memory-only copy in other regions, fed from its AOF. Routers read the nearest one, a connection always reads its own writes, and an idle database's replicas sleep.RegionsRead replicasCopy, then streamRead replicasWhat a replica read can seeRead replicasFailuresRead replicasIdle sleepRead replicasLife of a requestWhat happens between a client sending SET k v and reading +OK, and what each reply tells you.One SET, step by stepLife of a requestWhat a reply tells youLife of a requestOperationsDeploy, configure, create databases with a placement, sign in to the dashboard, drive the bench API, and upgrade without breaking running shards.DeployOperationsSettingsOperationsCreate a database with a placementOperationsDashboard sign-inOperationsThe bench APIOperationsUpgrading safelyOperationsSecurityWho can connect, what clients may change, how data travels, where copies live, and what the bench token and the dashboard allow.AuthenticationSecurityWithout a passwordSecurityWhat clients can changeSecurityTransportSecurityReplicas and data locationSecurityThe bench token and the dashboardSecurityLimits and measurementsWhat one shard holds, how fast writes and reads went, and the conditions behind each number. Measured on production in November 2026, on one account.LimitsLimits and measurementsMemoryLimits and measurementsThroughputLimits and measurementsLatencyLimits and measurementsReplicasLimits and measurementsRewritesLimits and measurementsCold starts and deploysLimits and measurementsFailure testsLimits and measurementsWhat these don't showLimits and measurementsRedisA database can run Redis 8.12 instead of Valkey. It is opt-in at build time because it doubles the upload and is distributed under the AGPLv3.Choosing RedisRedisBuilding with RedisRedisDifferencesRedisThe AGPL licenceRedisRepositoryAn npm workspace: two apps and three packages. How to check, test and build it, and what CI runs on every push.LayoutRepositoryCommandsRepositoryEnd-to-end testsRepositoryContinuous integrationRepositoryThe wasm buildsRepositoryCode rulesRepository
Local search. Nothing is sent to a server.Esc to close
Documentation