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.
Everything runs on Cloudflare. No Vercel, no Supabase, no separate services. One account, one bill, zero surprises.
Serverless compute at the edge. Your Next.js app runs globally with zero cold starts.
Distributed SQLite with zero-downtime schema migrations. Replaces Postgres at 1/10th the cost.
Global key-value store with sub-10ms reads. Session cache, rate limiting, and feature flags.
S3-compatible object storage with zero egress fees. User uploads, screenshots, assets.
Reliable background job processing. Email sending, webhook handling, AI scoring — all async.
Connection pooling and query caching. Turns remote DB queries into 1ms local reads.
Not a UI kit. A full-stack, production-tested boilerplate extracted from real shipped products.
Email + Google OAuth. Cross-subdomain cookies. KV session cache. 30-day tokens with daily refresh.
Checkout sessions, webhooks, customer portal. Subscription + lifetime one-time payments. 14-day trial support.
Pre-built SQL migrations for auth and subscriptions tables. Production-ready schema.
Verification, welcome, and password reset emails via Cloudflare Email Routing.
Tailwind v4 design tokens with light/dark CSS variables. Zustand-persisted toggle.
11-section editorial grid with sticky nav, scroll reveal, FAQ, testimonial cards.
Most Next.js starters target Vercel. This one targets Cloudflare — and the pricing reflects it.
| Vercel starters | CF SaaS Starter | |
|---|---|---|
| Compute | Pay per invocation after free tier. Cold starts on infrequent routes. | Free tier: 100K req/day. No cold starts after 2025 improvements. $5 cap. |
| Database | Postgres 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. |
| Storage | Blob 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 jobs | Requires QStash ($2/mo) or Inngest. Separate billing. | Queues: built-in. 1M operations/month free. No third-party dependency. |
| No native email. Resend, SendGrid, or Mailgun required. | Email Routing: free inbound + outbound email. Transactional and routing built in. | |
| DDoS / WAF | Basic DDoS protection. WAF rules available on Pro ($20/mo). | Full WAF + DDoS protection included at $0. Enterprise-grade filtering on free tier. |
Cloudflare's free tier is generous. You can run a production SaaS with thousands of users before your first bill.
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.
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.
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.
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.
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.
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.
$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.