All stacks

stack

Vertical SaaS Stack

Multi-tenant SaaS skeleton with role-based admin and clean per-tenant isolation

The Vertical SaaS Stack is the workhorse — most apps in the AppLiaison library run on it. It's a multi-tenant Next.js + Postgres skeleton with row-level-security tenant isolation, a clean role-based admin panel, audit logs on every state change, and the boring infrastructure (auth, billing, email, file uploads) that every B2B SaaS needs and that every founder otherwise spends a quarter rebuilding.

Architecture

Architecture variant: standard
Frontend
Next.js 14 (App Router)tRPC clientTailwind + headless primitives
Backend
Next.js Route HandlerstRPC serverPostgres 16 with row-level security
Data + infra
Vercel (web)Neon or Supabase (Postgres)Cloudflare R2 (uploads)
Integrations
Clerk or WorkOS (auth, SSO/SAML on higher tiers)Stripe Billing (per-seat or usage)PostHog (product analytics)Sentry (error monitoring)

When to choose this stack

  • You're building B2B SaaS for a defined vertical, not a marketplace
  • Customers will administer their own org (invite users, set roles, see audit logs)
  • SSO/SAML is a near-term enterprise requirement
  • The data model is multi-tenant from day one (tenants do not see each other's data)
  • A clean admin panel is part of the product, not a back-office afterthought

What's NOT included

  • Two-sided payouts — use the Marketplace Stack
  • Realtime collaborative editing (CRDTs, OT) — handled separately on a per-app basis
  • Mobile-first offline experience — use the Realtime or Field Workforce stacks
  • On-prem deployment (we offer it as a consulting add-on, not a stack default)

How the pieces fit

Every request carries a tenant context that is established at auth time. Postgres row-level security policies enforce isolation at the database layer, not at the application layer — even a buggy or compromised tRPC handler cannot accidentally leak rows across tenants.

The admin panel and the customer-facing app share the same routes and components but render different navigation and capabilities depending on the role claim. Audit logs are written by Postgres triggers, not by application code, so coverage is exhaustive even when a developer forgets to add the call.

Why these choices

Drizzle ORM over Prisma: the SQL transparency matters when row-level-security policies and triggers are part of the design. Drizzle makes the SQL reviewable; Prisma’s abstraction would hide the policies that matter most.

Clerk or WorkOS over building auth: SSO and SAML are an enterprise procurement gate. Off-the-shelf wins.

Postgres triggers for audit logs over application-level logging: the audit log is the contract with the customer; trusting application code to remember to log is a recipe for a missed event in year two.

Apps built on this stack

Affilipath

Affiliate and referral program platform with clean attribution and payouts

Marketing & community · Vertical SaaS Stack
service + license · 9d
$9k license $1.1k/mo

Boardroom

Async standups and meeting notes for distributed teams who hate sync calls

Productivity · Vertical SaaS Stack
service + license · 6d
$7k license $700/mo

Clockwise

PTO, time tracking, and timesheets without ten years of HRIS bloat

Productivity · Vertical SaaS Stack
service + license · 7d
$8k license $900/mo

Cohort

Class and cohort booking for studios, gyms, schools, and recurring programs

Booking & events · Vertical SaaS Stack
service + license · 11d
$10k license $1.1k/mo

Cohortly

A cohort-based course platform with live sessions and a real cohort backbone

Education & learning · Vertical SaaS Stack
service + license · 13d
$12k license $1.5k/mo

Communityhouse

A branded community and forum platform that does not feel rented

Marketing & community · Vertical SaaS Stack
service + license · 11d
$10k license $1.3k/mo

Counterpoint

A POS and inventory app for brick-and-mortar shops with multiple locations

Commerce & marketplaces · Vertical SaaS Stack
service + license · 16d
$16k license $2.2k/mo

Coursebase

A self-paced LMS with paid courses, completion certificates, and your brand

Education & learning · Vertical SaaS Stack
service + license · 14d
$14k license $1.7k/mo

Formworks

Branded forms with conditional logic and a real workflow engine behind them

Productivity · Vertical SaaS Stack
service + license · 10d
$10k license $1.2k/mo

Helm CRM

A pipeline-first CRM with email sync and team handoffs for SMB sales orgs

Productivity · Vertical SaaS Stack
service + license · 14d
$18k license $1.5k/mo

Helpbridge

A shared inbox and ticketing tool for support teams that hate ticketing tools

Productivity · Vertical SaaS Stack
service + license · 12d
$11k license $1.4k/mo

Ledgerline

Branded invoicing and recurring billing for service businesses

Fintech & money · Vertical SaaS Stack
service + license · 9d
$9.5k license $1.2k/mo

Listloft

A branded real-estate listings site with lead capture and CRM hand-off

Real estate & property · Vertical SaaS Stack
service + license · 11d
$11k license $1.4k/mo

Payroll Co

Small-business payroll with W-2, 1099, and direct deposit handled cleanly

Fintech & money · Vertical SaaS Stack
service + license · 18d
$18k license $2.4k/mo

Quizgrid

Assessments and proctored exams with auditable integrity for cert programs

Education & learning · Vertical SaaS Stack
service + license · 18d
$17k license $2.4k/mo

Sendwave

Email marketing and drip campaigns with deliverability that does not collapse

Marketing & community · Vertical SaaS Stack
service + license · 12d
$11k license $1.4k/mo

Slotpage

Branded appointment booking with payments and a calendar that knows your team

Booking & events · Vertical SaaS Stack
service + license · 9d
$9k license $1.1k/mo

Spendwise

Expense management and corporate-card reconciliation for finance teams

Fintech & money · Vertical SaaS Stack
service + license · 14d
$14.5k license $1.9k/mo

Surveysmith

Surveys, NPS, and product-feedback widgets in one branded toolkit

Marketing & community · Vertical SaaS Stack
service + license · 8d
$7k license $900/mo

Tablebook

Restaurant reservations with table-aware capacity and waitlist on the host stand

Booking & events · Vertical SaaS Stack
service + license · 11d
$11k license $1.3k/mo

Tasklane

A keyboard-first project tracker for engineering and product teams

Productivity · Vertical SaaS Stack
service + license · 14d
$14k license $1.8k/mo

Telehale

Telehealth video and scheduling with an e-prescribing pathway built in

Health & wellness · Vertical SaaS Stack
service + license · 22d
$21k license $3.2k/mo

Tenantdesk

A landlord and property-management portal for small portfolios

Real estate & property · Vertical SaaS Stack
service + license · 13d
$13k license $1.6k/mo

Wikistack

An internal wiki and knowledge base your team will actually keep current

Productivity · Vertical SaaS Stack
service + license · 12d
$12k license $1.5k/mo