MCPcopy
hub / github.com/ixartz/SaaS-Boilerplate

github.com/ixartz/SaaS-Boilerplate @v1.9.1 sqlite

repository ↗ · DeepWiki ↗ · release v1.9.1 ↗
90 symbols 284 edges 91 files 0 documented · 0%
README

Free and Open Source SaaS Boilerplate with Tailwind CSS and Shadcn UI

Next.js SaaS Template

🚀 SaaS Boilerplate is a powerful and fully customizable template to kickstart your SaaS applications. Built with Next.js and Tailwind CSS, and the modular UI components of Shadcn UI. This Next.js SaaS Template helps you to quickly build and launch SaaS with minimal effort.

Packed with essential features like built-in Authentication, Multi-Tenancy with Team support, Role & Permission, Database, I18n (internationalization), Landing Page, User Dashboard, Form handling, SEO optimization, Logging, Error reporting with Sentry, Testing, Deployment, Monitoring, and User Impersonation, this SaaS template provides everything you need to get started.

Designed with developers in mind, this Next.js Starter Kit uses TypeScript for type safety and integrates ESLint to maintain code quality, along with Prettier for consistent code formatting. The testing suite combines Vitest and Playwright for robust unit, integration, and E2E testing. Continuous integration and deployment are managed via GitHub Actions. For user management, authentication is handled by Clerk. For database operations, it uses Drizzle ORM for type-safe database management across popular databases like PostgreSQL, SQLite, and MySQL. One recommended option is to use Neon, which provides a free PostgreSQL database that is compatible and has been tested with SaaS Boilerplate.

Whether you're building a new SaaS app or looking for a flexible, production-ready SaaS template, this boilerplate has you covered. This free, open-source starter kit has everything you need to accelerate your development and scale your product with ease.

Clone this project and use it to create your own SaaS. You can check the live demo at SaaS Boilerplate, which is a demo with a working authentication and multi-tenancy system.

Sponsors

Clerk – Authentication & User Management for Next.js CodeRabbit Sentry Codecov
Arcjet Crowdin Next.js SaaS Boilerplate with React
Add your logo here

Demo

Live demo: SaaS Boilerplate

Landing Page User Dashboard
Next.js Boilerplate SaaS Landing Page Next.js Boilerplate SaaS User Dashboard
Team Management User Profile
Next.js Boilerplate SaaS Team Management Next.js Boilerplate SaaS User Profile
Sign Up Sign In
Next.js Boilerplate SaaS Sign Up Next.js Boilerplate SaaS Sign In
Landing Page with Dark Mode (Pro Version) User Dashboard with Dark Mode (Pro Version)
Next.js Boilerplate SaaS Landing Page Dark Mode Next.js Boilerplate SaaS User Dashboard Dark Mode
User Dashboard with Sidebar (Pro Version)
Next.js Boilerplate SaaS User Dashboard Sidebar

Features

Developer experience first, extremely flexible code structure and only keep what you need:

  • Next.js with App Router support
  • 🔥 Type checking TypeScript
  • 💎 Integrate with Tailwind CSS and Shadcn UI
  • ✅ Strict Mode for TypeScript and React 19
  • 🔒 Authentication with Clerk: Sign up, Sign in, Sign out, Forgot password, Reset password, and more.
  • 👤 Passwordless Authentication with Magic Links, Multi-Factor Auth (MFA), Social Auth (Google, Facebook, Twitter, GitHub, Apple, and more), Passwordless login with Passkeys, User Impersonation
  • 👥 Multi-tenancy & team support: create, switch, update organization and invite team members
  • 📝 Role-based access control and permissions
  • 👤 Multi-Factor Auth (MFA), Social Auth (Google, Facebook, Twitter, GitHub, Apple, and more), User Impersonation
  • 📦 Type-safe ORM with DrizzleORM, compatible with PostgreSQL, SQLite, and MySQL
  • 💽 Offline and local development database with PGlite
  • ☁️ Remote and production database with Neon
  • 🌐 Multi-language (i18n) with next-intl and Crowdin
  • ♻️ Type-safe environment variables with T3 Env
  • ⌨️ Form with React Hook Form
  • 🔴 Validation library with Zod
  • 📏 Linter with ESLint (default NextJS, NextJS Core Web Vitals, Tailwind CSS and Antfu configuration)
  • 💖 Code Formatter with Prettier
  • 🦊 Lefthook for Git hooks
  • 🚓 Lint git commit with Commitlint
  • 📓 Write standard compliant commit messages with Commitizen
  • 🦺 Unit Testing with Vitest and Browser Mode
  • 🧪 Integration and E2E Testing with Playwright
  • 👷 Run tests on pull requests with GitHub Actions
  • 🎉 Storybook for UI development
  • 🚨 Error Monitoring with Sentry
  • ☂️ Code coverage with Codecov
  • 📝 Logging with LogTape and Log Management with Better Stack
  • 🖥️ Monitoring as Code with Checkly
  • 🎁 Automatic changelog generation with Semantic Release
  • 🔍 Visual regression testing
  • 💡 Absolute Imports using @ prefix
  • 🗂 VSCode configuration: Debug, Settings, Tasks and Extensions
  • 🤖 SEO metadata, JSON-LD and Open Graph tags
  • 🗺️ Sitemap.xml and robots.txt
  • ⌘ Database exploration with Drizzle Studio and CLI migration tool with Drizzle Kit
  • ⚙️ Bundler Analyzer
  • 🌈 Include a FREE minimalist theme
  • 💯 Maximize lighthouse score

