Full-Stack Cloudflare Workers Starter v4.1

Build fast, modern edge apps with Flaregun

Ship globally on Cloudflare Workers with zero boilerplate—typed D1 SQL models & joins, KV guest-to-user cart, R2 media storage, Passkey auth, Material 3 Web Components, and MCP.

Pre-bound on c.data
D1 · KV · R2
Passwordless Auth
WebAuthn Passkeys
Native Import Maps
Material 3 ESM
AI Agent Endpoint
/mcp Built-In
Architecture & Primitives

Everything wired at the edge, out of the box

Every HTTP route, scheduled cron job, and queue handler receives pre-initialized bindings on c.data—with zero defensive boilerplate or heavy client bundles.

c.data.d1 · SQLite

D1 SQL Models, Joins & Atomic JSON Merge Patch

Define clean model classes with automatic nanoid() IDs, schema migrations, typed dates and JSON columns, relational LEFT JOIN queries, and atomic RFC 7396 json_patch updates right in SQLite.

POST /mcp

MCP Endpoint Built-In

Connect Claude, Gemini, or Cursor directly to /mcp over Streamable HTTP using per-user fg_key_* bearer tokens with granular read/write scopes.

/auth/*

Passkeys & Magic Links

Passwordless authentication out of the box with WebAuthn biometric passkeys, email verification links, and profile management—no external auth vendor required.

appoxy/material

Material 3 Web Components

Pure Lit & Material 3 ESM components served via native browser import maps with adaptive light and dark themes and fast server-rendered layouts.

KV · R2 · Cron

KV Cart, R2 & Scheduler

Scoped KV guest carts that merge on sign-in, validated R2 media uploads at /r2/*, cron Scheduler intervals, and transactional email receipts.

Interactive Full-Stack Reference App

Recent Products

Test the live reference marketplace—filter listings, add items to your KV guest cart, or sign in to publish products.

View All Products arrow_forward
D1 Seller Joins KV Guest-to-User Cart R2 Product Images Aggregated Star Reviews

Ready to ship your own app on Cloudflare Workers?

Clone the starter template with D1 migrations, Passkey authentication, Material 3 UI, and an MCP agent server ready from commit one.