◇
FootPal FC — Multi-Crew Soccer Coordination PWA
2026-06 · Present
Recurring pickup soccer — RSVPs, team drafting, cost splitting, ratings · Next.js 15 · TypeScript · PostgreSQL · Prisma · footpalfc.amiribrahim3000.com
• Architected multi-tenancy with crew-scoped data isolation enforced through application-layer access guards, across a 27-model PostgreSQL schema and 109 endpoints in 81 route files, serving three active crews.
• Built session authentication from scratch (no auth library): the database stores only SHA-256 hashes of session tokens, with per-device sessions and a three-tier resolution path that migrates legacy credentials on read without logging anyone out.
• Guaranteed man-of-the-match awards fire exactly once under concurrent triggers — a conditional update guarded on a null timestamp and keyed off the affected-row count, so the final vote and the fallback cron can't both crown a winner.
• Cut game-page load from ~3.3s to ~1.1s by batching 8 sequential database reads into a single parallel fetch and deferring stats computation off first paint, then added three indexes after EXPLAIN revealed sequential scans.
• Computed DST-accurate kickoff times via Intl.DateTimeFormat rather than pulling in a date library, keeping game state transitions and reminders correct across time changes.
• Hand-wrote a service worker giving users a branded offline page instead of a browser error, scoped to exclude page and API caching so rosters and costs are never shown stale.
• Built the player rating engine and cost-splitting system as pure, unit-tested modules — ratings scale relative to each crew's best player, and debts net down to one balance per player pair (175 tests, 15 suites).
• Instrumented the app with Sentry, routing every event through a single PII-scrubbing chokepoint so user data never reaches the error tracker.
◇
Satellite Operations Services Optimizer (Capstone)
Canadian Space Agency
2024-09 · 2025-04
React · REST APIs
• Built the React dashboard visualizing satellite telemetry and orbital pass schedules for Canadian Space Agency stakeholders, and authored the system documentation and design trade-off analysis.