SANT MATTIE
End-to-End School Operating System

// Summary
Complete school operating system replacing paper-based operations for a Tanzanian pre & primary school. Three production surfaces on a unified monorepo: a staff dashboard across 8 roles, a parent portal with 14 self-service pages, and the public school branding site.
// Architecture
Architected a three-layer RBAC model — role defaults, allowed-module scoping, and extra-permission overrides — enforced across 142 API routes with full audit logging. Built on better-auth with HTTPOnly/SameSite-strict sessions for staff and magic-link flows for parents. Engineered automated PDF report-card generation via Puppeteer, SMS broadcasts with CSV import and deduplication, and GPS-mapped bus routes using Leaflet + OSRM.
// Metrics
- ~500 students
- ~50 staff
- hundreds of parent accounts
- 176 test files
- 4-app monorepo
// Stack
- Next.js 14
- Hono
- PostgreSQL
- Drizzle ORM
- better-auth
- MinIO
- Turborepo
- Docker
// Links
Let's Connect
Project inquiry, FT role, or a technical question — drop a note. I reply within 24 hours on weekdays.