MentorSafe — Women Safety & Real-Time Emergency Assistance Network
An enterprise-grade, real-time emergency coordination platform engineered with React 19, Socket.IO, BullMQ, and MongoDB Atlas to provide instant distress escalation, live journey tracking, and verified responder networks.
The Challenge & Engineering Friction
The Technical Solution & Architecture
Core Architectural Decisions
Real-Time Telemetry & Asynchronous Job Architecture
Engineered a low-latency event-driven pipeline using Socket.IO clusters backed by Redis pub/sub and BullMQ job workers. Geolocation updates stream at 10-second intervals during active journeys, while background queues handle SMS/email emergency dispatch, delivery retry logic, and automated safety timer expirations without blocking API throughput.
Geospatial Indexing & Multi-Tier RBAC Security
Leveraged MongoDB 2dsphere geospatial indexes to calculate real-time proximity queries for verified responders and safe zones within millisecond SLAs. Enforced strict Role-Based Access Control (RBAC) validated via Zod schemas, secure JWT authentication with token rotation, and immutable audit logging for all critical emergency dispatches and administrative verifications.
Decoupled Cloud Infrastructure & Production-Grade Pipeline
Deployed on a modular cloud stack utilizing Vercel edge CDN for the React 19 SPA frontend and containerized Node.js/Express services on Render/AWS, interconnected with MongoDB Atlas and Redis Cloud. The pipeline features automated React Doctor static security audits, CORS whitelisting, and Helmet security headers adhering to enterprise defense-in-depth principles.
