Indie Kit - The AI-Native Next.js Starter Kit
February 9, 2026 ยท View on GitHub

The AI-Native Next.js Starter Kit ๐ค
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.
๐ Features
Core Stack - The Right Architecture
- ๐๏ธ 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.
Pre-built Pages
- ๐ Landing Page (Hero, Features, Pricing, FAQ)
- ๐ Auth Pages (Sign In, Sign Up)
- โ๏ธ App Layout (Header, User Profile)
- ๐ Legal Pages (Privacy, Terms)
๐ค AI-Optimized Architecture
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 .agent
๐ ๏ธ Getting Started
โก๏ธ Quick Start (Recommended)
Run the following command to scaffold a new project interactively:
npx indiekit@latest
# or
pnpm dlx indiekit@latest
# or
yarn dlx indiekit@latest
This CLI will:
- ๐ Scaffold the project instantly (no git history to remove).
- ๐ ๏ธ Guide you through setup options.
- ๐ฆ Install dependencies automatically.
๐ข Manual Setup
If you prefer to clone the repo manually:
1. Clone & Install
git clone https://github.com/Indie-Kit/nextjs-saas-starter.git my-saas
cd my-saas
pnpm install
2. Environment Setup
Copy the example environment file and fill in your secrets:
cp .env.example .env
You 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.
3. Database Setup
# Sync database schema to the database after adding new tables or modifying existing tables
pnpm run db:push
4. Run Development Server
pnpm dev
Open http://localhost:3000 to see your app.
๐ง The AI "Brain" (Exclusive)
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.
๐ Indie Kit Pro vs Starter
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.
See Pro in Action
๐ค Community & Support
- 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.