Cloudflare Feature Focus
Focused Cloudflare tutorials for Workers, R2, Stream, Durable Objects, and edge deployment.
7 chapters · about 184 min end to end
- Streaming Paid Video on CloudflareHow to architect a paid video-course product on Cloudflare end-to-end: Cloudflare Stream vs R2-only vs a hybrid, signed playback tokens, Stripe-driven entitlements in Durable Objects, HTTP Range delivery, and the exact R2-proxy pattern simpleappshipper.com uses to gate its 242 tutorial videos.Intermediate · 35 min
- R2: Object Storage Without the Egress TaxA hands-on guide to Cloudflare R2 — the S3-compatible object store with zero egress fees. Bucket bindings, put/get/head/list/delete patterns, multipart uploads, public vs Worker-proxied access, the real production code that backs simpleappshipper.com's 60 GB tutorial library, plus a clear list of where R2 still loses to S3.Beginner · 25 min
- D1: SQLite at the EdgeCloudflare D1 is a globally-distributed SQLite database wired straight into your Worker. This is the full working guide — prepared statements, .first / .all / .run / .raw, batch transactions, schema migrations, the real production schema simpleappshipper.com uses, read replicas via the Sessions API, and the honest list of where D1 still loses to Postgres.Beginner · 30 min
- KV: The Edge Key-Value StoreWorkers KV is a globally-replicated, read-optimised key-value store — fast in every PoP, eventually consistent within ~60 seconds. This guide explains the consistency model, the read/write/list/TTL surface, when KV beats D1, when KV is exactly the wrong choice (counters, anything mutating across regions), and the production patterns that actually work.Beginner · 20 min
- Durable Objects: Strong Consistency at the EdgeDurable Objects are tiny single-instance actors with attached storage that solve the problems KV and D1 can't — strong consistency, real transactions, websocket hibernation, and per-entity coordination. This is the working guide: when DOs replace Redis or a queue, the storage API, hibernation, idempotent webhook fan-out, and the trade-offs of pinning state to a single location.Intermediate · 28 min
- Workers AI: Free Inference at the EdgeWorkers AI runs open-source models — Llama, Flux, Whisper, Stable Diffusion — directly from your Cloudflare Worker, with no external API key. This guide walks through the env.AI binding, the model catalogue, real text and image generation code, the free-tier neuron budget, and the honest comparison with OpenRouter, OpenAI, and Anthropic when you actually need the frontier.Intermediate · 22 min
- wrangler.toml & .env.local: Config, Bindings, and SecretsFour places your config can live — wrangler.toml, wrangler secret put, .dev.vars, and .env.local — and it is never obvious which goes where, what is secret, what gets committed to git, and what ships all the way to the browser. This is the map, grounded in this site's real backend Worker and Next.js front end: what wrangler.toml actually declares (bindings, vars, routes, crons), why secrets never live in it, how .dev.vars mirrors production locally, the NEXT_PUBLIC_ trap that leaks keys into every visitor's browser, and the build-time-vs-runtime gotcha unique to Next-on-Cloudflare.Intermediate · 24 min