Self-hosted auth with organizations and billing wired in

Better Auth SaaS Starter Kitfor Next.js and TanStack Start

Users, sessions, and organizations live in your Postgres, not in a hosted auth service.
Organizations, custom roles, MFA, and passkeys, wired to Stripe or Polar billing. Drizzle or Prisma 7.
One-time purchase from $349, no per-user auth fees
Makerkit Dashboard
Self-hosted auth in your own Postgres

The Better Auth SaaS starter kit for Next.js, with organizations, roles, and billing wired in

Better Auth runs inside your app and stores users, sessions, and organizations in your database.Organizations, invitations, custom roles, MFA, passkeys, magic links, and OAuth, tied to Stripe or Polar.

Authentication

Password, magic link, and social sign-in, plus multi-factor authentication, with the email flows that go with them.

Billing and Subscriptions

Flat, per-seat, and metered subscriptions with Stripe, with webhooks that keep plans and seats in sync.

Customer Portal

Users change plans, update payment methods, and download invoices without opening a support ticket.

Multi Tenancy

Users belong to multiple teams and switch between them, or work in their personal account.

Super Admin

Inspect, impersonate, or ban users and teams from the super admin dashboard.

Shadcn UI and Tailwind CSS

Shadcn UI components styled with Tailwind CSS v4, themed once and reused across the app and the marketing site.

Dark Theme

Dark and light themes, with the choice left to your users.

Blog

A blog for product updates and SEO content, fed by the kit's CMS interface.

Documentation/Help Center

A documentation section for your own users, so onboarding questions get answered before they reach your inbox.

Mobile Friendly

Responsive layouts for the app and the marketing pages.

Serverful/Serverless Stack

Runs on serverless platforms or on a long-lived Node server, with deployment guides for both.

Strict code standards

Strict TypeScript and linting across the monorepo, so type errors surface before your users find them.

E2E Testing with Playwright

Playwright end-to-end tests for authentication, team accounts, and invitations, written with page objects you can extend.

Emails with React Email

Transactional email templates written in JSX with React Email.

Mailers

One mailer API with Resend or Nodemailer (SMTP) behind it.

Plugins

Add-on plugins for your SaaS: testimonials, feedback, roadmap, and waitlist.

You Own the Code

The full source lives in your repository. Change anything; nothing is hidden behind a package you cannot edit.

Documentation

Every kit has its own documentation, from installation to going to production.

SEO Basics

Per-page metadata and a sitemap route on the marketing site.

Swappable Providers

Billing, email, CMS, and monitoring sit behind interfaces, so changing provider is configuration, not a rewrite.

AI Agent Rules

AGENTS.md and CLAUDE.md files at the root and in each package teach coding agents the kit's conventions.

MCP Server

An MCP server in the repository gives your agent structured access to the kit.

Course

The MakerKit course walks through building a SaaS on the kit, from idea to launch.

Realtime Notifications (Supabase)

In-app notifications delivered with Supabase Realtime on the Supabase kits.

Internationalization

Every UI string comes from translation files, so adding a language is content work, not a refactor.

Figma UI Kit

A Figma UI kit that matches the components, for designing new screens before you build them.

Support

Help from me and the MakerKit community on Discord.

Community

A Discord community to share projects, ask questions, and suggest features.

Guides

Tutorials on the MakerKit blog covering the kit's stack and common SaaS patterns.

Continuous Updates

New features, fixes, and dependency upgrades land continuously, and you pull them into your repository with git. See the changelog.

Maintained Full-Time

MakerKit is my full-time job, not a side project, so the kits keep up with their frameworks.

Since 2022

MakerKit has shipped and maintained SaaS kits since 2022, with an upgrade path across framework major versions.
Rules and an MCP server for AI coding agents

Rules and an MCP server for AI agents and IDEs: Claude Code, Codex, Gemini, and Cursor

Instruction files tell the agent where code goes and which patterns to reuse. The MCP server gives it structured access to the kit, so features land on the existing auth, tenancy, and billing instead of beside them.

Cursor AI IDEClaude CodeOpenAI CodexGemini IDE
From clone to product code in one session

