Cloudflare
Edge + StorageWorker routes. Handles trusted requests in Cloudflare Workers with clear inputs, responses, and error paths.
Edge webhooks. Verifies signed webhook requests at the edge and processes repeat deliveries safely.
Data reversal. Reverses access or stored state after a refund without deleting needed account history.
Edge routes, data, and files that deploy together.
Mined from production apps and scanned for secrets on every release. Typed end to end.
Cloudflare starter code pack
A production-mined Cloudflare structure for Workers routes, D1 data, R2 files, rate limits, signed webhooks, deployment, and verification.
After you buy, one prompt pulls it in
Click, then paste into your AI chat. Your agent installs Boost OS and wires in the Cloudflare starter code pack.
Then just tell your agent what you want
Your AI coding agent · with Boost OS
Add a rate-limited API route that stores customer uploads in R2.
Building from the Cloudflare pack:
Worker route from src/checkout, rate limits from src/usage, and D1 and R2 helpers from src/lib.
Everything stays wired through src/lib/app-adapter.ts, with no raw Cloudflare calls scattered through your app.
- Cursor
- Claude Code
- Codex
- GitHub Copilot
- Windsurf
What you get
- Run trusted routes close to your customers
- Store app records in a D1 database
- Upload and serve files from R2
- Limit repeated requests before they cause damage
- Verify signed events at the edge
- Check each deployment before customers use it
The move list
12 modules across three jobs. Open any module to see every file inside it.
Get paid
Take the money: one-time, recurring, metered, or agent-initiated.
- Worker routesHandles trusted requests in Cloudflare Workers with clear inputs, responses, and error paths.2 files
- Account stateKeeps customer status and feature access aligned in D1 across edge requests.1 file
- Rate limitsCounts requests and blocks repeated traffic before it overwhelms paid services or stored data.1 file
- Agent routesGives approved AI workers limited edge endpoints for reading data and taking actions.1 file
After the sale
Deliver access, send the emails, and handle refunds without drama.
- Background workMoves follow-up work out of customer requests and prevents the same job from running twice.1 file
- Service messagesSends customer messages after trusted Worker actions and records the result.1 file
- Customer accessConnects signed-in customers to their D1 records and R2 files through trusted routes.1 file
- Data reversalReverses access or stored state after a refund without deleting needed account history.1 file
The safety rails
The plumbing that keeps every event verified and every grant counted once.
- Edge webhooksVerifies signed webhook requests at the edge and processes repeat deliveries safely.2 files
- Deploy verificationChecks routes, bindings, D1 access, R2 access, and signed events after deployment.1 file
- D1 and R2Centralizes typed database queries, file storage helpers, and Cloudflare bindings.7 files
- Deployment setupMaps Worker settings, environment bindings, migrations, routes, and deployment commands.22 files
Provenance
Extracted from production Cloudflare systems serving real customers
Frequently asked questions
Is this a Cloudflare Next.js starter?
Yes. The pack is built for Next.js apps that deploy through Cloudflare with Workers routes, D1 data, R2 files, rate limits, signed events, and verification connected.
Does it include Cloudflare D1 and R2 examples?
Yes. It shows how trusted server routes read and write D1 records, store R2 files, and keep customer data separated.
Is the Cloudflare code pack available now?
Yes. Every active Boost OS license includes it with no separate purchase; onboard it from the pill on this page: click, paste the prompt into your AI chat, and your agent does the rest.
Can I convert this pack to Python or another language?
The Cloudflare pack ships in TypeScript. Every module is adapter-based and written with plain comments, so you can ask your AI agent in chat to convert any module to your language and keep the logic intact. The TypeScript version stays the source of truth for updates.
Add the Cloudflare card to your collection
One $199 license includes every current and future production code pack.
Get Boost OS