Subscribe
20 May, 2026 13 min read Aigars Silkalns

13 Best Next.js SaaS Templates & Boilerplates 2026 (Free + Premium)

Looking for a Next.js SaaS template that gets you from “git clone” to “first paid user” in days, not months? These 13 picks span the full spectrum — premium $200-600 boilerplates with multi-tenancy, RBAC, and Stripe billing pre-wired (Makerkit, ShipFast, Supastarter), and free open-source starters with 7-30k GitHub stars (nextjs/saas-starter, T3 Stack, ixartz). Every demo and repo verified May 2026.

A 2026-grade Next.js SaaS template ships six load-bearing surfaces out of the box: an authentication system with social logins + MFA + magic links, Stripe (or Lemon Squeezy / Polar) subscription billing with customer portal, multi-tenant organizations with team management and role-based access, a marketing site with pricing page, a user dashboard skeleton, and a database layer with type-safe ORM. Authentication alone takes 40-60 hours to implement properly with social logins, MFA, and session management. Add Stripe billing, email infrastructure, and an admin dashboard, and you’re looking at 3-6 months of setup before you’ve written a line of actual product code.

We’ve grouped the 13 picks below into premium Next.js SaaS boilerplates (Makerkit, Supastarter, ShipFast, Achromatic, Solid, Shipped) and free / open-source starters (nextjs/saas-starter, T3 Stack, ixartz Next-js Boilerplate, ixartz SaaS-Boilerplate, BoxyHQ, saasfly, next-saas-stripe-starter). All thirteen ship on the App Router — every major Next.js SaaS template released or updated in 2026 has moved off the legacy Pages Router.

Related reading: Next.js admin dashboard templates, Next.js shadcn admin dashboards, SaaS admin dashboard templates, and SaaS landing page templates roundups.

Quick Picks

  • Best premium overall: Makerkit — strongest multi-tenancy, $299-599 lifetime, three tech stack options (Supabase / Drizzle / Prisma)
  • Best free overall: nextjs/saas-starter — 15.8k stars, official Next.js team starter with Postgres + Drizzle + Stripe + shadcn/ui
  • Best for solo indie hackers: ShipFast — $199-299 lifetime, 8,300+ makers, “launch this weekend” framing
  • Best type-safe foundation: T3 Stack — 28.9k stars, CLI-driven scaffolding, Next.js + tRPC + Prisma/Drizzle + Auth.js
  • Best for production B2B: Supastarter — €349-1,499, App Router native with seat-based billing, 1,369+ developers
  • Best developer experience: ixartz Next-js Boilerplate — 12.9k stars, Next.js 16 + Tailwind 4 + Clerk + Sentry, every modern tool wired in
  • Best for AI SaaS: Achromatic — $180 one-time, built-in AI chatbot with streaming, credits system for usage-based billing
  • Best Clerk + Drizzle stack: ixartz SaaS-Boilerplate — 7.1k stars, Clerk auth + DrizzleORM + i18n + multi-tenancy, has free and premium tiers
  • Best budget premium: Solid — from $59 lifetime, Next.js 16 + NextAuth + Sanity CMS, free open-source base also available
  • Best AI-multi-provider: Shipped — $157-307, OpenAI + Anthropic + Gemini integrations, Lemon Squeezy or Stripe
  • Best for enterprise SaaS: BoxyHQ SaaS Starter Kit — 4.8k stars, SAML SSO + SCIM directory sync + audit logs, Apache 2.0
  • Best modern monorepo: Saasfly — 2.9k stars, Turborepo + tRPC + Kysely + Bun, the cleanest type-safe monorepo template
  • Best Auth.js + Prisma starter: next-saas-stripe-starter — 3k stars, Auth.js v5 + Prisma + Stripe + Neon, clean reference implementation

1. Makerkit

Makerkit Next.js SaaS starter kit — multi-tenancy, RBAC, Stripe billing, three tech stack options
Next.js 16 + TypeScript + Tailwind v4 + shadcn/ui + Supabase / Drizzle / Prisma
$299 (Pro) / $599 (Teams up to 5 devs), lifetime
Best for: Multi-tenant B2B SaaS with team RBAC

