SaaS-Boilerplate

Website
SaaS-Boilerplate
Updated on 10 April 2024
5300
Free
Next.jsTailwind CSSshadcn/uiPostgreSQLSQLiteMySQLDrizzle ORMClerkStripe

SaaS Boilerplate is a free and open-source SaaS boilerplate built with Next.js, Tailwind CSS, Shadcn UI, and TypeScript.

It is a full-stack React application with features like Authentication, Multi-tenancy, Roles & Permissions, i18n, a Landing Page, Database, Logging, and Testing.

This project is hosted on GitHub and is public with 5K+ stars. You can view the code before using it, and if you want, you can contribute to enhancing the codebase.

It is a powerful and fully customizable template to kickstart your SaaS applications with minimal effort.

Packed with essential features like:

  • Built-in Authentication
  • Multi-Tenancy with team support
  • Role & Permission management
  • Database integration
  • i18n (internationalization)
  • Landing Page
  • User Dashboard
  • Form handling
  • SEO Optimization
  • Logging
  • Error Reporting with Sentry
  • Testing
  • Deployment
  • Monitoring

While I don’t find deep documentation like paid boilerplates, the documentation on the GitHub page is sufficient to get started with setting up and launching your project.

User Management and Authentication

Authentication is handled by Clerk, which supports:

  • Sign up, sign in, sign out
  • Forgot password, reset password
  • Passwordless Authentication with Magic Links
  • Multi-Factor Authentication (MFA)
  • Social Authentication (Google, Facebook, Twitter, GitHub, Apple, and more)
  • Passwordless login with Passkeys
  • User Impersonation

Database Operations

For database operations, Drizzle ORM is used for type-safe database management across popular databases like PostgreSQL, SQLite, and MySQL.
The project is pre-configured with Drizzle Studio for visually exploring the database.

Multi-Tenancy & Team Support

Supports features like:

  • Create, switch, and update organizations
  • Invite team members
  • Role-based access control and permissions

Subscription Payments

The project is integrated with Stripe for subscription payments.

Multi-Language Support (i18n)

This boilerplate includes multi-language support via next-intl and Crowdin.

Testing and CI/CD

The testing suite combines:

  • Vitest and React Testing Library for robust unit testing
  • Playwright for integration and end-to-end (E2E) testing

Continuous Integration and Continuous Deployment are managed via GitHub Actions.

Predefined Pages

The boilerplate includes predefined pages like:

  • Dashboard
  • Landing Page
  • User Profile page
  • Team Management
Website