Cloudflare
Cloudflare’s developer platform runs serverless compute on V8 isolates across 300+ edge locations. For $5/mo you get Workers (compute), D1 (SQLite database), R2 (object storage), KV (key-value store), Queues, Durable Objects, Tunnels, and more. Everything deploys with npx wrangler deploy.
The platform converges around Workers as the universal compute primitive. Pages is being absorbed into Workers with Static Assets. The Vite plugin is becoming the standard DX for full-stack apps. New primitives like Containers, the Agents SDK, and Workflows keep expanding what you can build on the edge.
Key Facts
- Runtime:
workerd(V8 isolates, not Node.js) - Pricing: $5/mo Workers Paid plan covers most services
- CLI:
wranglerfor dev, deploy, and management - Scaffolding:
npm create cloudflare@latest - Config:
wrangler.jsonc(JSON with comments, replacingwrangler.toml) - Docs: developers.cloudflare.com
Learning Project: Webhook Hub
The quickstarts build toward a Personal Webhook & API Hub - a service that receives webhooks, stores them in D1, queues async delivery, and forwards to local services via Tunnels. Each quickstart adds a new Cloudflare service to this project.
Contents
Concepts
- Platform Model - V8 isolates,
workerd, bindings as dependency injection - Workers - Request lifecycle, limits, environment bindings
- Storage Landscape - D1 vs R2 vs KV vs Durable Objects: when to use what
- Networking Essentials - Tunnels, Access, DNS, Turnstile
Quickstarts
- First Worker - Hello world to deployed in 5 minutes
- D1 CRUD - Schema, queries, indexes
- R2 Files - Upload, download, presigned URLs
- KV Caching - Cache-aside, feature flags, rate limiting
- Turnstile - Bot protection for forms, server-side verification
- Queues - Producer/consumer, retries, dead letter queue
- Tunnels - Expose local services with cloudflared
- Cron Triggers - Scheduled health checks and maintenance
- Full-Stack App - React + Vite + CF plugin dashboard
Deep Dives
- Durable Objects - Stateful compute, WebSockets, hibernation, SQLite
- Workflows - Multi-step durable execution
- Hyperdrive - Connection pooling for external databases
- Dev Tooling - Wrangler, C3, Vite plugin, Vitest
- Containers Overview - What containers are, current limits
- Browser Rendering - Headless Chrome, screenshots, scraping
Notes
- Pricing - Detailed breakdown, what $5/mo includes
- Gotchas - Platform-wide sharp edges
- Migration Patterns - Moving existing apps to CF
Related Topics
- Cloudflare Frameworks - Frontend framework guides for deploying web apps on Workers
- Cloudflare AI - Workers AI, AI Gateway, Vectorize, Agents SDK, and RAG patterns
Resources
- Cloudflare Developers Docs
- Workers Runtime APIs
- Wrangler CLI
- Cloudflare Blog - Platform announcements and deep-dives
- workerd source - The Workers runtime