NEWWebSocket upgrades now tunnel through the ingress

Workers-style apps.
Your hardware.

OpenFlare runs your Worker on unmodified workerd and builds the platform around it in Rust: signed deploys, KV, R2, D1, Queues and Durable Objects, one isolated process per tenant. Your wrangler config stays the source of truth.

Any Linux hostDocker ComposeMulti-host cellsMIT licensed
FIG. 01 — ONE TENANT, EXPLODED5 LAYERS · 1 HOST↑ REQUESTBINDINGS ↓{ }your Workermain.js · wrangler.jsoncworkerdunmodified · pinned digestfacade workersenv.KV · env.DB · env.R2vrt-hostingress · egress · cronvrt-provider · vrt-sqlmemory · fs · Kvrocks · S3ED25519 · SIGNED · REVISION-FENCED ·
0
patches to workerd. It runs as shipped, checked against a pinned digest.
1
workerd process per tenant, with its own config, sockets and limits.
15
wrangler config sections mapped, from vars to workflows.
Ed25519
signatures on every deployment snapshot. Unverified state is never applied.
01 · HOW IT WORKS

Anatomy of a request.

Seven steps between a client and your fetch() handler. Every hop is a small Rust service you can read, run and replace.

FIG. 02 — REQUEST PATHSINGLE HOST · STANDALONEPUBLIC INTERNETClientHTTP · WSvrt-host ingressstrip trust headersroute by Hostwake if scaled to zeroworkerd · tenantyour fetch() handlerfacade workers → bindingsvrt-egressfetch() · connect()check resolved address✕ private · link-local · metadatavrt-providerKV · R2 · Queuesvrt-sqlD1 · DO SQLsigned snapshotverify → apply · fail closed1234567unixsocketdesired state
  1. 1Request arrivesHTTP, or an HTTP/1.1 WebSocket upgrade, hits the vrt-host ingress.
  2. 2Trust headers resetHeaders that cross the trust boundary are stripped and rewritten.
  3. 3Routed by HostThe Host header picks the tenant, from hostnames or wrangler routes.
  4. 4Woken if idleA tenant scaled to zero is started before the request is forwarded.
  5. 5Handed to workerdForwarded over a unix socket to that tenant’s own workerd process.
  6. 6Bindings calledFacade workers turn env.KV, env.DB and friends into calls to vrt-provider and vrt-sql.
  7. 7Egress checkedOutbound fetch() and connect() are denied for private, link-local and metadata addresses.
02 · TOPOLOGIES

One box, many boxes, or none yet.

The same services scale from a single Compose file to a multi-host cell. The state model doesn’t change: hosts only ever apply signed desired state.

Standalone

docker compose up runs the whole stack on one machine. vrt-local is the management plane; the vrt CLI deploys, rolls back and manages secrets.

Multi-host cell

cell-controller owns cron, queues, leases and tenant assignment across many vrt-host machines, and publishes signed desired state to each.

No workerd yet

A stub runtime brings the full stack up without a workerd binary, so CI and first-time readers can smoke-test the platform before supplying one.

03 · SIGNED DEPLOYS

Nothing runs unless it’s signed.

Each deploy produces a content-addressed version bundle. Desired state reaches hosts as an Ed25519-signed snapshot with a revision number. Components verify before they apply, and fail closed when they can’t.

  • Rollback is re-pointing to an earlier signed version
  • Replayed or tampered envelopes are rejected
  • Older revisions are fenced out, never re-applied
  • Secrets come from stdin and never live in config
