Hasty Briefsbeta

Bilingual

OpenWorkers: Self-Hosted Cloudflare Workers in Rust

4 months ago
  • #javascript
  • #edge-computing
  • #rust
  • OpenWorkers is an open-source runtime for executing untrusted JavaScript in V8 isolates, enabling edge computing on your own infrastructure.
  • Supports various bindings including KV storage, PostgreSQL database, S3/R2-compatible storage, service bindings, and environment variables & secrets.
  • Includes Web APIs like fetch, Request, Response, ReadableStream, crypto.subtle, TextEncoder/Decoder, Blob, setTimeout, and AbortController.
  • Architecture features V8 Isolates with secure sandboxing, CPU and memory limits, cron scheduling, and Cloudflare Workers syntax compatibility.
  • Designed for simple deployment with a single PostgreSQL database and Docker Compose file.
  • Project evolved over 7 years, inspired by Cloudflare Workers and Deno, now rewritten using rusty_v8.
  • Future plans include execution recording & replay for deterministic debugging.