Ship your SaaS
to the edge.
A complete, production-ready starter for building SaaS apps on Cloudflare Workers. Auth, database, billing, email, and admin tooling are already wired up — clone it and deploy globally in minutes.
// the whole stack, already assembled
Cloudflare platform
- Workers
- D1
- KV
- R2
- Images
- Queues
- Turnstile
App framework
- Next.js via Vinext
- React Server Components
- Drizzle ORM
- Lucia Auth
- Tailwind CSS
- Stripe
// what's in the box
Skip the boilerplate. Build the product.
Every undifferentiated part of a SaaS is already here and tested. Open the repo and start writing the code that only your product needs.
Authentication, solved
Email and password sign-in, sign-up, password reset, and sessions on Lucia Auth — plus passkeys and Google OAuth.
Database & email
Drizzle ORM over Cloudflare D1, KV-backed sessions, and transactional email sent straight from the Worker.
Deployed to the edge
Ship to Cloudflare Workers and serve from 330+ cities with zero cold starts. One command pushes to production.
Modern runtime
Next.js App Router and React Server Components running on Vinext and Vite for an instant dev loop.
Billing built in
Per-team Stripe subscriptions with an embedded Payment Element are wired up, so you can charge customers without starting from scratch.
A real design system
Tailwind CSS with Shadcn and Base UI components, dark mode, and responsive layouts ready to extend.
Teams & admin
Multi-tenant teams, role-based access, and an admin panel for managing users and content out of the box.
Developer experience
TypeScript end to end, Oxlint, a CMS for blog and docs, and GitHub Actions deployment you don't have to write.
One command to clone.
Yours to ship.
Free and open source. No license fees, no attribution required. Fork it, rename it, and make it your own.
git clone https://github.com/LubomirGeorgiev/cloudflare-workers-nextjs-saas-template.git// faq
Questions, answered
Still curious? The README covers everything else, and issues are always open.