workerd
Open-source JavaScript and WebAssembly runtime behind Cloudflare Workers for self-hosting Workers and Durable Objects.
At a Glance
About workerd
workerd is the open-source JavaScript and WebAssembly runtime behind Cloudflare Workers, developed by Cloudflare under the Apache-2.0 license. It runs Workers and Durable Objects on your own machines, configured from a Wrangler configuration file, and can run standalone or as an experimental cluster that shares an object store bucket.
What It Is
workerd is a self-hosted runtime for Cloudflare Workers-style applications. You write a Worker and a Wrangler config, then start it with npx workerd serve or the cloudflare/workerd Docker image. It also powers Wrangler for local Worker development and can be used as a programmable HTTP proxy.
The docs state that workerd is not a hardened sandbox: it isolates each Worker to its configured bindings but lacks the defense in depth needed for untrusted code, which should run inside a virtual machine.
Durable Objects and Clustering
A Durable Object is a small named server that owns one piece of state, such as a user, document, chat room, or AI agent. Each has its own SQLite database with synchronous reads and writes, runs on a single thread, can hold WebSockets while hibernating, and leaves memory when idle.
Several workerd processes pointed at one S3-compatible or GCS bucket (for example R2) form a cluster. Each object has one leader at a time, requests are forwarded to it, and another instance takes over if the leader stops. Clustering is experimental and requires the --experimental flag. Peer traffic is authenticated with a shared key but unencrypted, so peers should run on a private network.
Supported Services
Workers, Durable Objects and Facets are listed as supported. KV, Queues, D1, R2, Workflows, Cron Triggers, Static assets, Cache API, Secrets Store, Rate limits, Dynamic Workers and Python Workers are experimental. Workers AI, Vectorize, Browser Rendering, Images, Stream, Email and Containers are not supported.
Deployment Options
The project documents Docker (distroless, linux/amd64 and linux/arm64), a Kubernetes multi-pod cluster manifest, and systemd socket activation. Prebuilt npm binaries cover Linux, macOS and Windows. workerd versions are dates matching the maximum supported compatibility date.
Collections
Popular collections
- ADE List - December 2026
Collection by @mateorivera17
- UI Design Skills for Coding Agents
Collection by @mayachen
- Find the Ways Your AI App Can Fail Before Launch
Collection by @samirhaddad
- Give Your AI Agent the Meaning Behind Your Database
Collection by @danielokafor
Add workerd to one of your collections.
Community Discussions
Be the first to start a conversation about workerd
Share your experience with workerd, ask questions, or help others learn from your insights.
Pricing
Open Source (Apache-2.0)
Self-hosted workerd runtime licensed under Apache-2.0; free to use, modify and distribute. Hosting and object store bucket costs are external.
- Self-host Workers and Durable Objects
- Experimental clustering over an object store bucket (--experimental)
- Docker image cloudflare/workerd and npm binaries
- Not a hardened sandbox
- Unsupported: Workers AI, Vectorize, Browser Rendering, Containers and others
Capabilities
Key Features
- Self-host Workers and Durable Objects
- Per-object SQLite storage with synchronous reads and writes
- Experimental clustering over an S3 or GCS object store bucket
- WebSocket hibernation for Durable Objects
- Wrangler configuration support
- Docker, Kubernetes and systemd deployment
- Local development runtime powering Wrangler
- Programmable HTTP proxy
- Experimental KV, Queues, D1, R2, Workflows, Cron Triggers and static assets
- Dynamic Workers and Python Workers (experimental)
- Cap'n Proto configuration for full control
