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 iscloudflare/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
- 2026-07-04 | Deep-reviewed the CloudflareDev and CFchangelog PlanetScale bookmarks. Added PlanetScale Postgres/MySQL via Cloudflare dashboard billing as the managed relational route for Workers when D1 is the wrong data model; Hyperdrive remains the connection-pooling/query-cache layer. Source: X/@CloudflareDev, 2026-06-19; Source: X/@CFchangelog, 2026-06-19; Source: Cloudflare changelog and Hyperdrive docs, 2026-07-04
- 2026-07-04 | Added the Cloudflare Agents SDK / Durable Object session-routing note from Dylan Garcia's inaccessible X Article row. The article body remained inaccessible, but the self-thread plus Cloudflare docs establish the durable pattern: browser sessions can talk directly to per-session Durable Object agents over WebSockets, reducing separate HTTP-server request handling. Current package snapshot:
agents@0.17.3; repocloudflare/agents, MIT, about 5.2k stars. Source: X/@_dylanga self-thread, 2026-06-19; Source: Cloudflare Agents docs, 2026-07-04 - 2026-07-01 | Refreshed tooling snapshot:
wrangler4.106.0;@cloudflare/workers-types4.20260701.1. Source: npm registry packument, 2026-07-01 - 2026-07-03 | Deep-reviewed the @ibocodes Workers + D1 minimum-stack bookmark and refreshed tooling snapshot:
wrangler4.107.0;@cloudflare/workers-types5.20260703.1. Source: raw/x-bookmarks/enriched/2068652359194992778.json; npm registry, 2026-07-03 - 2026-06-30 | Deep review refreshed tooling versioning:
wranglerremains4.105.0;@cloudflare/workers-typesis4.20260630.1; the existing Cloudflare skill router already covers the stack, so no new skill was added. Source: npm registry, 2026-06-30 - 2026-06-30 | Added Lunora as an alpha Cloudflare-native realtime-backend reference. Source: X bookmark artifact audit, 2026-06-30
- 2026-06-29 | Added a real-world "$5/month" full-stack Cloudflare pattern with Workers, D1, Better Auth, KV, R2, Queues, Hyperdrive, email routing, WAF, and DDoS protection. Source: X/@ibocodes, 2026-06-28
- 2026-06-29 | Recorded tooling version snapshot for
wrangler4.105.0and@cloudflare/workers-types4.20260629.1. Source: npm registry vianpm view, 2026-06-29 - 2026-06-13 | Quality remediation: added the V8-isolate runtime model, primary-source pricing/limits (Free 100k req/day + 10 ms CPU; Paid $5/mo, 10M req + 30M CPU-ms), storage-product limits (KV/R2/D1/Durable Objects/Hyperdrive/Queues), and the 2026-06-04 Cloudflare–VoidZero acquisition. Source: Cloudflare, https://developers.cloudflare.com/workers/platform/pricing/, 2026-06-13