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
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
Boardroom
Async standups and meeting notes for distributed teams who hate sync calls
Clockwise
PTO, time tracking, and timesheets without ten years of HRIS bloat
Cohort
Class and cohort booking for studios, gyms, schools, and recurring programs
Cohortly
A cohort-based course platform with live sessions and a real cohort backbone
Communityhouse
A branded community and forum platform that does not feel rented
Counterpoint
A POS and inventory app for brick-and-mortar shops with multiple locations
Coursebase
A self-paced LMS with paid courses, completion certificates, and your brand
Formworks
Branded forms with conditional logic and a real workflow engine behind them
Helm CRM
A pipeline-first CRM with email sync and team handoffs for SMB sales orgs
Helpbridge
A shared inbox and ticketing tool for support teams that hate ticketing tools
Ledgerline
Branded invoicing and recurring billing for service businesses
Listloft
A branded real-estate listings site with lead capture and CRM hand-off
Payroll Co
Small-business payroll with W-2, 1099, and direct deposit handled cleanly
Quizgrid
Assessments and proctored exams with auditable integrity for cert programs
Sendwave
Email marketing and drip campaigns with deliverability that does not collapse
Slotpage
Branded appointment booking with payments and a calendar that knows your team
Spendwise
Expense management and corporate-card reconciliation for finance teams
Surveysmith
Surveys, NPS, and product-feedback widgets in one branded toolkit
Tablebook
Restaurant reservations with table-aware capacity and waitlist on the host stand
Tasklane
A keyboard-first project tracker for engineering and product teams
Telehale
Telehealth video and scheduling with an e-prescribing pathway built in
Tenantdesk
A landlord and property-management portal for small portfolios
Wikistack
An internal wiki and knowledge base your team will actually keep current