Build faster.
Ship smarter.
nextjs-saas-boilerplate-ts — Enterprise-grade SaaS boilerplate. Auth, dashboard, and CRUD out of the box—so you focus on your product, not your stack.
Everything you need to ship
From auth to dashboard to file storage—production patterns, not placeholders.
Dashboard
Vercel-style layout with sidebar, metric cards, and activity tables. Ship a polished admin in hours.
Auth
Better Auth + Argon2. Role-based access, protected routes, and session management. Secure by default.
API & CRUD
Server Actions, Zod validation, React Hook Form. Full CRUD with type-safe schemas and validation.
Storage
Cloudflare R2 ready. File uploads, presigned URLs, and optional S3-compatible storage.
From schema to UI in minutes
Define your model in Prisma, generate validation with Zod, and get full CRUD with React Hook Form. Type-safe end to end.
model Project {
id String @id @default(cuid())
name String
description String?
createdAt DateTime @default(now())
}Your product, delivered.
Security, speed, and scale included—so you focus on your users, not your infrastructure.
Role-based auth
Better Auth + Argon2. RBAC with a permission catalog and role-to-permission mapping (see src/lib/rbac/). Extend roles or permissions as your product grows. No plaintext passwords.
Server-first
Server Components, Server Actions, TanStack Query. Minimal client JS, fast load times, and great SEO.
CRUD patterns
Prisma models, Zod validation, service layer, APIs, and dashboard pages—React Hook Form and TanStack Query included.
Admin panel
User management, site config (signup toggle), and role assignment. Control your app from the dashboard.
Service layer
Thin route handlers call Prisma-backed services—easy to test, extend, and lock down with per-user ownership when you need it.
Testing & deploy
Vitest, Playwright, and deploy guides for Vercel, Render, NeonDB. Production-ready from day one.
Deploy once, deliver everywhere.
Push to your repo and deploy to Render, Vercel, or any Node host. Automatic HTTPS, previews, and zero-config setup.
Ready to build?
Join teams shipping faster with auth, dashboard, and CRUD out of the box.