Why we like it: Battle-tested since 2022 with hundreds of SaaS products in production. Best multi-tenancy story in the category — organizations with multiple members and role-based access inside each org work out of the box. Three database choices (Supabase all-in-one, Drizzle + Better Auth, or Prisma) means you pick the stack you’ll actually maintain. Full Stripe subscription billing with customer portal, super admin dashboard, blog / docs / changelog CMS, and a Figma UI Kit included.

Editor’s Pick — The strongest premium pick for B2B SaaS where multi-tenancy isn’t optional. Makerkit’s organizations + invitations + RBAC model is what every other template tries to copy. Pair the AI agent optimization (MCP Server, Cursor + Claude Code-friendly) with the strict TypeScript baseline and you have a codebase that scales from solo founder to engineering team without rewrites.

The Teams tier ($599 lifetime, up to 5 collaborators) is the cheapest way to license a battle-tested B2B SaaS template for a startup founding team. Compare against Supastarter (below) — Makerkit is the better choice when shadcn/ui and Tailwind v4 polish matters more than European data hosting flexibility.

2. nextjs/saas-starter

nextjs/saas-starter — official Next.js SaaS template with Postgres, Drizzle, Stripe, and shadcn/ui
Next.js + TypeScript + Postgres + Drizzle + Stripe + shadcn/ui
Free (MIT) — 15.8k+ GitHub stars, 2.6k+ forks
Best for: Official-quality reference implementation

Why we like it: Maintained under the official nextjs/ GitHub organization — this replaced the older vercel/nextjs-subscription-payments repo (now archived) as the canonical Next.js SaaS reference. Postgres + Drizzle ORM + Stripe Checkout + JWT cookie auth + shadcn/ui marketing landing with animated Terminal element, dashboard with user/team management, role-based access (Owner / Member), and activity logging. Deliberately minimal — the README explicitly points to “paid versions in the community” for more comprehensive features.

Editor’s Pick — The free pick that pretty much every paid Next.js SaaS boilerplate gets compared to. 15.8k stars and 2.6k forks because it’s the cleanest reference implementation available. Fork it, deploy in 10 minutes, and you have a working SaaS skeleton with real Stripe billing. The minimalism is the point — you add only what your product needs, rather than fighting features you don’t.

Best starting point if you want to actually understand your stack rather than treat a paid boilerplate as a black box. Deploy to Vercel in one click, swap out the marketing copy, and you’re shipping. If you need multi-tenancy or RBAC beyond Owner/Member, look at Makerkit (above) or ixartz/SaaS-Boilerplate (below).

3. ShipFast

ShipFast Next.js boilerplate by Marc Lou — launch a SaaS in days, used by 8300+ makers
Next.js + JavaScript or TypeScript + Tailwind + MongoDB / Supabase + Stripe / Lemon Squeezy
$199 Starter / $249 All-In / $299 Bundle (with CodeFast course)
Best for: Solo indie hackers shipping in a weekend

Why we like it: The boilerplate that defined the “launch this weekend” indie SaaS genre. 8,300+ makers, lifetime updates, and $1,210 in partner discounts included with every purchase. Pre-built for payments (Stripe / Lemon Squeezy), email (Mailgun / Resend), auth (Google OAuth + Magic Links), database (MongoDB or Supabase), animations, SEO, and blog functionality. Both /app and /pages router supported. JavaScript or TypeScript at your choice.

Marc Lou’s “Maker of the Year 2023” Product Hunt award and the public revenue dashboards from ShipFast users are the marketing — and they work because the boilerplate genuinely strips weeks off the launch timeline. Best when you value shipping speed over architectural elegance. If MongoDB feels wrong to you, sister product Shipped (further down) offers Postgres + Prisma with similar framing.

4. T3 Stack (create-t3-app)

T3 Stack create-t3-app — interactive CLI for Next.js, tRPC, Tailwind, TypeScript, Prisma, NextAuth
Next.js + tRPC + Tailwind + TypeScript + Prisma / Drizzle + NextAuth.js
Free (MIT) — 28.9k+ GitHub stars
Best for: Type-safe SaaS foundation you build on

