gitmyhub

SaaS-Boilerplate

TypeScript β˜… 7.2k updated 22h ago

πŸš€πŸŽ‰πŸ“š SaaS Boilerplate built with Next.js + Tailwind CSS + Shadcn UI + TypeScript. ⚑️ Full-stack React application with Auth, Multi-tenancy, Roles & Permissions, i18n, Landing Page, DB, Logging, Testing

Building a software-as-a-service product from scratch means writing the same foundation every time: user accounts, login, team management, billing setup, database connections, and so on. This project is a ready-made starting point that has all of that pre-built, so you can skip straight to the parts that are specific to your idea.

The boilerplate is built on top of Next.js, a popular framework for building web applications with React. It uses Tailwind CSS for styling and a component library called Shadcn UI for pre-styled interface elements. User authentication and account management are handled by Clerk, a third-party service that takes care of sign-up, sign-in, and profile pages. The database layer uses Drizzle, a code-first tool for talking to PostgreSQL, SQLite, or MySQL databases.

Out of the box you get user login and sign-up, support for organizations or teams where multiple users share a workspace, role-based permissions so some users can do things others cannot, an internationalization system for supporting multiple languages, a landing page, a user dashboard, form handling, SEO configuration, error tracking through Sentry, and automated tests written with Vitest and Playwright. Continuous integration runs via GitHub Actions. There is also a user impersonation feature that lets administrators log in as another user for support purposes.

The project is free and open source, and a live demo is available at react-saas.com where you can see the authentication and team management features working in a real environment. A paid Pro version with additional features such as dark mode and a sidebar layout is also advertised in the README.

This is aimed at developers who want to launch a web product without rebuilding common infrastructure each time. The full README is longer than what was shown.