SynapX®
All Case Studies

[ Education · Multi-Tenant SaaS ]

A School System, Unified

One login, six portals, and hundreds of schools trusting a single codebase.

View live platform

Full-stack · Architecture

My role

10 weeks to live

Timeline

6 role-based

Portals

252 RLS policies

Isolation

THE MISSION • OVERVIEW

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.

Production Verified Status
METRIC 01

0

Role-based portals

METRIC 02

0

RLS isolation policies

METRIC 03

0

Rotating QR attendance tokens

FRICTION • TO • SOLUTION

The Constraint Matrix

How structural bottlenecks were analyzed, decoupled, and replaced with resilient architecture.

Friction 01[ DIAGNOSED ]

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.

Friction 02[ DIAGNOSED ]

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.

Friction 03[ DIAGNOSED ]

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.

SYSTEM ARCHITECTURE

Dataflow & Topology Circuit

Validated Pipeline
INSPECTING TIER 01 • Clients

Next.js web, six role portals under one login

Enforced
Execution Layer

Edge Render / React 19

Security Guard

JWT Claims & Session Guards

Latency Profile

< 24ms (Edge Cache)

Engineered With:Next.jsPostgreSQLSupabaseZodHMAC-SHA256
MULTI-TENANT RBAC • ENTERPRISE MATRIX

6 Isolated Role Portals • Cryptographic RBAC

Zero Cross-Tenant Leakage
ROLE-BASED DOMAIN SPECIFICATION

School Admin Workspace

Institution configuration, teacher rosters, exam scheduling, and unified fee ledger.

Partitioning: Hardware-Isolated Master Tenant
Compliance: Zero Cross-Tenant Leakage Enforced
Security Policy & Scope Boundary
Enforced
Permission Scope:Full Institutional Domain Management
Session Signature:HMAC-SHA256 Signed // Root Scoped
Boundary State:Cryptographically Sealed
ATTENDANCE SUBSYSTEM

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.

Token Lifespan

90 Seconds Auto-Cycle

Anti-Cheat Guard

JTI Nonce Cooldown

Verification Speed

< 180ms Edge Check

Next token cycle in: 84s

HMAC-SHA256:7f89d3a41b2c

EXECUTION TIMELINE

The Engineering Sequence

01 / Discover

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.

02 / Design

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.

03 / Build

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.

04 / Ship

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.

VERIFIED OUTCOMES • PROOF

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.

CLIENT STATEMENT
Verified

“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

VISUAL ARTIFACTS

Interface Gallery

1 Frames
School System screen 1
FRAME 01