elliothux/open-compute

Self-hosted Cloudflare Workers-compatible platform with KV, D1, R2, Durable Objects, Queues, and Workflows in one Rust binary.

What it solves

open-compute provides a way to run Cloudflare Workers on your own hardware without needing the Cloudflare global network or complex infrastructure like Kubernetes, Redis, or a service mesh. It transforms workerd (the open-source runtime) into a full-fledged platform by adding the necessary control plane, routing, and state management required to actually deploy and manage Workers.

How it works

The project is delivered as a single Rust-based binary (ocd) that bundles the runtime, scheduler, and control API. It uses SQLite for local authoritative state and an S3-compatible store for object storage (bundles and assets). It manages workerd as a supervised child process, communicating via a secure loopback channel. Deployments are immutable and content-addressed, allowing for fast rollbacks and promotions by simply moving a pointer.

Who it’s for

Developers and operators who want the developer experience of Cloudflare Workers (same APIs, bindings, and toolchain) but require full ownership of their data, machines, and infrastructure, or need to run their environment completely offline.

Highlights

  • Single Binary Deployment: The entire platform—runtime, control plane, and scheduler—is packaged into one executable.
  • High Compatibility: Implements over 2,000 stable API members with byte-for-byte verification against real Cloudflare for services like KV, D1, R2, and Durable Objects.
  • ** wysokie Performance**: Leverages workerd for millisecond cold starts and MB-scale memory usage, written in safe Rust for the efficiency of the hot path.
  • Zero External Dependencies: Requires only a data directory and an S3 endpoint to function, eliminating the need for external databases or complex orchestration layers.

Related

  • Project
  • Project
  • Project
  • Project