The complete SaaS framework for Next.js
Build production-ready SaaS applications in days, not months.
Documentation · Getting Started · Issues · Discussions
NextSpark is a complete, production-ready SaaS framework built on Next.js 15. It provides everything you need to launch a SaaS product: authentication, payments, teams, permissions, entities, themes, and more—all pre-configured and ready to customize.
- Authentication — Email/password, Google OAuth, magic links with Better Auth
- Payments — Stripe integration with subscriptions, usage billing, and customer portal
- Teams — Multi-tenant team management with roles and invitations
- Permissions — Granular role-based access control system
- Entities — Dynamic CRUD with automatic API generation and validation
- MCP Server — Every API-exposed entity gets LLM tool-calling (Claude, etc.) for free via the Model Context Protocol
- Themes — Multiple theme support with easy customization
- Plugins — Extensible plugin architecture for adding features
- i18n — Full internationalization with next-intl
- UI Components — 50+ components based on shadcn/ui
- Database — PostgreSQL with migrations and type-safe queries
- Testing — Jest + Cypress setup included
- TypeScript — Full type safety across the entire stack
# Create a new project
npx @nextsparkjs/create-app my-saas
# Navigate to project
cd my-saas
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env
# Run database migrations
pnpm db:migrate
# Start development server
pnpm devOpen http://localhost:3000 to see your app.
This monorepo contains the following packages:
| Package | Version | Description |
|---|---|---|
@nextsparkjs/core |
Core framework with components, hooks, and utilities | |
@nextsparkjs/cli |
CLI for development workflow | |
@nextsparkjs/create-app |
Project scaffolding tool |
Visit nextspark.dev/docs for the full documentation:
- Getting Started — Create your first project
- Authentication — Configure auth providers
- Payments — Set up Stripe billing
- Teams — Multi-tenant architecture
- Entities — Dynamic data management
- Theming — Customize the look and feel
- Deployment — Deploy to production
- Node.js 18.17 or later
- PostgreSQL database
- pnpm (recommended) or npm
NextSpark is built with modern technologies:
| Category | Technology |
|---|---|
| Framework | Next.js 15 with App Router |
| Language | TypeScript |
| Styling | Tailwind CSS v4 |
| Components | shadcn/ui + Radix UI |
| Authentication | Better Auth |
| Database | PostgreSQL |
| Payments | Stripe |
| Resend | |
| i18n | next-intl |
| Validation | Zod |
| State | TanStack Query |
# Clone the repository
git clone https://github.com/NextSpark-js/nextspark.git
cd nextspark
# Install dependencies
pnpm install
# Setup Claude Code (optional, for AI-assisted development)
./scripts/setup/claude.sh
# Build core package
pnpm --filter @nextsparkjs/core build
# Start development
pnpm devWe welcome contributions! Please read our Contributing Guide before submitting a Pull Request.
- Open an issue for bugs or feature requests
- Start a discussion for questions
- GitHub Discussions — Ask questions and share ideas
- Twitter — Follow for updates
"NextSpark" is a trademark. See our Trademark Policy for usage guidelines.
NextSpark is open source software licensed under the MIT License.
Built with ❤️ for the developer community