Architecture & ADRs
offrig is structured as a three-crate Rust workspace (crates/offrig, crates/offrigd, and crates/offrig-protocol) plus the self-hosted Cloudflare Containers Gateway (providers/cloudflare-gateway/).
All variation lives behind narrow deep-module seams (Provider, DockerTransport, WorkerSession, SyncEngine, SecretResolver, and SnapshotStore), while offrigd and offrig-protocol stay dependency-light and statically linked under a 5 MiB stripped binary budget.
Primary engineering documents on GitHub
Section titled “Primary engineering documents on GitHub”- Architecture Overview — topology, workspace boundaries, module seams, CLI contract, and milestones.
- Architecture Decision Records (
0001–0019) — permanent records of design decisions covering the static Rust Worker, yamux protocol, three-layer CoW Snapshots, local trust boundaries, cgroup v2 memory guard, load-aware Shims, Daytona, Boat, Cloudflare Containers Gateway, Modal, and E2B. - Contributing Guide — local development setup, targeted checks, PR conventions, and automated release flow.
- Security Policy — vulnerability disclosure process and trust-boundary scope.