What Deno joining Cloudflare means, and how to run workerd yourself
On October 9, Deno's whole team joined Cloudflare. Deploy shuts down after six months, the runtime gets one more year of fixes, and workerd is how you run a Workers app on your own server.

On October 9, Deno announced (opens in a new tab) that its whole team is joining Cloudflare. Deno Deploy shuts down after six months, the Deno runtime gets one more year of fixes, and the team’s real job at Cloudflare is making self-hosted Workers a supported thing. If you run anything on Deploy, you have a deadline. If you have avoided Workers because you did not want to depend on one host, the escape hatch already exists today: workerd. Below is what changed, then a walkthrough of running workerd on your own server.
What was announced
Two posts went up the same day, one on the Deno blog (opens in a new tab) and a joint one from Kenton Varda and Ryan Dahl on the Cloudflare blog (opens in a new tab). Terms were not disclosed (opens in a new tab).
The concrete parts:
- Deno Deploy keeps running for six months, then shuts down. Paying customers get help moving to Cloudflare Workers. No exact shutdown date has been published yet.
- The Deno runtime gets monthly bug fix and security releases for one more year. After that the Deno team stops developing it. It stays open source.
- JSR keeps running, on Cloudflare infrastructure.
- workerd and celld merge. celld is Deno’s open source daemon, released in August, that runs a Workers app with Durable Objects across your own machines. Ryan Dahl and Bert Belder will lead the work to fold its ideas into workerd and make self-hosting a first-class option.
Nothing from that merge has shipped yet. Cloudflare says more is coming “in the coming months.”
What it means for a small team
If you have apps on Deno Deploy, start planning the move now. Six months goes fast when it competes with client work. The two obvious targets are Cloudflare Workers itself or a plain server running Deno, which still gets security fixes for a year.
If you run Deno on your own servers, nothing breaks this year. But “monthly fixes for a year, then community maintained” is a reason to stop starting new projects on it.
The more interesting part is the lock-in question. Varda’s post says it plainly: workerd is “the same code we run in production,” and some former customers already left Cloudflare by running it themselves. The weak spot he admits is Durable Objects, which workerd only runs “in a single-instance way.” celld is the fix for that, and now it is Cloudflare’s own roadmap.
So you can write for the Workers model today and keep a way out. We wanted to see how real that way out is, so we ran it.
Running workerd yourself
workerd ships as a prebuilt binary on npm. On Linux it needs glibc 2.35 or newer (README (opens in a new tab)).
mkdir workerd-demo && cd workerd-demo
npm init -y
npm install workerd
npx workerd --version
The worker
A normal module Worker. It counts hits per path in a Durable Object backed by SQLite, and reads two bindings.
// worker.js
import { DurableObject } from "cloudflare:workers";
export class Counter extends DurableObject {
constructor(ctx, env) {
super(ctx, env);
ctx.storage.sql.exec(
"CREATE TABLE IF NOT EXISTS hits (path TEXT PRIMARY KEY, n INTEGER)"
);
}
hit(path) {
this.ctx.storage.sql.exec(
"INSERT INTO hits VALUES (?, 1) ON CONFLICT(path) DO UPDATE SET n = n + 1",
path
);
return this.ctx.storage.sql
.exec("SELECT n FROM hits WHERE path = ?", path)
.one().n;
}
}
export default {
async fetch(request, env) {
const url = new URL(request.url);
const stub = env.COUNTER.get(env.COUNTER.idFromName("global"));
const n = await stub.hit(url.pathname);
return Response.json({
greeting: env.GREETING,
region: env.REGION ?? "unset",
path: url.pathname,
hits: n,
});
},
};
The config
workerd does not read wrangler.toml. It reads a Cap’n Proto (opens in a new tab) text file. The full reference lives as comments in workerd.capnp (opens in a new tab), and the samples folder (opens in a new tab) is the best place to copy from.
# config.capnp
using Workerd = import "/workerd/workerd.capnp";
const config :Workerd.Config = (
services = [
(name = "main", worker = .mainWorker),
(name = "do-data", disk = (path = "./data", writable = true)),
],
sockets = [
(name = "http", address = "*:8080", http = (), service = "main"),
],
);
const mainWorker :Workerd.Worker = (
compatibilityDate = "2026-10-01",
modules = [
(name = "worker.js", esModule = embed "worker.js"),
],
bindings = [
(name = "GREETING", text = "hello from workerd"),
(name = "REGION", fromEnvironment = "REGION"),
(name = "COUNTER", durableObjectNamespace = "Counter"),
],
durableObjectNamespaces = [
(className = "Counter", uniqueKey = "change-me-to-a-random-string", enableSql = true),
],
durableObjectStorage = (localDisk = "do-data"),
);
A few things to notice:
- Services are the building blocks. A worker is one kind of service. A directory on disk is another.
- Sockets decide what listens on which port and which service handles it.
- Bindings are the only way the worker reaches anything.
fromEnvironmentreads an environment variable at startup. localDiskstores each Durable Object as a SQLite file. The schema marks it experimental and subject to change.
Run it
mkdir -p data
REGION=box npx workerd serve config.capnp
$ curl localhost:8080/
{"greeting":"hello from workerd","region":"box","path":"/","hits":1}
$ curl localhost:8080/
{"greeting":"hello from workerd","region":"box","path":"/","hits":2}
$ curl localhost:8080/about
{"greeting":"hello from workerd","region":"box","path":"/about","hits":1}
We stopped the process and started it again, and / came back with 3. The counts live in data/, in a folder named after the uniqueKey, one .sqlite file per object. That is also your backup story: it is files on disk.
Use --watch while you develop so workerd reloads when the config or code changes. The CLI help says not to use it in production.
Ship it as one file
npx workerd compile config.capnp > hits-server
chmod +x hits-server
./hits-server
That gives you one executable with the runtime, config and code inside. Ours came out at about 140 MB. Copy it to a server and run it.
Keep it running
The README suggests systemd, and gives sample unit files (opens in a new tab). systemd opens ports 80 and 443, then hands them to workerd running as an unprivileged user with --socket-fd http=3 --socket-fd https=4. Put a reverse proxy you already trust in front for TLS and rate limits.
What you get and what you don’t

The runtime is the same. Everything around it is now yours.

What you keep: the Workers code model, web standard APIs, bindings, compatibility dates (the README (opens in a new tab) promises updates never break old code that pins a date), and Durable Objects on a single machine.
What you take on:
- Edge and TLS. No global network, no DDoS protection, no cache unless you add them.
- Storage backends. In workerd, KV, R2 and Queue bindings turn into HTTP calls to a service you name in the config. You have to run something behind them.
- Scaling Durable Objects. The schema has a plain TODO: objects are “always local to one instance of the runtime.” Two workerd boxes do not share objects. This is the gap celld fills.
- Isolation. The README warns that workerd “is not a hardened sandbox.” If you run code you did not write, put it inside a VM.
- Outbound network. By default a worker’s
fetch()can only reach public addresses. To call an internal API, add an external service binding for that host. It is a good default, but it will surprise you the first time.
Where we would use it
For a small team, workerd on one box makes sense for internal tools, webhook handlers and small APIs where one machine is enough and you want the code to also run on Workers later. It is also a fair answer when someone asks “what if we have to leave Cloudflare?”
If you need Durable Objects across machines today, look at celld (opens in a new tab). It runs an app from your existing wrangler.json across a fleet of nodes that share one S3 compatible bucket. Or wait for the merged workerd. Either way, writing new code for the Workers model looks like a safer bet this month than it did in September.