Free Next.js SaaS Starter

A free Next.js SaaS starter
that runs on Cloudflare

Full-stack Next.js 16 boilerplate. Auth, Stripe payments, D1 database, R2 storage, email, dark mode. MIT licensed. Included free with lifetime access to BusinessIdeasDB ($79).

See what's inside →

Most “free” starters are UI shells

Vercel templates, GitHub starters — they give you a layout and a README. This gives you a production backend.

UI shell starters

A landing page and a dashboard layout
No auth, no database, no payments
Styled components, unstyled backend
You spend 2 weeks wiring everything

CF SaaS Starter (this one)

Auth: better-auth with Google OAuth + email
Database: D1 with pre-built migrations
Payments: Stripe checkout + webhooks + portal
Email: verification, welcome, and reset templates

Why Cloudflare instead of Vercel

Most free Next.js starters target Vercel. This one targets Cloudflare — and the infrastructure is $5/month versus $20-50/month.

D1 vs MongoDB

SQLite at the edge. 25 billion row reads/month free. No separate database service to pay for.

R2 vs S3

Object storage with zero egress fees. User uploads, screenshots, PDFs — serve them all free.

Queues vs QStash

Background jobs built-in. 1M operations/month free. No third-party dependency, no separate billing.

Email Routing vs Mailgun

Transactional emails at no cost. Verification, welcome, and password reset templates ready to go.

WAF + DDoS vs nothing

Enterprise-grade protection included at $0. Vercel charges $20/mo for WAF. Cloudflare gives it to free-tier users.

KV cache

Session tokens cached globally. Not every request hits your database. Rate limiting built-in.

Everything wired. Nothing to configure.

Clone, run a setup script, deploy. 30 minutes from zero to production.

Next.js 16

App Router. React 19. Tailwind v4 with design tokens. React Compiler enabled.

better-auth

Google OAuth + email/password. Cross-subdomain cookies. KV session cache.

Stripe

Checkout, webhooks, customer portal. Subscriptions + lifetime one-time. 14-day trial.

D1 migrations

Pre-built SQL for auth and subscriptions tables. Ready to add your own.

Landing page

11-section editorial grid. Sticky nav, scroll reveal, FAQ, testimonials, dark footer.

Admin panel

User management, stats dashboard, plan management for customer support.

Paywall

Gate your app behind subscriptions. Non-paying users redirected to checkout.

Dark mode

Tailwind CSS variables. Zustand persisted toggle. No flash on page load.

Setup script

One command replaces all placeholders — domain, app name, prices, API keys.

Common questions

Is this actually free?

It's included free with lifetime access to BusinessIdeasDB ($79 one-time). You get the boilerplate + 100+ validated business ideas with keyword data and competitor analysis. MIT licensed — build and sell what you want.

How is this different from the Vercel Next.js starter?

The Vercel starter gives you a UI layout. This gives you a complete SaaS backend — auth, database, payments, email, file storage, and an admin panel. It's built for Cloudflare Workers, not Vercel serverless functions, which means you get D1, R2, Queues, and WAF all on the same $5/month bill.

Can I use this if I've never used Cloudflare?

Yes. If you know Next.js, you know enough. The OpenNextJS adapter handles the Cloudflare translation. The README walks you through: create resources, run migrations, set secrets, deploy. 30 minutes end to end.

What's the catch with the free Cloudflare tier?

The limits are generous: 100K requests/day, 25 billion D1 reads/month, 10GB R2 storage. Most solo SaaS products won't hit these limits for months after launch. When you do, pricing is pay-as-you-go — roughly $5/month at moderate scale.

Can I customize it?

Yes. MIT licensed. Rip out what you don't need, add what you do. The codebase is cleanly structured with a Hono API worker for auth/Stripe and Next.js for everything else. The design system uses Tailwind v4 CSS variables — change colors, fonts, and spacing in one file.

Free starter. Real backend.

$79 gets you the boilerplate + 100+ validated business ideas. MIT licensed. Build and sell.

Includes CF SaaS Starter Kit — MIT licensed, deploy in 30 min.