What this demonstrates

Start with the Cloudflare Free Tier Textbook to master the platform.

Live demos

API: /api/time

(click the button)

Dynamic route: /hello/:name

(submit the form)

Request headers

Middleware adds x-request-id. Open DevTools → Network to see response headers.

Edit and redeploy with one request

With the included CI and deploy script, a single request from a Cursor background agent can edit files in this repo and deploy to Cloudflare Pages without confirmation.

  1. Agent edits files (like this page).
  2. Agent runs npm run deploy with Cloudflare credentials set as env vars.
  3. Deployment completes and preview/production URLs update automatically.