Next.js SaaS Starter Kit
# Ship Your SaaS in Days, Not Months. You want to build a SaaS product. But setting up auth, payments, database, and deployment takes weeks before you write a single line of business logic. **This boilerplate gets you to launch in one weekend.** --- ## What You Get A complete, production-ready Next.js 15 SaaS starter kit with everything wired up. | Feature | Details | |---------|---------| | Authentication | Auth.js v5 — Email/Password + Google OAuth, JWT sessions | | Payments | Stripe AND Lemon Squeezy — switch with one env variable | | Database | Prisma ORM + PostgreSQL (Neon-ready) | | Subscription | Free + Pro plans with webhook handlers | | Landing Page | Hero, Features, Pricing, FAQ sections | | Dashboard | Protected user dashboard | | Account | Profile + subscription management | | Dark Mode | System preference detection + toggle | | Security | CSRF protection, route guards, security headers | | Legal Pages | Terms of Service + Privacy Policy templates | --- ## Tech Stack - **Next.js 15** — App Router, Server Components, TypeScript - **Auth.js v5** — Email/Password + Google OAuth, JWT strategy - **Prisma** — Type-safe ORM with PostgreSQL - **Stripe + Lemon Squeezy** — Dual payment provider support - **Tailwind CSS v4** — Modern styling with dark mode --- ## Payment Provider Switching One environment variable. Two payment providers. ```env # Use Stripe PAYMENT_PROVIDER=stripe # Or Lemon Squeezy PAYMENT_PROVIDER=lemonsqueezy ``` Both providers include: - Checkout session creation - Webhook handlers with signature verification - Subscription lifecycle management (create, update, cancel) - Customer portal integration --- ## How to Use 1. Clone the template 2. Run `npm install` 3. Copy `.env.example` → `.env` and fill in your keys 4. Run `npx prisma db push` 5. Run `npm run dev` 6. Deploy to Vercel --- ## File Structure ``` src/ ├── auth.ts # Auth config ├── middleware.ts # Route protection ├── config/ │ ├── site.ts # ← Your app name │ └── plans.ts # ← Your pricing ├── lib/payment/ # Payment abstraction ├── components/ # UI components └── app/ # Pages & API routes ``` Change `site.ts` and `plans.ts` — your SaaS is ready. --- ## Who Is This For? - **Indie hackers** who want to ship fast - **Developers** tired of setting up auth + payments from scratch - **Startups** that need a production-ready foundation - **Freelancers** building SaaS products for clients --- ## What's NOT Included (by design) This is a clean, minimal starter. We intentionally excluded: - Admin panel - Email service - Rate limiting - Error tracking The README includes recommended add-ons for each. Start lean, add what you need. --- ## Get It Now Auth. Payments. Database. Dark mode. Landing page. All wired up. Stop setting up boilerplate. Start building your product.
Get it → hyuniverse61.gumroad.com