A production-ready, full-stack multi-tenant SaaS boilerplate built with modern web technologies. Enables rapid development of B2B SaaS applications with complete tenant isolation, subscription management, and role-based access control.

Next.js 15, React 19, TypeScript, Tailwind CSS 4
Next.js API Routes (RESTful)
PostgreSQL 15+ with Drizzle ORM
JWT via jose library with HTTP-only cookies
A production-ready, full-stack multi-tenant SaaS boilerplate that accelerates the development of B2B SaaS applications. It includes complete tenant isolation, subscription management, role-based access control, and all the essential features needed to launch a SaaS product quickly.
Building a SaaS application from scratch takes months of development time. This boilerplate provides all the foundational features—authentication, multi-tenancy, subscriptions, and more— so you can focus on building your unique product features instead of reinventing the wheel.
Row-level isolation with automatic company ID validation on all requests. Every database query is filtered by tenant ID, and subscriptions enforce feature access control per tier.
JWT secrets in environment variables, HTTPS for HTTP-only cookies, rate limiting on API endpoints, Zod schema validation, Content Security Policy headers, comprehensive audit logs, API key rotation, and 2FA support.
Core tables include companies, users, subscriptions, payments, notifications, auditLogs, apiKeys, integrations, and integrationLogs with comprehensive relationship management using Drizzle ORM.
Full TypeScript type safety, Drizzle ORM with PostgreSQL, RESTful API architecture, Docker containerization for development and deployment, and modern tooling throughout.
B2B SaaS platforms requiring tenant isolation
Project management tools with team collaboration
CRM and customer management systems
Analytics and reporting platforms
Workflow automation tools
Team communication and collaboration apps