DESIRED-STATE SNAPSHOT
tenant / hello
revision184versionsha256:7c1e…a90brouteshello.vrt.local/*bindingsKV · D1 · ASSETSsignatureed25519 · 64 bytes
signature✓ verified
revision 184 > 183✓ applied
replay of revision 183✕ fenced
ILLUSTRATIVE VALUES
04 · COMPATIBILITY

The Workers API, resolved locally.

Your code calls the same runtime APIs. Bindings resolve to services in your deployment. A config field OpenFlare can’t honour fails the deploy with a typed error instead of disappearing.

KVSUPPORTED
Memory, filesystem or Kvrocks, through vrt-provider.
R2SUPPORTED
Filesystem or any S3-compatible object store.
D1SUPPORTED
Served by vrt-sql; the server mints database IDs.
Durable ObjectsSUPPORTED
SQL storage plus new, new_sqlite, renamed and deleted migrations.
QueuesSUPPORTED
Producers, consumers, retry delay, concurrency and dead-letter queues.
WorkflowsSUPPORTED
[[workflows]] entries are validated and listed by vrt workflows.
Cron TriggersSUPPORTED
Delivered to your scheduled() handler.
HyperdriveSUPPORTED
Postgres wire proxy; credentials stay outside the isolate.
Rate limitingSUPPORTED
wrangler ratelimits with limit and period.
Static assetsSUPPORTED
Assets directory and binding, with not_found_handling.
Cache APISUPPORTED
caches.default inside your Worker.
Service bindingsSUPPORTED
wrangler services, including named entrypoints.
WebSocketsWITH LIMITS
Passthrough to Workers and Durable Objects, with session caps.
Honest limits
AREABEHAVIOUR
WebSocket upgradesHTTP/1.1 only
WebSocket idle300 s
WebSocket lifetime4 h max
Sessions per ingress4,096
Sessions per tenant256 by default
Outbound networkpublic addresses only
DO migrationstransferred_classes rejected
Not built yet

Workers AI, Vectorize and other unrecognised wrangler keys fail the deploy with a typed error that names the key.

Accepted, ignored

account_id, placement and hosted resource IDs. Bindings resolve inside your deployment instead.

05 · DEVELOPER EXPERIENCE

Keep your wrangler file. Change where it lands.

examples/standalone-wrangler/wrangler.jsonc
{
  "name": "wrangler-demo",
  "main": "main.js",
  "compatibility_date": "2024-09-25",
  "routes": ["wrangler.vrt.local/*"],   A
  "kv_namespaces": [
    { "binding": "CACHE" }             B
  ],
  "assets": { "directory": "public",
              "binding": "ASSETS" } C
}
A  Routes become Host rules on the ingress.
B  No namespace ID: the binding resolves locally.
C  Static assets ship inside the version bundle.
vrt — standalone
$ vrt secret put --root /data greeting-secret
# value read from stdin, stored outside config
$ vrt deploy --root /data ./standalone-hello
# bundle → sign → publish new revision
$ curl -H 'Host: hello.vrt.local' \
http://127.0.0.1:8080/
# served by workerd, routed by Host
$ vrt rollback …
# re-point to an earlier signed version
$
initdeployrollbackversionssecretshostnamesstatus
06 · QUICK START

Three steps to a first request.

You need Docker and a workerd binary. OpenFlare never downloads workerd for you; it checks yours against the digest in workerd.lock.

Supply workerd

Copy your workerd binary in and read the pinned digest from the lock file.

git clone https://github.com/becoolme/openflare
cd openflare
cp /path/to/workerd deploy/standalone/workerd
WORKERD_SHA256=$(node -p "JSON.parse(require('fs')
  .readFileSync('deploy/docker/workerd.lock','utf8'))
  .artifacts['linux-x64'].binarySha256")

Start the stack

Compose builds and starts every service and waits until they report healthy.

WORKERD_SOURCE=file \
WORKERD_SHA256=$WORKERD_SHA256 \
docker compose \
  -f deploy/standalone/docker-compose.yml \
  up --build --wait

Deploy and call

Copy in the hello example, set its secret, deploy it and send a request.

dc="docker compose -f deploy/standalone/docker-compose.yml"
$dc exec vrt mkdir -p /tmp/examples
$dc cp examples/standalone-hello vrt:/tmp/examples/
printf 'my-secret' | $dc exec -T vrt \
  vrt secret put --root /data greeting-secret
$dc exec vrt vrt deploy --root /data \
  /tmp/examples/standalone-hello
curl -H 'Host: hello.vrt.local' http://127.0.0.1:8080/
Standalone guide: rollback, versions, backupBrowse the examples
07 · FAQ

Questions.

Something missing? Open an issue.

Is OpenFlare a fork of workerd?

No. It runs the open-source workerd binary unmodified, pinned by digest in deploy/docker/workerd.lock. OpenFlare is the platform around it: ingress, management plane, binding services and signed deployments.

Is it affiliated with Cloudflare?

No. It is an independent open-source project. “Workers” is used only to describe API compatibility, which comes from running workerd.

Does it download workerd for me?

No. You supply the binary, and the build checks it against the pinned SHA-256. For smoke tests without workerd, use WORKERD_SOURCE=stub.

What happens to wrangler keys it doesn’t support?

account_id, placement and hosted resource IDs are accepted and ignored. Keys it can’t honour, such as ai or vectorize, fail the deploy with a typed error that names them.

Where does my data live?

In services you run: vrt-provider for KV, R2 and Queues with memory, filesystem, Kvrocks or S3 backends, and vrt-sql for D1 and Durable Object SQL.

How are tenants isolated?

Each tenant gets its own workerd process with its own config, sockets and limits, supervised by vrt-host. Outbound traffic passes an egress filter.

Is it production-ready?

It is early and actively developed. Wire formats and the CLI may change between releases, so pin a commit and read the history before upgrading.

Same runtime.
Your walls.

OpenFlare is early and developed in the open. Wire formats and the CLI may still change; issues, examples and pull requests are welcome.