Repo of the Day
wdl-dev/wdl: Self-hosted multi-tenant Workers platform on stock Cloudflare workerd with multi-replica failover
Published: Nov 28, 2026
Open repository ↗Self-hosted multi-tenant Workers platform on stock Cloudflare workerd with multi-replica failover - wdl-dev/wdl
Summary
WDL is a self-hosted, multi-tenant platform for running Workers on operator-controlled infrastructure, with stock Cloudflare workerd as its runtime. It loads immutable worker versions from Redis or Valkey and adds routing, deployment lifecycle, stateful bindings, secrets, observability, and replica failover. Teams can use the Workers programming model and a Wrangler-compatible deployment flow without sending deployments to Cloudflare.
What it is useful for
WDL fits internal platform teams that need to provide Workers to several developer groups, and organizations where data residency, sovereignty, compliance, or operator-owned infrastructure matters. A team can deploy a standard module worker using wrangler.toml or wrangler.jsonc; WDL then routes it at https://<namespace>.<platform-domain>/<worker-name>/<path> and strips the worker-name prefix from the path seen by the application.
The platform includes namespace routing, explicit version promotion, rollback, and deletion, plus KV, R2, D1, Durable Objects, queues, cron, Workflows, namespace-scoped AI, ASSETS, service and platform bindings, encrypted secret storage, wdl tail, and Prometheus metrics. It also provides Docker Compose for local use and Kubernetes and Terraform delivery paths.
WDL has important limits. It runs in one region, not on a global edge, and does not provide DDoS protection. It is not a complete drop-in replacement for Cloudflare Workers; the README points to a compatibility matrix. Scheduler rollout can briefly interrupt dispatch, while missed cron slots follow best-effort semantics rather than being replayed. Operators remain responsible for capacity, Redis/Valkey, storage durability, ingress protection, and regional disaster recovery.
How engineers can use it
The documented quick start requires Git, Node.js 24, Docker Engine or Docker Desktop, and a recent Docker Compose with !reset and --wait support. From a clone, run:
git clone https://github.com/wdl-dev/wdl.git
cd wdl
npm install -g @wdl-dev/[email protected]
npm ci
npm install --ignore-scripts --prefix examples/hello-jsonc
npm run compile:workerd:local
docker compose -f docker-compose.yml -f docker-compose.images.yml up -d --pull always --no-build --wait --wait-timeout 180
export ADMIN_TOKEN=local-dev-token
export CONTROL_URL=http://admin.test:8080
export CONTROL_CONNECT_HOST=localhost
wdl deploy examples/hello-jsonc --ns demo
Call the deployed worker through the gateway:
curl -H "Host: demo.workers.local" "http://localhost:8080/hello-jsonc/"
wdl workers --ns demo
The worker list should show hello-jsonc as active. wdl deploy uses wrangler deploy --dry-run only for local bundling, uploads the bundle to WDL’s control service, and promotes a new immutable version. Do not run wrangler deploy against a WDL platform.
For other Wrangler projects, follow the same wdl deploy <project> --ns <namespace> flow. Platform operators can use the included Compose, Kubernetes, or Terraform paths, while keeping the published CLI version aligned with the repository’s CI configuration.