Skip to content

SMTA — SaaS Multi-Tenant Architecture

Bootstrap a multi-tenant SaaS database in minutes.

SMTA is an open-source PostgreSQL multi-tenancy solution for SaaS applications.

It provides the tenant isolation, membership management, auditing, and billing integration that every SaaS application needs — so you can focus on building your product instead of reinventing infrastructure.

  • Tenant isolation via PostgreSQL Row-Level Security (RLS)
  • Org and unit hierarchy for flexible team structures
  • Soft deletion and no-code auditing at the database level
  • Adapter model — integrate with Supabase or Payload CMS authentication
  • Billing integration for Stripe and Lemon Squeezy
  • Plain SQL — no extensions, no magic, just PostgreSQL

Public RPC Reference

RPC Reference for accessing public.* functions.