[ Education · Multi-Tenant SaaS ]
A School System, Unified
One login, six portals, and hundreds of schools trusting a single codebase.
View live platformFull-stack · Architecture
My role
10 weeks to live
Timeline
6 role-based
Portals
252 RLS policies
Isolation
Engineered for operational precision, not slideware.
A school management platform serving multiple institutions from one codebase, with strict per-school data isolation enforced by 252 row-level security policies across 68 database tables. Six portals, platform, admin, teacher, student, parent, and library, live behind a single login, with QR-based attendance, exam marks, library circulation, payments, and ticketing handled tenant by tenant.
0
Role-based portals
0
RLS isolation policies
0
Rotating QR attendance tokens
The Constraint Matrix
How structural bottlenecks were analyzed, decoupled, and replaced with resilient architecture.
No shared identity
Every tool had its own login and its own copy of the truth, so nothing reconciled and onboarding a school meant weeks of bespoke setup.
SynapX Move
A single Supabase project where every school is a tenant, with 252 row-level security policies keeping tenant_id isolation at the database layer, every write is a Zod-validated server action.
Tenant leakage risk
A shared database was a non-starter while student data could leak between schools — isolation had to be absolute, at the database layer.
SynapX Move
Six role-specific portals, platform, admin, teacher, student, parent, library, routed by RBAC claims embedded directly in the session JWT.
Adoption friction
Teachers had to want it. If training took weeks, the platform would fail no matter how well it was engineered.
SynapX Move
A dual-token QR attendance system: printed 365-day identity cards plus 90-second rotating on-screen tokens, HMAC-signed with a JTI replay guard, a 30s scan cooldown, and geofencing tied to the school.
Dataflow & Topology Circuit
Next.js web, six role portals under one login
Edge Render / React 19
JWT Claims & Session Guards
< 24ms (Edge Cache)
6 Isolated Role Portals • Cryptographic RBAC
School Admin Workspace
Institution configuration, teacher rosters, exam scheduling, and unified fee ledger.
90-Second Rotating QR Engine • Zero Proxy Replay
Combines physical 365-day student smart ID cards with high-security rotating dynamic on-screen tokens. Every scan is HMAC-verified against the school geofence with a 30s replay cooldown.
90 Seconds Auto-Cycle
JTI Nonce Cooldown
< 180ms Edge Check
HMAC-SHA256:7f89d3a41b2c
The Engineering Sequence
Map the school
Shadowed three institutions to trace where attendance, marks, billing, and library data actually lived — and where tenant boundaries had to be absolute.
One tenant model
Designed a shared schema where every school is a tenant and 252 row-level security policies make isolation a database guarantee, not an application promise.
Six portals, one login
Shipped six role-specific portals behind a single login, with QR attendance, exams, library, payments, and ticketing wired tenant by tenant.
Live in days, not weeks
Delivered a rollout path that takes a new school live in days — real institutions running on a single, auditable codebase.
Adoption in 48 hours
Six role-based portals under one login. Teacher adoption went from weeks to two days, and per-school data isolation is enforced at the database layer.
Teacher and staff adoption collapsed from weeks to two days.
Every release ships with auditable per-tenant isolation, 252 RLS policies enforced at the database layer, not by application luck.
The platform now runs real institutions in production, not demonstrations.
“The architecture unified operations across all institution tiers into a single cohesive system — attendance, gradebooks, library, and payments running on isolated multi-tenant schemas.”
Architecture Lead
System Evaluation
Interface Gallery
