Introduction
Welcome to the Next.js Full-Stack Starter Kit - A comprehensive, production-ready boilerplate
Welcome to Next.js Full-Stack Starter Kit
A comprehensive, production-ready Next.js boilerplate with authentication, payments, database, admin dashboard, blog system, and much more.
What's Included
This starter kit provides everything you need to build a modern SaaS application:
๐ Authentication & Authorization
- Better Auth integration with email/password and OAuth support
- Role-based access control (RBAC) with User and Admin roles
- Email verification and password reset flows
- Secure session management
๐ณ Payments & Subscriptions
- Stripe integration for subscription billing
- Pre-configured pricing plans
- Customer portal and billing management
- Webhook handling for automated subscription updates
๐ Content Management
- Full-featured blog system with rich text editing (TipTap)
- AI-powered writing assistant with multiple models
- Post translation capabilities
- Categories, tags, and SEO optimization
- Changelog management
- FAQ system
๐ง Email System
- Multiple provider support (Nodemailer, Resend, SendGrid, Mailgun)
- Customizable email templates
- Visual template editor with Monaco
- Transactional emails for auth flows
๐จ Modern UI/UX
- shadcn/ui components with Radix UI primitives
- Tailwind CSS v4 for styling
- Dark mode support with next-themes
- Responsive design
- Beautiful animations with Motion/GSAP
๐๏ธ Database & ORM
- Drizzle ORM with PostgreSQL
- Type-safe database queries
- Migration system
- Support for Neon, Supabase, or self-hosted databases
๐ค File Uploads
- UploadThing integration
- Secure, authenticated uploads
- Image optimization
- User tracking and audit logs
๐ก๏ธ Security
- XSS protection with DOMPurify
- Rate limiting on sensitive endpoints
- Security headers (HSTS, CSP, X-Frame-Options)
- File upload security
- Security audit logging system
๐ Admin Dashboard
- User management and role assignment
- Blog post management
- Email template editor
- Subscription plan configuration
- Contact form submissions
- Security audit logs
- Marketing controls
- Waitlist management
๐งช Testing
- E2E testing with Playwright
- Pre-configured test users
- Test fixtures and utilities
Tech Stack
- Framework: Next.js 16 (App Router)
- Language: TypeScript 5
- Styling: Tailwind CSS 4
- UI Components: shadcn/ui + Radix UI
- Database: PostgreSQL + Drizzle ORM
- Authentication: Better Auth
- Payments: Stripe
- Email: Multiple providers supported
- File Uploads: UploadThing
- Rich Text: TipTap
- AI: OpenRouter (free models)
- State Management: Zustand + TanStack Query
- Forms: React Hook Form + Zod
- Testing: Playwright
Who Is This For?
This starter kit is perfect for:
- ๐ SaaS Builders - Launch your product quickly with essential features pre-built
- ๐จโ๐ป Developers - Learn best practices for full-stack Next.js development
- ๐ผ Agencies - Start client projects with a solid foundation
- ๐ Learners - Study a production-ready codebase with modern patterns
What Makes It Different?
โ Production-Ready
Not just a demo - this is a battle-tested, security-hardened starter kit ready for real-world use.
โ Comprehensive
Includes features that usually take weeks to implement: auth, payments, CMS, email system, admin dashboard, and more.
โ Well-Documented
Every feature is documented with clear examples and explanations.
โ Modern Stack
Uses the latest stable versions of Next.js, React, and ecosystem tools.
โ Type-Safe
Full TypeScript coverage with strict typing for better developer experience.
โ Extensible
Clean architecture makes it easy to add new features or customize existing ones.
Quick Start
Get up and running in under 5 minutes:
Installation
Learn how to install and configure the starter kit
Setup Scripts
Quickly seed your database with sample data
# Install dependencies
pnpm install
# Configure environment
cp .env.example .env
# Edit .env with your credentials
# Setup database and seed data
pnpm project:setup
# Start development server
pnpm devVisit http://localhost:3000 and start building!
Core Features
Explore the powerful features built into the starter kit:
Authentication
Better Auth integration with Magic Link, OAuth, and Role-Based Access Control
Payments
Stripe integration for subscription billing, pricing plans, and webhooks
Database & ORM
Drizzle ORM with PostgreSQL. Support for Neon, Supabase, and self-hosted databases.
Blog System
Full-featured CMS with TipTap editor, AI assistant, and SEO optimization
Admin Dashboard
Manage users, blog posts, email templates, and system logs
Email System
Transactional emails with multiple provider support and visual template editor
File Uploads
Secure file storage with UploadThing and image optimization
Security & Auditing
XSS protection, rate limiting, and comprehensive security audit logging
Next Steps
Now that you're set up, here's what we recommend doing next:
- Configure Providers: Set up your Stripe and Email credentials.
- Customize Branding: Update the site name and logo in
src/config/site.ts. - Explore the Schema: Check out the Database Schema to understand the data model.
- Deploy: Follow the Deployment Guide to go live.
Support & Community
- Documentation: You're reading it! ๐
- Issues: Report bugs or request features on GitHub
- Updates: Check the changelog for new features and fixes
Ready to build something amazing? Let's get started! ๐