Free with BusinessIdeasDB

One stack.
Free until you make money.

Next.js 16 on Cloudflare Workers. Auth, Stripe, D1, R2, KV, Queues, email — everything wired. Host free until 5-10k users. Deploy in 30 minutes.

What's inside →

One stack. $5/month.

Everything runs on Cloudflare. No Vercel, no Supabase, no separate services. One account, one bill, zero surprises.

Workers

Serverless compute at the edge. Your Next.js app runs globally with zero cold starts.

🗄️

D1

Distributed SQLite with zero-downtime schema migrations. Replaces Postgres at 1/10th the cost.

KV

Global key-value store with sub-10ms reads. Session cache, rate limiting, and feature flags.

📦

R2

S3-compatible object storage with zero egress fees. User uploads, screenshots, assets.

📨

Queues

Reliable background job processing. Email sending, webhook handling, AI scoring — all async.

🚀

Hyperdrive

Connection pooling and query caching. Turns remote DB queries into 1ms local reads.

What's wired and ready

Not a UI kit. A full-stack, production-tested boilerplate extracted from real shipped products.

better-auth

Email + Google OAuth. Cross-subdomain cookies. KV session cache. 30-day tokens with daily refresh.

Stripe

Checkout sessions, webhooks, customer portal. Subscription + lifetime one-time payments. 14-day trial support.

D1 migrations

Pre-built SQL migrations for auth and subscriptions tables. Production-ready schema.

Email templates

Verification, welcome, and password reset emails via Cloudflare Email Routing.

Dark mode

Tailwind v4 design tokens with light/dark CSS variables. Zustand-persisted toggle.

Landing page

11-section editorial grid with sticky nav, scroll reveal, FAQ, testimonial cards.

Cloudflare vs Vercel boilerplates

Most Next.js starters target Vercel. This one targets Cloudflare — and the pricing reflects it.

Vercel startersCF SaaS Starter
ComputePay per invocation after free tier. Cold starts on infrequent routes.Free tier: 100K req/day. No cold starts after 2025 improvements. $5 cap.
DatabasePostgres starts at $9/mo or bring your own. No free included DB.D1: 5 GB storage, 5M rows, 25B read/month — all free. $0.75/GB after.
StorageBlob storage at $0.12/GB stored + egress. Pay to serve user files.R2: 10 GB free. Zero egress fees. Serve images, downloads, PDFs at no cost.
Background jobsRequires QStash ($2/mo) or Inngest. Separate billing.Queues: built-in. 1M operations/month free. No third-party dependency.
EmailNo native email. Resend, SendGrid, or Mailgun required.Email Routing: free inbound + outbound email. Transactional and routing built in.
DDoS / WAFBasic DDoS protection. WAF rules available on Pro ($20/mo).Full WAF + DDoS protection included at $0. Enterprise-grade filtering on free tier.

Free until you have users

Cloudflare's free tier is generous. You can run a production SaaS with thousands of users before your first bill.

100K/day
Requests
3M/month before you pay a cent
25B/month
D1 reads
25 billion row reads. Free.
5 GB
D1 storage
$0.75/GB after
10 GB
R2 storage
Zero egress fees. Always.
1M/day
KV reads
Per namespace. Just create another.
1M ops/month
Queues
Background jobs at no cost

Common questions

Is this a real boilerplate or just UI?

Real, full-stack boilerplate extracted from a shipped product (Sloth, usesloth.com). It includes a Hono API worker with better-auth, Stripe webhook handling, D1 migrations, R2 upload support, email templates, and a Next.js frontend with auth gates, paywall, and admin panel. It's been tested with real users and real payments.

How is it different from Vercel templates?

Vercel templates target Vercel's infrastructure (serverless functions, Edge Config, Postgres via Neon). This boilerplate targets Cloudflare (Workers, D1, KV, R2, Queues). The entire stack costs $5/month vs $20-50/month on Vercel. Plus you get built-in DDoS protection, WAF, and email routing — services Vercel charges extra for or doesn't offer.

Do I need to know Cloudflare Workers?

No. The boilerplate uses Next.js API routes where appropriate and a Hono worker only where needed (auth, Stripe). If you know Next.js, you know enough. The OpenNextJS adapter handles the translation to Cloudflare's runtime automatically.

How long does it take to deploy?

About 30 minutes from clone to deployed. The README walks you through: clone, install, create D1/R2/KV resources, run migrations, set secrets, deploy. There's a one-command setup script that replaces all placeholders with your app name, domain, and prices.

Can I use this for a commercial product?

Yes. MIT licensed. Build your SaaS on it, charge for it, sell it. No royalties, no attribution required. The only thing you can't do is resell the boilerplate itself as a competing product.

How do I get access?

The CF SaaS Starter Kit is included free with lifetime access to BusinessIdeasDB ($79 one-time). Once you purchase, go to Settings → Your plan includes → enter your GitHub username → we invite you as a collaborator on the private repo. You get full source access: clone, fork, browse history.

Lifetime access. No subscription.

Get the boilerplate + validated ideas

$79, one-time payment. 100+ validated business ideas, real keyword data, and the full Cloudflare SaaS Starter Kit. Your entire 2026 stack in one purchase.

Secure payment via Stripe. No subscription.