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: wrangler for dev, deploy, and management
  • Scaffolding: npm create cloudflare@latest
  • Config: wrangler.jsonc (JSON with comments, replacing wrangler.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

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

Notes

Resources