Recipes
CreatedApr 4, 2026UpdatedMay 28, 2026Takeshi Takatsudo
Real-world Cloudflare integration patterns
Patterns extracted from production projects using Cloudflare Pages, Workers, and storage services.
In This Section
- Astro + Pages — Deploying Astro static sites to Cloudflare Pages
- Search API — Full-text search with Pages Functions and KV logging
- Auth with Pages Functions — Authentication patterns using Pages Functions
- Bot Worker — Building a webhook-driven bot on Cloudflare Workers
- SSR Bindings Adapter — per-request Cloudflare bindings via AsyncLocalStorage in an advanced-mode _worker.js
- Workers AI Streaming — streaming SSE proxy with client-disconnect abort and a kill switch
- Cron + D1 Queue — cron-triggered D1 work-queue with backoff and dead-lettering
- Cookie Sessions — HttpOnly cookie sessions with refresh-token rotation
- Webhook Signing — HMAC-SHA256 request signing with Web Crypto