Skip to content

Repository files navigation

NextSpark

The complete SaaS framework for Next.js

Build production-ready SaaS applications in days, not months.

npm version npm downloads license

Documentation · Getting Started · Issues · Discussions


What is NextSpark?

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.

Features

  • 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

Quick Start

# 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 dev

Open http://localhost:3000 to see your app.

Packages

This monorepo contains the following packages:

Package Version Description
@nextsparkjs/core npm Core framework with components, hooks, and utilities
@nextsparkjs/cli npm CLI for development workflow
@nextsparkjs/create-app npm Project scaffolding tool

Documentation

Visit nextspark.dev/docs for the full documentation:

Requirements

  • Node.js 18.17 or later
  • PostgreSQL database
  • pnpm (recommended) or npm

Tech Stack

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
Email Resend
i18n next-intl
Validation Zod
State TanStack Query

Development

# 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 dev

Contributing

We welcome contributions! Please read our Contributing Guide before submitting a Pull Request.

Community

Trademark

"NextSpark" is a trademark. See our Trademark Policy for usage guidelines.

License

NextSpark is open source software licensed under the MIT License.


Built with ❤️ for the developer community

About

The complete Next.js SaaS boilerplate

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages