OpenOrange

An orange in an emergency box whose glass a hammer has smashed, labelled "Break walled garden", beside the line "Run Cloudflare Workers anywhere"

Cloudflare Workers served by Node.js and Rivet

OpenOrange runs an existing Cloudflare Workers project on AWS, Google Cloud, Azure or your own servers, with no change to the code. The orange CLI reads the Wrangler config as it is: orange dev stands in for wrangler dev, and orange deploy builds a Docker image of the Worker. Each Durable Object becomes a Rivet Actor with its own SQLite database, stored in S3. OpenOrange is not a Cloudflare fork: it reimplements the Workers API on Node.js and does not run workerd.

Your machine's memory, stock Node.js and a live migration

  • Hardware limits: a Worker on Cloudflare's paid plan is capped at 128 MB of memory, 5 minutes of CPU per request and 10 GB of storage per Durable Object. On OpenOrange, memory is whatever the machine has (a Node.js heap of about 4 GB by default, configurable), and neither CPU nor per-object storage is capped.
  • Stock Node.js: code runs on full Node.js rather than Cloudflare's nodejs_compat subset.
  • Migration without downtime: orange migrate moves Durable Objects while the app keeps serving. Each object copies itself from Cloudflare on its first request, and orange migrate backfill picks up the ones that got none.
  • Rerouted bindings: KV, D1, Queues, Cron Triggers and Hyperdrive behave as on Cloudflare. R2 moves to S3, Google Cloud Storage or MinIO and Workers AI to OpenRouter or any OpenAI-compatible API.

Durable Objects that cost too much or outgrow Cloudflare

  • Take an app off Cloudflare when its Durable Objects stay busy around the clock.
  • Run a Worker that needs more than 128 MB of memory or 5 minutes of CPU per request.
  • Put the Worker next to its Postgres or MySQL database, on-prem or air-gapped.

A mandatory Rivet cluster and bindings left behind

Rivet is required. OpenOrange deploys only to a Rivet cluster. Self-hosting means running the Rivet control plane (Apache-2.0, on Kubernetes, Docker Compose or a VM), then starting the Worker image as nodes that connect to it through RIVET_ENDPOINT. Rivet, which maintains OpenOrange, also sells that cluster as a managed service (Rivet Cloud) or operated inside the customer's cloud account (BYOC). On the developer's machine, the CLI needs Node.js 22 and pnpm, plus Docker to deploy.

Not every binding comes along. Analytics Engine accepts writeDataPoint() and drops every point, while Vectorize, Images, Stream, Pipelines and AI Search throw. Durable Objects are only partly covered: no stub.connect(), point-in-time recovery or read replicas, emulated WebSocket hibernation, and an idle object loses its instance fields after 10 seconds.

The migration leaves some data behind. orange migrate handles SQLite-backed Durable Objects and D1 databases only. One KV-backed class (new_classes) makes it refuse the whole Worker, a D1 database takes no writes while it copies, virtual tables such as FTS5 don't export, and KV and R2 data has to be copied by hand.

The savings apply to busy Durable Objects. The project puts its compute at 4.8 times cheaper and its storage at 8.7 times cheaper than Cloudflare's, priced on Graviton EC2 in us-east-1 with 40% headroom and on S3. The README's FAQ concedes that for small, spiky Workers, Cloudflare's free tier and per-request pricing are often cheaper.

A 1.0 shipped the day the repository opened. The repository and version 1.0.0 both date from 12 November 2026, and 1.0.8 followed on 24 November. On 25 November, four issues are still open, among them WebSocket hibernation and CPU limits for dynamically loaded Workers.