Engineered for modern development. Optimized for AI.
This is the Open Source / Lite Version of Indie Kit Pro. It combines a production-grade tech stack with "AI Context Rules" that empower LLMs (Cursor, Windsurf, Copilot) to understand your codebase, write bug-free code, and navigate your project autonomously.
- ποΈ Next.js 16 (App Router) - Staying ahead of the curve.
- π¨ Tailwind CSS v4 + Shadcn UI - Beautiful, accessible UI.
- π Better Auth (Social + Magic Link) - Secure and simple.
- ποΈ Drizzle ORM + Bring Your Own Database - Connect to Supabase, Neon, or any Postgres provider.
- π³ Stripe Subscription Webhooks - Ready for monetization.
- π UploadThing for file storage - Easy file uploads.
- π Dark Mode built-in - Because developers love it.
- π Landing Page (Hero, Features, Pricing, FAQ)
- π Auth Pages (Sign In, Sign Up)
- βοΈ App Layout (Header, User Profile)
- π Legal Pages (Privacy, Terms)
We've structured the codebase to be easily understood by LLMs (Cursor, Windsurf, Copilot, Antigravity). This means fewer hallucinations and better code generation, regardless of which tool you use.
- Self-Documenting Code: Your AI knows exactly where auth lives (
.claude/skills/auth-handler), how to migrate the DB (.cursor/rules), and where to put new components. - No Hallucinations: We force the AI to use existing patterns (like
withAuthRequired) instead of inventing broken ones. - One-Shot Prompts: Paste a single command like
/bootstrapand watch it scaffold your entire MVP plan.
π‘ Pro Tip: To use this kit with Google's Antigravity or other AI agents that expect a .agent folder, simply rename .claude to .agent:
mv .claude .agentRun the following command to scaffold a new project interactively:
npx indiekit@latest
# or
pnpm dlx indiekit@latest
# or
yarn dlx indiekit@latestThis CLI will:
- π Scaffold the project instantly (no git history to remove).
- π οΈ Guide you through setup options.
- π¦ Install dependencies automatically.
If you prefer to clone the repo manually:
git clone https://github.com/Indie-Kit/nextjs-saas-starter.git my-saas
cd my-saas
pnpm installCopy the example environment file and fill in your secrets:
cp .env.example .envYou will need:
- Database URL: Use Supabase, NeonDB, or any PostgreSQL provider.
- Better Auth Secret: Run
npx auth secretto generate. - Stripe Keys: For payment processing.
- Social Keys: (Google/GitHub, optional).
Also, update src/lib/config.ts with your project name, description, and legal details (email, address) which are used in the footer and legal pages.
# Sync database schema to the database after adding new tables or modifying existing tables
pnpm run db:pushpnpm devOpen http://localhost:3000 to see your app.
This kit is designed to be "read" by LLMs. It includes:
.cursor/rules: Context-aware rules for Cursor to understand project structure.- Prompt Library: Pre-written prompts to generate features, DB schemas, and tests.
- Self-Correction: Setup to help AI fix its own linting errors.
- Skills: Specialized instructions for the AI to handle Auth, DB, and Payments correctly.
This starter is perfect for learning and building simple MVPs. For serious production apps, check out Indie Kit Pro.
| Feature | Starter (Free) | Indie Kit Pro |
|---|---|---|
| Next.js 16 App Router | β | β |
| Better Auth | β | β |
| Postgres + Drizzle | β | β |
| Stripe Subscriptions | Basic | Full |
| AI Navigation Rules | Basic | Advanced |
| Dodo Payments | β | β |
| Stripe Payments | β | β |
| Lemon Squeezy Payments | β | β |
| PayPal Payments | β | β |
| Multi-Tenancy (Teams/Orgs) | β | β |
| Role-Based Access Control | β | β |
| User Impersonation | β | β |
| Super Admin Dashboard | β | β |
| Credit System (Usage Based) | β | β |
| Waitlist System | β | β |
| Blog & Docs (MDX) | β | β |
| Email Sequences (Inngest) | β | β |
| Documentation Site | β | β |
| Priority Support | β | β |
Get 1-1 mentorship with CJ for free when you upgrade to Pro.
- Free Discord Community: Join our community of indie hackers to ask questions and share your progress!
- Twitter: Follow @cjsingg for updates.
- Issues: Open a GitHub issue for bugs in the starter.
Built with β€οΈ by CJ.