A production-ready Better Auth SaaS Starter KitThe setup, stack, and tooling are decided, so your first commit is a product feature.

Authentication made easy

Authentication with Better AuthEmail and password, magic links, passkeys, OAuth, and TOTP MFA, configured in one Better Auth file and stored in your own Postgres.

Email/Password
Multi-tenant SaaS from day one

Multi-Tenancy with Better Auth OrganizationsBetter Auth's organization plugin with invitations, plus custom roles each organization defines from the UI.

Organizations and Teams
Get Paid

BillingStripe or Polar subscriptions per organization, including per-seat billing with seat enforcement and metered usage.

Manage accounts from the Super Admin panel

Admin PanelManage your users, organizations, and build your own internal tooling within the app.

Super Admin
UI you extend, not rebuild

Delightful UI, Built to ExtendScreens for every flow, built from the same Shadcn UI components you will use for your own features.

Landing Page
Marketing, SEO, and Content

MarketingGet found by your target audience with blog, documentation, changelog, and more.

Blog
Debug and Test your SaaS

Monitoring and TestingComprehensive monitoring and testing tools to help you keep your SaaS running smoothly.

Playwright E2E Testing
Help from the person who wrote the code

Support and CommunityAsk me and the MakerKit community on Discord about setup, kit-related issues, and how the codebase fits together.

Focus on your product, not infrastructure

Better Auth is a library, not a SaaS

Adding Better Auth to an app is the quick part. Wiring its organizations to roles, invitations, per-seat billing, and an admin panel takes longer. With AI coding tools, that is still 49-81 hours of senior developer time, including fixing the patterns AI got wrong.

ComponentBuild with AIMK

Build once

Infrastructure every SaaS needs before its first feature

  • Authentication (email, OAuth, MFA)6-10 hoursPre-built
  • Stripe subscription billing5-8 hoursPre-built
  • Teams, roles & invitations6-10 hoursPre-built
  • Super admin dashboard4-6 hoursPre-built
  • Transactional emails3-5 hoursPre-built
  • Marketing pages2-4 hoursPre-built
  • Blog & documentation3-5 hoursPre-built
  • Project setup (monorepo, CI, TypeScript)2-3 hoursPre-built
  • E2E tests (auth and billing flows)3-5 hoursPre-built

Maintain forever

Work that keeps coming after launch

  • Refactoring AI-generated patterns15-25 hoursNot needed
  • Next.js/React version upgradesEvery major releaseIncluded
  • Security patches & fixesOngoing, unpredictableIncluded
  • Dependency updatesOngoingIncluded
Build with AI

49-81 hours

With AI tools, including rework

With MakerKit

Day 1

Start building your product immediately

Estimated savings

$7,350-$12,150

In developer time and opportunity cost

Estimates for a senior developer building from scratch with Claude Code or Cursor at $150/hour, including 15-25 hours refactoring AI-generated patterns. Read the methodology

Our customers love Makerkit ❤️

HA

Harvey Coplestone

"Just started using MakerKit and it's a total game-changer. 🚀 Wish I had this when I was building Phishr. Instant team management and billing? Insane."

BR

Brayan

"@gc_psk @makerkit_dev Bought the your recent course and I’m super stoked to be part of the community! I can’t wait to dive into the material this week 🤙"

AN

Andrew Willshire

"@gc_psk Second that! Giancarlo provides amazing support!! 😄"

BE

Bekir Khan

"offtopic but I think your makerkit is the best paid boilerplate out there. you should market it more during the drama lol"

KI

Kiara Bickers

"Honestly @makerkit_dev is great. More for B2B products but really clean and well documented."

AD

Aditya Tripathi

Climactic

"Amazing! @gc_psk has built a masterpiece with this one!"

IV

Ivor

"@vikaskookna @makerkit_dev is a really solid saas starter. Props to @gc_psk for always delivering great features and maintaining excellent documentation."

PR

Pranav Malvawala

"@gc_psk @DmytroKrasun @makerkit_dev Makerkit is honestly the best investment I made this year. It just keeps getting better and better"

KH

Khalil Najjar

