SaaS starter template on Cloudflare. Auth, database, storage, and deploy — all wired up.
- Auth: Google OAuth + magic link (Resend)
- Database: Cloudflare D1 via Drizzle ORM
- Storage: Cloudflare R2 with presigned uploads
- UI: HeroUI + dark mode + customizable color palettes
- Deploy: One command to Cloudflare Workers
- bun 1.1+
- Node.js 18+
- Cloudflare account (free)
- Google Cloud project with OAuth credentials
- Resend account for magic-link emails
Using Claude Code? Open the project and say "help me set up" — it will walk you through everything.
git clone https://github.com/youruser/cloudflare-builder.git
cd cloudflare-builder
bun install
bun run setup
bun devThe setup script will:
- Create a D1 database
- Create an R2 bucket
- Configure Google OAuth + Resend credentials
- Apply the initial migration
- Generate your
.dev.vars
bun run deployMIT