Starter

SaaS starter: auth + database + per-user data (Supabase)

Sign-up, login, and a dashboard where each user only sees their own records, with RLS done right from day one.

Paste into Cursor, Claude Code, Codex, Lovable, Bolt, Replit or v0
Build a minimal SaaS starter with Next.js (App Router) and Supabase.

Features: email sign-up/login/logout, a protected /dashboard, and a "projects" table where users create, edit and delete their own projects.
Requirements:
- Use @supabase/ssr for auth cookies; protect /dashboard on the server.
- Use the Supabase publishable key in the browser and never expose a secret key.
- Write the SQL migration: projects table with user_id defaulting to auth.uid(), RLS enabled, and select/insert/update/delete policies restricted to the owner.
- Loading, empty, and error states on the dashboard.
- A README with setup steps and every env var.
Build it milestone by milestone and run it after each one.

Tips

  • Supabase is moving from anon/service_role keys to publishable/secret keys. Ask the AI to follow the current Supabase docs.

Works with: Cursor, Claude Code, Codex, Lovable, Bolt, v0. Last reviewed 2026-11-13.

← All prompts · Something broke? Fix library