A server-first starter for multi-tenant SaaS
Sign-in, teams, roles, and file uploads work from the first run. Clone it, put your brand on it, and ship your first feature this week.
Sign up with email or Google to explore the dashboard.
Built with
- Next.js 16
- React 19
- Better Auth
- Drizzle ORM
- PostgreSQL
- shadcn/ui
- Turborepo
Everything a SaaS needs on day one
The product surface is already built, so you can spend your time on what makes yours different.
Authentication
Email or Google sign-in, email verification, and password reset.
Organizations
Invite members by email and give each one a role.
Admin panel
Manage users, bans, and platform roles in one place.
File uploads
Avatars and logos on any S3-compatible bucket with dimah-s3.
i18n and RTL
English and Persian out of the box, with right-to-left layouts.
Server-first
Session in Server Components, cached reads, and a Server Action for every write.
Next.js 16, done right
Built on Cache Components
Pages open instantly and stay fresh after every change.
Instant navigation
Each page's shell is prefetched before you click.
Tagged cache
Lists are cached per user and organization.
Fresh after every write
updateTag shows the change in the same response.
Secure by default
Every read checks access. Sessions are never cached.
// Read: check access, then a tagged cache entryexport async function getOrganizationMembersPage(query) { const { organizationId } = await requireOrganizationManager() return getCachedPage(organizationId, query)}
async function getCachedPage(organizationId, query) { "use cache" cacheLife("minutes") cacheTag(tags.organizationMembersById(organizationId)) return db.select().from(member) // …}
// Write: a Server Action; the change shows at onceexport async function removeOrganizationMemberAction(input) { await auth.api.removeMember({ headers: await headers(), body }) updateTag(tags.organizationMembersById(input.organizationId))}Up and running in minutes
Install, configure, and run. The README covers deployment and every environment variable.
pnpm installcp .env.example .envpnpm --filter @repo/db db:migratepnpm devQuestions, answered
What to expect before you build your product on Dimah Starter.