Why we like it: Interactive CLI (npm create t3-app@latest) that scaffolds a full-stack, type-safe Next.js application with your stack picks. Each technology component (tRPC, Tailwind, NextAuth, Prisma vs Drizzle) is optional — you opt into what you actually need. The T3 Stack philosophy: solve specific problems, bleed responsibly with emerging tech, enforce type-safety everywhere.

Caveat the README is explicit about: T3 is “NOT an all-inclusive template” — it’s a scaffolding layer that gives you the type-safe foundation, then expects you to add SaaS-specific features (Stripe, multi-tenancy, RBAC) yourself. Pick T3 when you want to understand your full stack and customize every layer. Pick a paid boilerplate above when you want subscription billing pre-wired.

5. Supastarter

Supastarter — production-ready Next.js SaaS boilerplate with Better Auth, Prisma, Hono.js, multi-provider payments
Next.js + Better Auth + Prisma / Drizzle + Hono.js + Tailwind + TanStack Query
€349 Solo / €799 Startup / €1,499 Agency, one-time
Best for: Production B2B SaaS with European pricing

Why we like it: Fully built on the App Router with server components, server actions, and streaming. Authentication via Better Auth (password, passkeys, magic links, 2FA, OAuth, roles & permissions), payments across multiple providers (Stripe, Lemon Squeezy, Polar), multi-tenancy with seat-based billing, Hono.js type-safe backend, S3-compatible storage, and a superadmin dashboard. Trusted by 1,369+ developers including teams at Vercel and Prisma.

Available for Next.js, Nuxt, and TanStack Start — useful if your team spans frameworks. The Agency tier (€1,499, up to 10 dev seats, white-label potential) is one of the only boilerplate licenses that explicitly allows reselling to clients. Optional 60-minute architecture consulting at €149 is a nice touch for first-time SaaS founders.

6. ixartz Next-js-Boilerplate

ixartz Next-js-Boilerplate — Next.js 16, Tailwind 4, Clerk, Drizzle, Sentry, Storybook, Playwright
Next.js 16 + TypeScript + Tailwind CSS 4 + DrizzleORM + Clerk + Sentry + Storybook
Free (MIT) — 12.9k+ GitHub stars, 2.4k+ forks
Best for: Developer-experience-first frontend

Why we like it: “Developer experience first” boilerplate with every tool you’d add yourself already wired in: Vitest + Playwright + Testing Library for tests, Oxlint + Oxfmt + ESLint + Prettier for code quality, Storybook for component dev, Clerk for auth, Sentry for monitoring, Arcjet for bot protection, Crowdin for i18n, and PGlite for local dev / Neon for production. App Router + Page Router both supported.

Note this is the frontend-focused ixartz boilerplate — not the same as ixartz/SaaS-Boilerplate (below), which builds on it with multi-tenancy and Stripe. Pick Next-js-Boilerplate when you want pristine tooling and will add SaaS-specific layers yourself. Pick SaaS-Boilerplate (below) when you want billing + organizations pre-wired.

7. Achromatic

Achromatic Next.js SaaS starter with AI chatbot, credits system, and tRPC + Better Auth
Next.js + TypeScript + Tailwind + Radix UI + tRPC + Better Auth + Prisma / Drizzle + Vercel AI SDK
$180 one-time, unlimited projects + lifetime updates
Best for: AI-powered SaaS with credits

Why we like it: Built-in AI chatbot with streaming via the Vercel AI SDK, credits system for usage-based billing, and an admin panel for user / subscription management. Multi-tenancy with organizations, invitations, marketing pages, and file storage via S3 / R2. Claims to save 220+ hours of development and explicitly markets itself as “40-70% more affordable than comparable Next.js starter kits.”

At $180 it undercuts Makerkit ($299), Supastarter (€349), and ShipFast ($199) while including AI chatbot scaffolding that none of them have built in. Best when “AI SaaS with metered usage” matches your product spec. Trusted by 750+ developers — younger than the other premium picks but actively maintained and explicitly no-vendor-lock-in (you own the code).

