Skip to content
FLUXIS Labs_

// 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
Marketing landing for the SaaS shell.
Marketing landing for the SaaS shell.
Overview dashboard with MRR chart and KPI cards.
Overview dashboard with MRR chart and KPI cards.
GitHub Pages portfolio showcase.
GitHub Pages portfolio showcase.
Walkthrough section with product stills and video.
Walkthrough section with product stills and video.

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.jsTypeScriptSupabaseRLSRechartsPlaywright

Next project

Aura Workspace

Got an idea?

We reply within 24h. Tell us what you want to ship.

Start a conversation