The B2B-ready foundation for your next SaaS. Built from 19 locked architectural decisions and shipped as a clean, typed, documented codebase — not a tangle of half-finished boilerplate. Organizations, members, roles, and invitations are already modeled and working, so you can sell to teams from the first commit.
Stack
- Next.js 16 (App Router, Server Components/Actions) + TypeScript (strict)
- Tailwind CSS 4 + shadcn/ui — accessible, themeable, light/dark
- Better Auth — email/password, Google & GitHub OAuth, 2FA, admin, and the organization plugin (teams, roles, invitations)
- Drizzle ORM + PostgreSQL with org-scoped query helpers and seed data
- Swappable billing — one
BillingProviderinterface, with Paddle, Stripe, and Polar adapters included - Resend + React Email — welcome, verify, reset, invitation, and billing emails
- Cloudflare R2 storage, Redis + BullMQ jobs, Sentry, analytics (Umami + PostHog), and Tolt affiliate tracking
What's inside
- Full source for the org/team layer: switcher, onboarding wizard, member management, role-based access
- Database schema + migrations + seed script
- A phased implementation guide and verification checklist
- i18n architecture and a GDPR/privacy checklist
- Naming conventions, error-handling strategy, and design-token guide
Who it's for
Founders building a multi-seat, team-billed SaaS who want a scale-ready core without spending the first month on plumbing. Need single-user billing instead? See SaaS Core Starter — Solo.
