Skip to content

Latest commit

 

History

History

multi-tenant-fleet

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Multi-Tenant Fleet — Multi-site / multi-tenant / agency fleet (class #9)

Catalog id: multi-tenant-fleet · Status: exists · Audience: developer Banner app for this class: none

Use this when (from catalog: useWhen)

  • an agency, franchise, or SaaS platform runs many separate client or location sites from a single deployment
  • each tenant has its own domain, theme, users, and content with strict query-layer data isolation
  • new tenant sites are provisioned from a template with super-admin vs. tenant-admin actors

Do not use this when (from catalog: doNotUseWhen)

  • a single site with many authors or departments — that is #6 (editorial-publication) or #11 (team-ops), not a multi-tenant fleet
  • embedding a CMS into one existing host application — that is #3, existing-app

What this starter proves

  • Seams: S4, S8
  • Matrix stress cells: Schema & Data, API/MCP, Canned Admin, UI Primitives, Rendering, Media, Search, Auth & Actors, Governance, Bespoke / Generated

Architecture snapshot

  • Auth & actors: tenant-scoped (super-admin + tenant-admin)
  • Rendering: themed public (per-tenant)
  • Tenancy: multi
  • Transports used: REST, typed client, MCP
  • Agent contracts used: none

Scope

In (from catalog: scopeIn)

  • two tenants sharing one instance with query-level tenant isolation
  • provisioning a third tenant from a template
  • super-admin vs. tenant-admin actor enforcement
  • S8 cross-tenant leak test suite across API, search, media, and MCP

Deliberately out (from catalog: scopeOut)

  • fleet billing or domain registrar console
  • cross-tenant analytics warehouse
  • self-serve SaaS onboarding portal

Requires (from catalog: requires)

  • database with query-layer tenant scoping
  • tenant-partitioned search and media
  • super-admin and tenant-admin actors

Run it

pnpm install
pnpm --filter starter-multi-tenant-fleet dev

Acceptance tests

Acceptance instance for seams: S4, S8.

pnpm --filter starter-multi-tenant-fleet test:starter

If you are building the full product

Start from this starter and compose any additional mode overlays (headless-api or admin-only) specified in starters/catalog.json. For full product patterns, see the reference banner apps in app/prm (#10) and app/base (#12).