Back to works

Toolkit Workspace — Multi-tenant Team SaaS

A production multi-tenant project workspace: organizations, memberships, invitations, projects, tasks, comments and append-only audit events. Next.js + Fastify + Prisma in a pnpm/Turborepo monorepo, with forced PostgreSQL RLS and a two-role (migration vs application) database model that deliberately rejects superuser connections.

Full-StackSaaSMulti-tenant

Key Results

01

Public two-organization collaboration acceptance passed on the 2026-10-21 release

02

Forced RLS and composite foreign keys; application role verified non-superuser

03

Full quality gates: lint, typecheck, integration tests, e2e and bundle-size budget

04

Bilingual EN/ZH UI with operator runbooks and an executed-vs-pending verification ledger

Tech Stack

Next.jsFastifyTypeScriptPostgreSQLPrismaTurborepo

Gallery

Toolkit Workspace — Multi-tenant Team SaaS 1