Pack #1: Next.js + Supabase SaaS Starter
Ship auth, an RLS-safe database, Stripe subscriptions and a Vercel deploy by pasting 10 prompts.
Paid packs are paused right now. Read the free Cursor rules guide in the meantime, or get the free newsletter to hear when the pack is back.
What's inside
- 5 Cursor rules (
.cursor/rules/*.mdc): core conventions, Supabase + RLS, auth, Stripe, and always-on security guardrails, scoped with globs. - AGENTS.md + CLAUDE.md for Codex, Copilot, Windsurf, Jules and Claude Code.
- Prompt playbook, 10 steps: scaffold → Supabase clients → auth → RLS database → RLS tests → dashboard → Stripe → plan gating → security audit → deploy.
- Security checklist with copy-paste verification commands.
- Reference templates: Supabase SSR clients, middleware, login + signup pages, auth callback with open-redirect protection (blocks
//, backslash and URL-encoded tricks), Server Actions, Stripe Checkout + signed, idempotent webhook (Pro only for an active subscription) + Customer Portal with Origin checks, SQL migrations with locked-down RLS and database-enforced plan limits, nonce CSP + security headers, httpOnly cookies, a two-user RLS test script and a redirect test script.
How we verified it
We dropped the templates into a fresh create-next-app@15 project (Next 15.5, React 19, @supabase/ssr 0.12, Stripe SDK 23, zod 4) and npm run build and ESLint both passed with no secrets set.
Who it's for
Vibe coders and indie hackers building a SaaS who want the agent to get auth, data access and billing right on the first pass.
Paid packs are paused right now.
In the meantime, read the free Cursor rules for Next.js + Supabase guide first.
FAQ
What exactly is in the Next.js + Supabase SaaS Starter pack?
Five Cursor project rules in .cursor/rules (00-core, 10-supabase, 20-auth, 30-stripe, 40-security), an AGENTS.md for Codex, Copilot, Jules and Windsurf, a CLAUDE.md for Claude Code, PROMPTS.md (a 10-step prompt playbook, steps 0 to 9: scaffold, Supabase clients + middleware, auth, database with RLS, verify RLS, dashboard, Stripe, plan gating, pre-deploy audit, deploy to Vercel), SECURITY-CHECKLIST.md, and a templates folder with reference code.
What reference code is in the templates folder?
Supabase browser, server and service-role clients; middleware that refreshes sessions and sets a nonce Content-Security-Policy; login and signup pages with Server Actions and zod validation; an auth callback with safe redirects; a dashboard with server actions; Stripe Checkout, a signed and idempotent webhook, and Customer Portal routes; SQL migrations (0001_init.sql and 0002_security_guards.sql) with Row Level Security; next.config.ts security headers; a two-user RLS test script (rls-test.ts) and a redirect test script (check-redirects.mjs); and .env.example.
Is it a finished app or boilerplate I deploy as-is?
No. It is rules, prompts and reference code that guide your AI agent while it builds the app in your own project. You paste the playbook steps into Cursor (or Claude Code / Codex) one at a time, and each step ends with npm run build.
What stack does it cover?
Next.js 15 App Router, React 19, TypeScript strict, Tailwind v4, @supabase/ssr and @supabase/supabase-js, Stripe Checkout and Customer Portal for subscriptions, zod for validation, and deployment to Vercel.
What do the Cursor rules make the agent do?
Examples: default to Server Components, validate every input with zod, await cookies() and params in Next 15, use supabase.auth.getUser() (never getSession()) on the server, enable RLS on every table in the same migration, keep the service-role key server-only, verify Stripe webhooks with the raw body, grant Pro only for an active subscription, and only redirect to safe relative paths.
Do I get it instantly?
Paid packs are paused right now, so there is no checkout. Read the free Cursor rules guide in the meantime.