Cohere AI

"@gc_psk @makerkit_dev Makerkit is a gem for makers, if I was not building a desktop app I would be using it for sure, maybe for my next project"

BL

Blake Rowley 👋🏽

"@gc_psk @makerkit_dev @supabase Oh mate! This is unreal. Legitimately unreal. Keep up the good work. Maybe consider a subscription for premium components. Will keep you motivated and more $ coming in."

WI

Will Mitchell

"I landed on MakerKit after getting into boilerplates with ShipFast. Much better."

NE

Neerav Vyas

"@gc_psk @makerkit_dev This is amazing, @gc_psk. Great job continuously adding new and useful features to the product 👏. Eager to know what comes next... Keeping my 👀 on it!"

DA

Dan Schoonmaker

"1000% recommend buying a good boilerplate (or making your own) I use @makerkit_dev it's so good I had an affiliate link, but I can't find it at the moment"

ME

Mehdi Nabhani

"Tried most of them, makerkit beats them all 🔥"

CA

Carl Chan

"For anyone who wants to build their own SaaS, I recommend trying out @makerkit_dev. Thanks to @gc_psk for creating such a fantastic tool that makes building websites a breeze! #SaaS #buildinpublic"

RO

Roye Segal

Artefact

"MakerKit gave us a huge starting advantage by providing auth, multi-tenancy, and all of the necessities to build a SaaS on top of a solid foundation."

RA

Rade Joksimovic

Rumora

"We loved the product since when Giancarlo released the first version, and are building upon it ever since for all of our products. Highly recommended for all indie makers out there."

UL

Uladzislau Rasliak

AppReply

"We chose MakerKit because it's simply the best SaaS boilerplate app out there, with active community and regular updates."

ST

Stefano Cantu

WiseOptIn

"Solid and battle tested boilerplate with an amazing community and support."

CA

Calvin Müller

CrewCue

"It seemed like the logical choice."

Testimonials Plugin

Choose your Better Auth stack: Drizzle or Prisma

Each license includes the Next.js and TanStack Start kits for that ORM. One-time purchase: lifetime license, continuous updates, unlimited projects of your own.

  • Lifetime access to your stack of choice
  • Build unlimited applications
  • Continuous updates
  • Access to the Discord community
  • The best support in the SaaS Starter kits market, period.
  • Community and Chat support
  • Community-based feature requests and Request for Comments. You have a say in what Makerkit should build next.
  • One-time payment, no subscriptions
  • Includes access to our free Figma UI kit

Choose your Stack

Select the technology stack that best fits your project

Pro
A B2B SaaS Starter Kit for individual developers.

$349/lifetime

  • Next.js 16 and Tanstack Start
  • Drizzle and Better Auth
  • Bring your own database
  • Unlimited Projects
  • Continuous updates
  • Lifetime license
  • Access to 1 user (only you)
  • Discord Support
Teams
A B2B SaaS Starter Kit for teams of developers or companies.

$649/lifetime

  • Next.js 16 and Tanstack Start
  • Drizzle and Better Auth
  • Bring your own database
  • Unlimited Projects
  • Continuous updates
  • Lifetime license
  • Access to 5 users
  • Discord Support
  • Private Discord Threads

Questions about licensing?

Read the MakerKit license terms and the MakerKit FAQ, or contact me.

What it is and who it is for

A Better Auth SaaS boilerplate: self-hosted authentication, with the SaaS already built around it

Better Auth handles identity. MakerKit adds the organizations, roles, billing, and admin that turn it into a product.

What is the MakerKit Better Auth SaaS Starter Kit?

The MakerKit Better Auth SaaS Starter Kit is the Drizzle or Prisma edition of MakerKit, available for Next.js 16 and TanStack Start. Better Auth runs inside your app and stores users, sessions, and organizations in your own Postgres. The kit adds organizations with invitations and custom roles, passkeys, MFA, Stripe or Polar billing, and a super admin with impersonation.

Best for

  • Teams that want users and sessions in their own database, with no per-user auth pricing
  • B2B SaaS that needs organizations and custom roles per customer
  • Developers who prefer Drizzle or Prisma on any Postgres host over a managed backend