8. ixartz SaaS-Boilerplate

ixartz SaaS-Boilerplate — multi-tenant Next.js SaaS with Clerk, DrizzleORM, Stripe, i18n via Crowdin
Next.js + TypeScript + Tailwind + shadcn/ui + Clerk + DrizzleORM + Stripe
Free core + Pro/Max tiers — 7.1k+ GitHub stars, 1.3k+ forks
Best for: Clerk + Drizzle + multi-tenant stack

Why we like it: Free version covers core features (Next.js 14 + React 18 + Clerk auth + multi-tenancy with organizations, role-based access, MFA, passwordless via magic links, user impersonation). Pro tier adds Next.js 16 + React 19 + dark mode + Stripe integration. Max tier swaps Clerk for self-hosted Better Auth, adds transactional emails and Bun support. Live demo at react-saas.com.

Best free entry into a fully multi-tenant SaaS template — most free options stop at single-tenant or Owner/Member RBAC. The tiered upgrade path (free → Pro → Max) means you can validate your idea on the free version, then pay only if/when the business case is there.

9. Solid (Next.js Templates)

Solid Next.js SaaS boilerplate — Next.js 16, NextAuth, Sanity CMS, Stripe, Algolia search, free and premium tiers
Next.js 16 + TypeScript + Tailwind + NextAuth + Sanity CMS + Stripe + Algolia
Free base / $59 Starter / $169 Business / $499 Extended (unlimited projects)
Best for: Budget-conscious premium with free option

Why we like it: The cheapest path to a polished premium Next.js SaaS boilerplate ($59 Starter for one project, $169 Business for four). Multi-factor auth with password reset, social login, and magic links via NextAuth. Sanity CMS for blog management with webhook integration. Algolia search baked in, SMTP transactional emails and MailChimp newsletter support. Dark mode and pre-built SaaS pages (pricing, docs, auth flows).

The free open-source base version is genuinely usable — Next.js pages, static elements, and the core SaaS layout — making this a low-risk entry point. Pay only when you need the premium features (full auth flows, dashboards, Stripe). Best when budget matters more than the latest shadcn/ui patterns.

10. Shipped

Shipped Next.js SaaS boilerplate — Postgres + Prisma + Stripe / Lemon Squeezy + OpenAI + Anthropic + Gemini
Next.js + TypeScript + ChakraUI + Tailwind + shadcn/ui + NextAuth / Supabase + Lemon Squeezy / Stripe + Prisma
$157/year or $257 one-time (Boilerplate) / $307 (with Chrome Extension)
Best for: AI SaaS with multi-LLM support

Why we like it: The Postgres + Prisma counterpart to ShipFast’s MongoDB-first approach. AI integrations pre-wired for OpenAI, Anthropic, Gemini, and other providers — the broadest LLM coverage in any premium template. Payments via Lemon Squeezy or Stripe (subscriptions + one-time), email via MailChimp or Loops, and the optional Chrome extension boilerplate add-on for products that ship both web and browser-extension surfaces.

Built by Luca after launching multiple SaaS products. 330+ indie founders, 30,000+ Twitter followers. Pick this over ShipFast when you want Postgres over MongoDB, or over Achromatic when you need multiple LLM providers rather than a single Vercel AI SDK chatbot.

11. BoxyHQ SaaS Starter Kit

BoxyHQ SaaS Starter Kit — enterprise Next.js SaaS with SAML SSO, SCIM directory sync, audit logs
Next.js + TypeScript + Tailwind + Prisma + Postgres + NextAuth + SAML Jackson + Svix
Free (Apache 2.0) — 4.8k+ GitHub stars, 1.2k+ forks
Best for: Enterprise SaaS with SSO requirements

Why we like it: The only free Next.js SaaS template that ships SAML SSO + Directory Sync (SCIM) + audit logging out of the box — the enterprise checklist that every B2B SaaS hits when their first $50k/year customer asks. SAML Jackson handles SSO, Svix orchestrates webhooks, Retraced powers audit logs. Team management, role-based access, MFA via email + magic links + GitHub/Google OAuth all included.

