// case study
PulseMetrics
Open-source SaaS analytics shell - real multi-tenant RLS, App Router, and a CI gate that actually runs.
- Client
- Fluxis Labs (portfolio demo)
- Role
- Product architecture and full-stack implementation
- Year
- 2026
- Status
- Open source
- Unit test suites
- 8
- Lint + Vitest + Playwright
- CI
- Multi-tenant Postgres
- RLS
- Open source
- MIT




Challenge
Most portfolio dashboards either fake data in memory or half-wire Stripe. We needed a believable MRR / churn / ARPU workspace that shows real multi-tenant architecture - without letting billing and OAuth eat the entire timeline.
Approach
Tenant isolation lives in Postgres RLS (`tenant_id = auth.uid()`), not scattered app checks. Next.js 16 App Router fetches metrics in Server Components; Recharts stays a client island. Mutations go through Zod-validated Server Actions. Mock auth is env-gated so Playwright CI runs without live credentials. Billing, shared ACL, and Google OAuth stay intentionally scoped showcase surfaces.
Results
Public MIT repo with a GitHub Pages showcase (walkthrough video + stills). Quality gate on every push: lint, typecheck, Vitest (8 unit suites), Playwright mock-auth e2e, and Lighthouse budgets. Demo path: signup / demo login → Overview KPIs → Analytics → Customers CRUD → metrics ingest.
Stack
Next project
Aura Workspace