Not for

  • Teams that want a vendor-hosted auth dashboard and prebuilt user management
  • Projects already committed to Supabase Auth and RLS; the Supabase kit fits better
  • Anyone who does not want to own auth security settings in production

Auth in your database

Users, sessions, and organizations live in your Postgres. No external auth service and no per-user pricing.

Organizations and custom roles

Better Auth's organization plugin with invitations, plus roles each organization defines from the UI.

Every sign-in method

Email and password, magic links, passkeys, OAuth, and TOTP MFA, with rate limiting and captcha plugins.

Stripe or Polar billing

Per-organization subscriptions with per-seat enforcement and metered usage.

Two frameworks, two ORMs

Next.js 16 or TanStack Start, with Drizzle or Prisma 7. Same features in every combination.

Built for AI coding agents

AGENTS.md and CLAUDE.md files at the root and in each package, rules for Claude Code, Cursor, Codex, and Gemini, and an MCP server your agent can call.

With and without MakerKit

Hosted auth that bills per active user
Self-hosted Better Auth with no per-user fees
Better Auth installed, organizations still unwired to billing
Organizations connected to roles, invitations, seats, and admin
Your user table held by a vendor
Your user table in your own Postgres
Roles hardcoded for every customer
Custom roles each organization manages

Better Auth SaaS Starter Kit FAQ

What is the Better Auth SaaS Starter Kit?

It is MakerKit's Drizzle and Prisma kits, which use Better Auth for authentication. Each is available for Next.js 16 and TanStack Start and ships email and password, magic links, passkeys, OAuth, TOTP MFA, organizations with invitations and roles, a super admin with user impersonation, and Stripe or Polar billing.

Why use Better Auth instead of Clerk or Auth0?

Ownership and cost. Better Auth runs inside your app and stores users, sessions, and organizations in your own Postgres, so there is no per-user auth pricing and no third party holding your user table. The trade-off is that you operate auth yourself: secrets, email verification, and rate limiting are configured by the kit, and keeping them on in production is your job.

How do organizations and roles work with Better Auth?

The kit configures Better Auth's organization plugin for teams, members, and invitations, and adds custom roles that each organization can define from the UI without code changes. Your code checks access through the kit's permissions API and custom authorization policies.

Drizzle or Prisma: which Better Auth kit should I buy?

Drizzle if you like queries that read like SQL and no generated client. Prisma 7 if your team already knows Prisma's schema language and client. Auth, organizations, billing, and admin are the same in both, and each is its own license, so pick the ORM you want to live with.

Can users sign up without creating an organization?

Yes. Account modes let you run personal accounts only (B2C), organizations only (B2B), or both (B2B2C), chosen in configuration.

Which databases and hosts does it support?

PostgreSQL from any provider: Neon, Supabase Postgres, Railway, or your own server. The deployment docs cover Docker and Railway, and because Better Auth runs in-process there is no separate auth service to deploy.

Is MakerKit a one-time purchase or a subscription?

A one-time purchase. You get a lifetime license to the source code, continuous updates for the stack you bought, and unlimited projects for your own business, with no renewal fee. Building products for clients requires a Team license, and each client that receives the code needs their own license.

What support is included?

Discord support from me, Giancarlo, the founder who works on MakerKit full-time, and from the community. I help with setup, kit-related issues, and questions about the codebase. Team licenses add a private Discord channel for your team.

Giancarlo
Ciao, my name is Giancarlo 👋 I'm Makerkit’s full-time builder.
I help founders launch faster - because life’s too short to write boilerplate code.

I am a software engineer with almost 15 years of experience writing code for both startups and enterprises.

My love for creating digital products inspired me to build Makerkit, a SaaS Starter Kit that helps you launch the SaaS you have always dreamed of.

My job is to help you achieve your goals, and I work hard to make it happen.

You can find me on Twitter, LinkedIn, and GitHub.

Own your auth. Skip the plumbing around it.

Better Auth, organizations, custom roles, and billing, already connected in your own Postgres. Pick Drizzle or Prisma above and start on the product instead of the auth wiring.