Apache 2.0 license + the enterprise-grade auth/audit stack means BoxyHQ is the template of choice when you’re targeting mid-market and enterprise from day one rather than retrofitting compliance later. Deployment-ready for Docker, Vercel, Heroku, and DigitalOcean. Comes with Prisma Studio for database visualization and Playwright E2E tests.

12. Saasfly

Saasfly Next.js SaaS boilerplate — Turborepo, tRPC, Kysely, Bun, Clerk, Stripe, Resend
Next.js + React 19 + TypeScript + Tailwind + Clerk + Stripe + Resend + Postgres + tRPC + Kysely + Bun + Turbo
Free (MIT) — 2.9k+ GitHub stars, 414+ forks
Best for: Modern type-safe monorepo

Why we like it: The cleanest monorepo template in the category — Turborepo for build orchestration, tRPC for type-safe APIs, Kysely for SQL query building, and Bun as the package manager. Clerk handles auth, Stripe handles billing, Resend handles transactional email. App Directory throughout. Internationalization, SEO, and an admin dashboard (alpha) included.

Stable v1.0 released June 2025 by Nextify Ltd. — they offer enterprise support and free technical assistance to non-profit organizations. Best pick when you’re starting from scratch and want the cleanest possible monorepo foundation, or when you anticipate splitting frontend / backend / shared packages early in the codebase’s life.

13. next-saas-stripe-starter

next-saas-stripe-starter by mickasmt — Next.js 14, Auth.js, Prisma, Stripe, Resend, Neon Postgres, shadcn/ui
Next.js 14 + TypeScript + Auth.js v5 + Prisma + Stripe + Resend + Neon + shadcn/ui + Framer Motion
Free (MIT) — 3k+ GitHub stars, 618+ forks
Best for: Clean Auth.js + Prisma + Stripe reference

Why we like it: Open-source SaaS Starter with User Roles & Admin Panel — Auth.js v5 for authentication, Prisma for the ORM, Stripe for subscriptions, Resend for transactional email, Neon for serverless Postgres. shadcn/ui components and Framer Motion for animations. Server Actions throughout, role-based access (User / Admin), and a pricing table that wires to Stripe Checkout out of the box.

Built by @miickasmt in 2023, inspired by projects from shadcn, Steven Tey, and Antonio Erdeljac. The Auth.js v5 + Prisma + Stripe stack is the one most tutorials reference, which makes this a strong learning template if you’ve followed Auth.js docs and want a working complete example. One-line install: npx create-next-app my-saas-project --example "https://github.com/mickasmt/next-saas-stripe-starter".

How to Choose a Next.js SaaS Template

The right pick depends on what your SaaS needs from day one:

  • Solo founder shipping fast? ShipFast — battle-tested for the indie SaaS launch playbook, 8,300+ makers can’t all be wrong.
  • B2B SaaS with team accounts and RBAC? Makerkit or Supastarter — both ship organizations + invitations + seat-based billing as first-class concepts.
  • Want to actually understand your stack? nextjs/saas-starter (free) or T3 Stack — clean, minimal, no magic.
  • Building AI-powered SaaS? Achromatic (single-provider, credits) or Shipped (multi-provider with OpenAI + Anthropic + Gemini).
  • Selling to enterprise from day one? BoxyHQ — the only free option with SAML SSO, SCIM directory sync, and audit logs.
  • On a tight budget? Solid ($59) for a polished premium, or any of the free open-source options.
  • Already on Clerk + Drizzle? ixartz/SaaS-Boilerplate (free / Pro / Max) — purpose-built for that stack.
  • Want a monorepo from day one? Saasfly — cleanest Turborepo + tRPC + Bun setup available.
  • Need European pricing or EU data residency? Supastarter — Euro-denominated, EU-friendly, white-label license available.

Next.js SaaS Templates FAQ

Should I pay $200-600 for a SaaS boilerplate or start from a free template?

