Repolode
ixartz

ixartz/SaaS-Boilerplate

Open-source Next.js SaaS starter with Clerk auth, multi-tenancy, RBAC, i18n, Drizzle ORM and Tailwind CSS.

Stars
7,456
Forks
1,335
Open issues
3
Last commit
21 days ago

What is it?

SaaS Boilerplate is a TypeScript template for starting SaaS applications with Next.js, Tailwind CSS and Shadcn UI. It includes authentication through Clerk, multi-tenancy with team and organization support, role-based access control, a landing page, a user dashboard, and internationalization via next-intl with Crowdin.

The data layer uses Drizzle ORM, which works with PostgreSQL, SQLite and MySQL, and PGlite provides a local development database. The project also ships with ESLint, Prettier, Vitest, Playwright, Storybook, Sentry error monitoring, LogTape logging and GitHub Actions for running tests on pull requests. It requires Node.js 24 or later.

A free MIT-licensed version is available, and paid Plus, Pro and Max editions add features such as Stripe payments, Better Auth self-hosted authentication and dark mode.

Key features

  • 01Next.js App Router with TypeScript and Tailwind CSS, using Shadcn UI components.
  • 02Authentication with Clerk, including social login, MFA and user impersonation.
  • 03Multi-tenancy with organization creation, switching and team member invitations.
  • 04Role-based access control and permissions.
  • 05Type-safe database access with Drizzle ORM for PostgreSQL, SQLite and MySQL.
  • 06Internationalization with next-intl and Crowdin translation sync.

Use cases

  • Starting a new B2B SaaS product that needs teams and role permissions from day one.
  • Learning a production-style Next.js project structure with testing and CI already configured.
  • Prototyping a multi-language web application with an existing landing page and dashboard.

Quick start

  1. 1

    Clone the repository

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

    Enter the project folder

    cd my-project-name
  3. 3

    Install dependencies

    npm install
  4. 4

    Start the development server

    npm run dev

Things to know

  • Requires Node.js 24 or newer.
  • Authentication depends on Clerk, which needs an account and API keys to run.
  • Advanced features such as Stripe payments and oRPC are only in the paid Pro or Plus versions.

Topics

FAQ

What is SaaS-Boilerplate?
Open-source Next.js SaaS starter with Clerk auth, multi-tenancy, RBAC, i18n, Drizzle ORM and Tailwind CSS. SaaS Boilerplate is a TypeScript template for starting SaaS applications with Next.js, Tailwind CSS and Shadcn UI. It includes authentication through Clerk, multi-tenancy with team and organization support, role-based access control, a landing page, a user dashboard, and internationalization via next-intl with Crowdin.
Is SaaS-Boilerplate free to use? What license does it have?
SaaS-Boilerplate is open source under the MIT license. Check the license terms before using it in commercial products.
Is SaaS-Boilerplate still maintained?
Actively maintained. The last commit to SaaS-Boilerplate was on Oct 1, 2026.
What can I use SaaS-Boilerplate for?
Starting a new B2B SaaS product that needs teams and role permissions from day one. Learning a production-style Next.js project structure with testing and CI already configured. Prototyping a multi-language web application with an existing landing page and dashboard.
How do I install SaaS-Boilerplate?
Clone the repository: git clone --depth=1 https://github.com/ixartz/SaaS-Boilerplate.git my-project-name Enter the project folder: cd my-project-name Install dependencies: npm install Start the development server: npm run dev
Where can I get SaaS-Boilerplate?
The source code and installation instructions are on GitHub: https://github.com/ixartz/SaaS-Boilerplate

Summary generated by AI from the project's README. GitHub stats refresh daily.

Related projects