Multi-tenant SaaS,
without
the complexity.

Production-ready role hierarchy, domain routing, and data isolation. Ship your SaaS in days, not months.

Built with production-grade tools

Next.js 15TypeScriptPrismaTailwind CSSshadcn/uiStripe
[ features ]

Everything you need. Nothing you don't.

RBAC

4-Tier Role Hierarchy

Super Admin, Organization, Team Admin, Member. Each role sees only what they should.

Super Admin
Organization
Team Admin
Member
ROUTING

Domain-Based Routing

Each role gets their own portal on a dedicated domain.

Admin
:3000
Org
:3002
Team
:3003
Member
:3004
SECURITY

Per-Query Data Isolation

Every database query automatically filters by user role and scope.

AUTH

Enterprise Auth

OAuth, email verification, session management, mobile JWT.

BILLING

Stripe Billing

Subscriptions, usage-based billing, customer portal, webhooks.

i18n

i18n + Locale Routing

Full internationalization with locale-based URL routing built into the framework.

API

API Key Management

Generate, revoke, and manage API keys per user with automatic plan-based limits.

AUDIT

Audit Logging

Complete audit trail of every action. Track who did what, when, with full details.

ALERTS

Notification System

In-app notifications with types, read/unread status, and real-time bell dropdown.

LIMITS

Plan Enforcement

Automatic team, member, and API key limits enforced per subscription plan.

13Database models
4Role portals
< 2 minSetup time

Getting started is simple.

Three commands. Four live portals.

1

Clone

Clone the repo and install dependencies

2

Configure

Set your env vars and seed the database

3

Launch

Run one command, get 4 live portals

terminal
$ git clone tierforge my-saas
$ bun install && bun db:seed
$ bun dev:all
readySuper Adminlocalhost:3000
readyOrganizationlocalhost:3002
readyTeam Adminlocalhost:3003
readyMemberlocalhost:3004
< 2 min
Setup time
4
Live portals
11
DB models
0
Config needed
[ architecture ]

Hierarchical isolation. By design.

Every role tier runs on its own domain with automatically scoped database queries. A Team Admin can never see Organization data. A Member can never see Team Admin controls. The Super Admin is invisible to everyone below.

4
Role tiers
4
Separate portals
0
Data leakage risk
1
Auth call needed
Super AdminLevel 4
All data globally
DB SCOPE
No filters — full access
PORT
3000
OrganizationLevel 3
Own org + downstream
DB SCOPE
WHERE organizationId = ?
PORT
3002
Team AdminLevel 2
Own team only
DB SCOPE
WHERE teamId = ?
PORT
3003
MemberLevel 1
Personal data only
DB SCOPE
WHERE userId = ?
PORT
3004
each tier isolated by middleware + DB queries
[ time saved ]

Skip 3 months of boilerplate.

What takes most teams weeks to build is already done. Click any feature to preview.

Feature
Build yourself
TierForge
Multi-tenant role hierarchy
2-4 weeks
Built-in
Domain-based routing
1-2 weeks
Built-in
Per-query data isolation
1-2 weeks
Built-in
Auth + session management
2-3 weeks
Built-in
Stripe billing integration
1-2 weeks
Built-in
OAuth (Google, GitHub)
3-5 days
Built-in
Email verification
2-3 days
Built-in
Mobile JWT support
1 week
Built-in
i18n with locale routing
3-5 days
Built-in
Dashboard + sidebar + UI
1-2 weeks
Built-in
API key management
3-5 days
Built-in
Audit logging
3-5 days
Built-in
Notification system
3-5 days
Built-in
Plan enforcement
2-3 days
Built-in
Total
~4 months
Day 1
[ testimonials ]

Trusted by builders worldwide.

We had our multi-tenant SaaS running in production within 3 days. The role hierarchy and data isolation saved us at least 2 months of work.

MC
Marcus Chen
CTO, Payflow

The domain-based routing is brilliant. Each of our clients gets their own portal URL and it just works out of the box.

SL
Sarah Lindqvist
Founder, Teamly

Per-query data isolation is the feature I didn't know I needed. No more worrying about tenant data leaking. It's baked into every query.

JO
James Okafor
Lead Engineer, Stackbase

I went from idea to paying customers in under a week. Stripe billing, auth, roles — everything was already wired. Incredible value for $299.

PS
Priya Sharma
Solo Founder, InvoiceHQ

Clean code, proper TypeScript, sensible architecture. This is how I'd build it myself — except it would take me 3 months instead of 3 minutes.

DK
David Kim
Full-Stack Dev, Freelance

We evaluated 5 boilerplates. TierForge was the only one with real multi-tenancy — not just user roles, but actual domain isolation and scoped queries.

EV
Elena Voronova
VP Engineering, Crescendo

Simple pricing, no surprises.

One-time purchase. Full source code. No subscriptions.

Everything you need to launch
Starter
$199one-time
  • Full source code (Next.js 15 + TypeScript)
  • 4-tier role hierarchy + domain routing
  • Stripe billing integration
  • OAuth (Google, GitHub)
  • Email verification
  • Password reset + change flows
  • i18n (English + Chinese)
  • Dashboard + sidebar + all UI components
  • Notification system
  • Prisma + PostgreSQL schema
  • 6 months of updates
BEST VALUE
Starter + premium extras
Pro
$299one-time
  • Everything in Starter
  • Mobile JWT auth system
  • API key management
  • Audit log system
  • Zod input validation on all API routes
  • Advanced plan enforcement middleware
  • Email templates (verify, reset, invite, welcome)
  • External HTTP client (3rd party integrations)
  • Docker Compose for local dev
  • Claude Code plugin (AI-powered dev tooling)
  • Lifetime updates
  • Priority email support

Secure checkout via Gumroad. Instant access after purchase.

Everything you need to know.

Ready to launch?

Stop building infrastructure. Start building your product.

Get TierForgeFrom $199