Pay for a boilerplate if your time is worth more than $50/hour and you’ll save more than 6-10 hours of setup work — Stripe webhooks, multi-tenancy, RBAC, and email templates each take a full day to wire up properly, and a $300 Makerkit license pays for itself before lunch on day one. Start from a free template (nextjs/saas-starter, T3 Stack) when you’re learning the stack, when your product doesn’t yet need multi-tenancy, or when you want to fully understand every line you ship.

What’s the difference between a SaaS boilerplate and a starter template?

A starter template (nextjs/saas-starter, T3 Stack, next-saas-stripe-starter) gives you the foundation — auth, basic billing, one user model. A SaaS boilerplate (Makerkit, ShipFast, Supastarter) adds the production-grade features every B2B SaaS needs: multi-tenant organizations, team invitations, role-based access control, super admin dashboards, customer portals, blogs, docs, transactional email templates. The labels are used loosely in marketing — read the feature list, not the noun.

App Router or Pages Router for a new SaaS in 2026?

App Router. Every major Next.js SaaS template released or updated in 2026 uses App Router exclusively or as the default — over 85% of options. React Server Components, server actions, and streaming are first-class only in the App Router. The Pages Router still works but is increasingly the “legacy” path. The only templates on this list that still support Pages Router as an option (ShipFast, ixartz Next-js Boilerplate) do so for backward compatibility, not as the recommended path.

Which auth provider should I pick — Clerk, NextAuth/Auth.js, or Better Auth?

Clerk (used by Makerkit, ixartz, Saasfly): fastest setup, generous free tier, but ties you to a SaaS auth provider. NextAuth / Auth.js (next-saas-stripe-starter, BoxyHQ, Solid): self-hosted, free, mature, the most-deployed option. Better Auth (Supastarter, Achromatic, Makerkit Max tier): newest of the three, fully self-hosted, designed for SaaS. For B2B with SSO requirements, BoxyHQ’s SAML Jackson + NextAuth combo is unmatched. For solo / indie, Clerk is the fastest path.

Stripe or Lemon Squeezy for SaaS billing?

Stripe if you want maximum flexibility, lowest fees on volume, and direct merchant-of-record control. Lemon Squeezy if you want a merchant-of-record that handles global sales tax / VAT automatically — major win for solo founders selling worldwide without setting up tax registrations. Polar.sh is a newer third option (used by Supastarter and Open SaaS) that combines low fees with merchant-of-record functionality. ShipFast and Shipped support both Stripe and Lemon Squeezy; most others default to Stripe.

How long does it actually take to launch with one of these?

Realistic timelines from “git clone” to “first paying customer”: 2-5 days with a premium boilerplate (Makerkit, ShipFast, Supastarter) — most of that is writing your product copy and building one core feature. 1-3 weeks with a free template (nextjs/saas-starter, T3 Stack) — you’ll add multi-tenancy or RBAC manually if needed. 4-8 weeks starting from a frontend-only boilerplate (ixartz Next-js Boilerplate) — the SaaS layer is on you. The $200-600 difference between free and premium typically pays back in week one.

Are these templates licensed for commercial use?

Yes. The free options are MIT or Apache 2.0 — commercial use including SaaS resale is explicitly permitted. The premium options (Makerkit, ShipFast, Supastarter, Achromatic, Solid, Shipped) all license for unlimited commercial projects on their lifetime tiers. The one nuance: Supastarter’s Agency tier (€1,499) is the only license that explicitly permits white-labeling the template itself for clients. Most others permit using the template in client projects, just not reselling the boilerplate.

What about Open SaaS / Wasp — is it competitive with these?

Open SaaS (wasp-lang/open-saas) has 13.1k stars and is the most-popular free open-source SaaS template — but it’s built on the Wasp full-stack framework, not Next.js directly. If you’re committed to Next.js + the App Router, Open SaaS isn’t a drop-in option. If you’re open to alternative frameworks, it’s worth comparing against the free Next.js options here — it ships with Stripe + Polar.sh, auth across email/Google/GitHub/Slack/Microsoft, background jobs, and AI-ready scaffolding with a Claude Code plugin.

For broader Next.js template categories beyond SaaS, see our roundups of Next.js admin dashboard templates, Next.js shadcn admin dashboards, SaaS admin dashboard templates, and SaaS landing page templates.