Built-in features from Next.js:

  • ☕ Minify HTML & CSS
  • 💨 Live reload
  • ✅ Cache busting

Philosophy

  • Nothing is hidden from you, allowing you to make any necessary adjustments to suit your requirements and preferences.
  • Dependencies are updated every month
  • Start for free without upfront costs
  • Easy to customize
  • Minimal code
  • SEO-friendly
  • Everything you need to build a SaaS
  • 🚀 Production-ready

Requirements

  • Node.js 24+ and npm

Getting started

Run the following command on your local environment:

git clone --depth=1 https://github.com/ixartz/SaaS-Boilerplate.git my-project-name
cd my-project-name
npm install

For your information, all dependencies are updated every month.

Then, you can run the project locally in development mode with live reload by executing:

npm run dev

This command starts Next.js, a local PostgreSQL-compatible PGlite database, and Sentry Spotlight at the same time. Open http://localhost:3000 with your favorite browser to see your project.

Need advanced features? Next.js 16 & React 19, Multi-tenancy & Teams, Roles & Permissions, Shadcn UI, End-to-End Typesafety with oRPC, Stripe Payment, Light / Dark mode. Try Next.js Boilerplate Pro.

Or, need a Self-hosted auth stack (Better Auth)? Try Next.js Boilerplate Max

Free vs Pro vs Max version

This project offers a free open-source version and premium Pro/Max versions. Here's a detailed comparison:

Features Free Version Pro Version Max Version
Authentication
Self-Hosted Authentication (Better Auth)
Social Login (Google, Facebook, GitHub, etc.)
Multi-Factor Auth & User Impersonation
Multi-tenancy & Team Support
Role-based Access Control (RBAC)
Landing Page (Hero, Features, Pricing)
Internationalization (i18n)
Drizzle ORM & Dev Database
GitHub Actions
VSCode Configuration
Built for Humans & AI Agents (Agents.md)
Transactional Emails (React Email)
Bun: package manager
Sentry Error Monitoring
Shadcn UI
Next.js 16 16 16
React 19 19 19
Tailwind CSS 4 4 4
ESLint 10 10 10
User Dashboard Basic Extended Extended
Code Quality Tools Basic Extended Extended
Testing: Unit, Integration, E2E, Visual Basic Extended Extended
**Stripe Integra

Extension points exported contracts — how you extend this code

AppConfig (Interface)
(no doc)
src/types/I18n.ts
ClerkAuthorization (Interface)
(no doc)
src/types/globals.d.ts

Core symbols most depended-on inside this repo

cn
called by 21
src/utils/Helpers.ts
getI18nPath
called by 9
src/utils/Helpers.ts
useMenu
called by 6
src/hooks/UseMenu.ts
getBaseUrl
called by 2
src/utils/Helpers.ts
createDbConnection
called by 1
src/utils/DBConnection.ts
proxy
called by 0
src/proxy.ts
register
called by 0
src/instrumentation.ts
ActiveLink
called by 0
src/components/ActiveLink.tsx

Shape

Function 88
Interface 2

Languages

TypeScript100%

Modules by API surface

src/components/ui/dropdown-menu.tsx15 symbols
src/hooks/UseMenu.ts4 symbols
src/components/ui/accordion.tsx4 symbols
src/utils/Helpers.ts3 symbols
src/components/LocaleSwitcher.tsx2 symbols
src/app/[locale]/layout.tsx2 symbols
src/app/[locale]/(marketing)/page.tsx2 symbols
src/app/[locale]/(auth)/onboarding/organization-selection/page.tsx2 symbols
src/app/[locale]/(auth)/dashboard/layout.tsx2 symbols
src/app/[locale]/(auth)/(center)/sign-up/[[...sign-up]]/page.tsx2 symbols
src/app/[locale]/(auth)/(center)/sign-in/[[...sign-in]]/page.tsx2 symbols
src/utils/DBConnection.ts1 symbols

Dependencies from manifests, versioned

@antfu/eslint-config9.0.0 · 1×
@clerk/localizations4.8.1 · 1×
@clerk/nextjs7.5.2 · 1×
@clerk/ui1.16.1 · 1×
@commitlint/cli21.0.2 · 1×
@commitlint/config-conventional21.0.2 · 1×
@commitlint/prompt-cli21.0.2 · 1×
@commitlint/types21.0.1 · 1×
@electric-sql/pglite-socket0.2.4 · 1×
@eslint-react/eslint-plugin5.9.0 · 1×

For agents

$ claude mcp add SaaS-Boilerplate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact