OpenOrange
OpenOrange runs existing Cloudflare Workers and Durable Objects unchanged on AWS, Google Cloud, Azure, or your own servers, using the orange CLI and Wrangler configuration.
Visit rivet-dev/open-orangeOverview
OpenOrange is an open-source project from Rivet that runs existing Cloudflare Workers and Durable Objects on AWS, Google Cloud, Azure, Rivet Cloud, or your own servers. It aims to preserve the Cloudflare developer experience, including Wrangler configuration, while removing Cloudflare runtime limits and changing the cost model. It uses the orange CLI for local development, deployment, and migration, and maps Cloudflare services onto Rivet Actors with SQLite data stored in S3-backed storage.
Key Features
- Runs existing Cloudflare Workers and Durable Objects without changing app code or Wrangler configuration.
- Supports deployment on AWS, Google Cloud, Azure, Rivet Cloud, or self-hosted and on-prem servers.
- Uses the orange CLI for development and deployment, including orange dev, orange login, orange link, and orange deploy.
- Maps Cloudflare services to Rivet Actors and stores Durable Object SQLite data in S3-backed storage.
- Provides zero-downtime migration for Durable Objects with orange migrate, while D1 migration requires a brief interruption.
Use Cases
- Migrate an existing Cloudflare Workers project to AWS, Google Cloud, Azure, or your own servers without refactoring.
- Run Workers and Durable Objects next to your database in a cloud region you choose.
- Self-host the platform on any cloud, Hetzner, on-prem, or air-gapped infrastructure.
- Reduce metered compute and storage costs compared with Cloudflare pricing.
Getting Started
- Install the orange CLI globally with pnpm add -g open-orange.
- Run orange dev in your Worker project; it reads your Wrangler configuration and serves locally at http://127\.0\.0\.1:8787\.
- Use orange login, orange link --cluster <name>, and orange deploy to deploy to a Rivet cluster.
- Use orange migrate to move Durable Objects and D1 databases from Cloudflare while the app keeps serving, with D1 copying interrupted briefly.
Deployment & Requirements
- A Worker project with a wrangler.jsonc, wrangler.json, or wrangler.toml file.
- Node.js 22 or later and pnpm.
- Docker is required for deploying.
- Deployment can target Rivet Cloud, BYOC on AWS, Google Cloud, or Azure, or self-hosted infrastructure.
Before You Adopt
- License: Apache-2.0. Review its terms before using, modifying, or distributing the project.
- D1 migration is not zero-downtime because Cloudflare does not provide live D1 migration, so requests to a D1 database are interrupted while its data copies.
- Some Cloudflare bindings are not built yet, and calls to them throw an error naming the binding.
- Multi-region support for Durable Objects, including edge regions, is described as an upcoming Rivet update.