Chapter 04 · Cloudflare Deploy
Subchapter 4.264
references/workerd/README.mdMarkdown3 KBView on GitHub
V8-based JS/Wasm runtime powering Cloudflare Workers. Use as app server, dev tool, or HTTP proxy.
workerd is NOT a hardened sandbox. Do not run untrusted code. It’s designed for deploying YOUR code locally/self-hosted, not multi-tenant SaaS. Cloudflare production adds security layers not present in open-source workerd.
95% of users: Use Wrangler
wrangler dev (uses workerd internally)wrangler deploy (deploys to Cloudflare)wrangler types (generates TypeScript types)Use raw workerd directly only if:
Never use workerd for:
Config (workerd.capnp)
├── Services (workers/endpoints)
├── Sockets (HTTP/HTTPS listeners)
└── Extensions (global capabilities)workerd serve config.capnp
workerd compile config.capnp myConfig -o binary
workerd test config.capnp| Platform | Status | Notes |
|---|---|---|
| Linux (x64) | Stable | Primary platform |
| macOS (x64/ARM) | Stable | Full support |
| Windows | Beta | Use WSL2 for best results |
| Linux (ARM64) | Experimental | Limited testing |
workerd is in active development. Breaking changes possible. Pin versions in production.
Start here:
When you need details: 3. configuration.md - Config format, services, bindings 4. api.md - Runtime APIs, TypeScript types 5. gotchas.md - Common errors, debugging