Cloudflare Workers

Serverless edge compute on Cloudflare's global network (330+ cities). V8-isolate runtime with minimal cold starts, CPU-time billing, and an integrated storage suite — the "Region: Earth" model.

Runtime model

Workers run as V8 isolates rather than per-request containers or VMs, which keeps cold starts near zero and lets code execute close to the user across Cloudflare's 330+ city network. Billing is on CPU time, not wall-clock duration: time spent waiting on an LLM API, a database, or any subrequest is not charged. Source: Cloudflare Workers docs, https://developers.cloudflare.com/workers/, 2026-06-13

Tooling snapshot

As of 2026-07-03, wrangler latest is 4.107.0 and @cloudflare/workers-types latest is 5.20260703.1. Treat docs and tweets as conceptual guidance until the local project's Wrangler version, compatibility date, and account bindings are checked. Source: npm registry packument, 2026-07-03

Pricing and limits

  • Free plan — 100,000 requests/day, 10 ms CPU time per invocation, no duration charge. Source: Cloudflare, https://developers.cloudflare.com/workers/platform/pricing/, 2026-06-13
  • Workers Paid (Standard) — from $5/month per account: 10 million requests/month included (+$0.30 per additional million) and 30 million CPU-milliseconds/month included (+$0.02 per additional million). Max 5 minutes of CPU time per invocation (default 30 s); up to 15 minutes for a Cron Trigger or Queue Consumer. No egress or bandwidth charges; requests to static assets are free and unlimited. Source: Cloudflare, https://developers.cloudflare.com/workers/platform/pricing/, 2026-06-13

Integrated storage

  • KV — global key-value store (Free: 100k reads/day, 1k writes/day, 1 GB).
  • R2 — S3-compatible object storage with zero egress fees.
  • D1 — SQLite at the edge (Free: 5M rows read/day, 100k written/day, 5 GB).
  • Durable Objects — strongly consistent state for coordination.
  • Hyperdrive — connection pooling/caching for external Postgres/MySQL (Free: 100k queries/day; Paid: unlimited).
  • Queues — message queue (Free: 10k ops/day; Paid: 1M ops/month + $0.40/million). Source: Cloudflare, https://developers.cloudflare.com/workers/platform/pricing/, 2026-06-13

VoidZero acquisition (Vite → Workers)

On 2026-06-04 Cloudflare acquired VoidZero, the team behind Vite, Vitest, Rolldown, Oxc, and Vite+, to build a native, one-click Vite deployment path from local code straight to the Workers network — for developers and AI agents alike. The projects stay MIT-licensed and vendor-agnostic. Source: Cloudflare, https://blog.cloudflare.com/voidzero-joins-cloudflare/, 2026-06-04

Stack fit (Kevin)

  • CPU-time billing is ideal for agent infra — Dedalus / Agent-Machines workloads spend most of their time awaiting upstream model calls, which is free here.
  • Durable Objects + KV/D1/R2 give cheap edge state and zero-egress artifact storage for coordination-heavy agent systems.
  • A natural host for remote MCP servers (Remote MCP Server) and edge auth/gateways in front of Next.js apps.
  • The VoidZero acquisition means Kevin's Vite/TS toolchain (VoidZero JS Toolchain, Frontier Stack 2026) gains a first-party deploy target — a direct alternative to Render Cloud Platform for the edge tier.
  • A 2026 builder stack example uses Workers, D1, Better Auth, KV, R2, Queues, Hyperdrive, email routing, WAF, and DDoS protection as a low-cost full-stack route. The earlier visual prompt is the simpler floor: Workers + D1 can carry many small projects before a VPS/Postgres or Supabase/Vercel split is justified. Use it when the product is edge-first and operational simplicity beats Vercel/managed-platform defaults. Source: X/@ibocodes, 2026-06-21; Source: X/@ibocodes, 2026-06-28
  • Lunora is the current bookmark-derived reference for a Convex-style backend on Workers, Durable Objects, D1, R2, and Queues. It is alpha and Brin-caution as of 2026-06-30, so use it for architecture comparison before adopting any package. Source: X/@prisis, 2026-06-26
  • The Cloudflare Agents SDK route matters when browser/app sessions need durable, per-session agents without a separate request-handling server. The reviewed Dylan Garcia self-thread describes replacing an HTTP server request path with direct WebSocket messages into Durable Object-backed agent sessions keyed by session ID; Cloudflare's docs confirm that Agents build on Durable Objects, WebSockets, state, sessions, routing, scheduling, fibers, and observability. Current package authority is agents@0.17.3; repo authority is cloudflare/agents, MIT, about 5.2k stars, 614 forks. Source: X/@_dylanga self-thread, 2026-06-19; Source: Cloudflare Agents docs, 2026-07-04; Source: npm/GitHub, 2026-07-04
  • PlanetScale from the Cloudflare dashboard gives Workers a managed relational path when the app needs regional Postgres/MySQL rather than D1. Hyperdrive is the glue: local connection setup, connection pooling, and cacheable-read query caching between Workers and PlanetScale, while developers keep familiar database drivers, ORMs, and SQL tooling. Billing shows on the Cloudflare invoice at PlanetScale's standard pricing. Source: Cloudflare changelog, 2026-06-18; Source: Hyperdrive PlanetScale docs, 2026-06-18

Timeline