imbhargav5/nextbase-nextjs-supabase-starter — reverse-engineered prompt
Reverse engineered prompt
Build me a solid SaaS starter I can actually use as a base for new projects. I want it in Next.js with TypeScript, Supabase, and Tailwind, with a clean monorepo setup and good defaults for local development and deployment.
Please include all the core auth flows out of the box, email and password, magic link, OAuth, sign up, sign in, sign out, forgot password, reset password, and protected routes that stay logged in correctly across server renders. I also want a simple public marketing area, plus an authenticated dashboard with a sidebar and a sample private items CRUD flow so I can see the full pattern working.
Make the database side feel production ready, with migrations, generated types, row level security for user owned data, and safe server side actions with validation. Add sensible caching, loading states, SEO basics, and a polished UI I can customize fast.
Please wire up testing too, unit tests and end to end, and include setup scripts and example env files. Look up current docs online if you need to.
Want more depth? Deep Reverse