How bragee7/z_new_voice_model-04-10-26- works
Women Safety Guardian handles emergency alerts and police case response, with web administration and an Android app. The documented user flow is voice or button SOS, location and media capture, alert submission, then police review, notes, and resolution. The web client also provides login, case management, maps, profiles, contacts, and administrative reporting. Source excerpts show web routing and server route registration; mobile implementation details and many client-to-API calls are not sampled, so those relationships rely on README documentation.
Main entry points: App.jsx Web app routing · sos.js SOS case API · admin.js Admin API · index.js API server
Components 27
Web client
- Web app routing
client/src/App.jsx - Session and login
client/src/context/AuthContext.jsx - Police case views
client/src/pages/PoliceDashboard.jsx - Case details
client/src/pages/CaseDetails.jsx - Profile management
client/src/pages/Profile.jsx - Maps and sharing
client/src/components/MapView.jsx
Emergency response
- Web SOS button
client/src/components/FloatingSosButton.jsx - Android safety app
mobile/android - Power-press guard
mobile/android/app/src/main/kotlin/com/zelda/zelda_guardian/PowerGuardService.kt - Power-press detection
mobile/android/app/src/main/kotlin/com/zelda/zelda_guardian/PowerPressReceiver.kt - SOS case API
server/routes/sos.js - Contacts API
server/routes/contacts.js - Voice preferences API
server/routes/preferences.js - Station lookup
server/services/policeStationService.js
Administration
- Admin reporting
client/src/pages/AdminDashboard.jsx - Admin case management
client/src/pages/AdminCases.jsx - Admin user management
client/src/pages/AdminUsers.jsx - Audit log views
client/src/pages/AdminAuditLog.jsx - Admin API
server/routes/admin.js
Backend platform
- API server
server/index.js - Authentication API
server/routes/auth.js - JWT authorization
server/middleware/auth.js - PostgreSQL store
server/db.js - Runtime configuration
server/config/index.js
Other components
- Users
- Police staff
- OpenStreetMap Overpass
Connections 40
- Web app routing → Session and login: provides session
client/src/App.jsx - Web app routing → Police case views: routes to
client/src/App.jsx - Web app routing → Case details: routes to
client/src/App.jsx - Web app routing → Profile management: routes to
client/src/App.jsx - Web app routing → Web SOS button: renders
client/src/App.jsx - Users → Android safety app: triggers SOS
README.md - Users → Web SOS button: triggers SOS
README.md - Android safety app → Power-press guard: runs guard
mobile/android/app/src/main/kotlin/com/zelda/zelda_guardian/PowerGuardService.kt - Power-press guard → Power-press detection: registers receiver
mobile/android/app/src/main/kotlin/com/zelda/zelda_guardian/PowerGuardService.kt - Power-press detection → SOS case API: submits alert
- Android safety app → SOS case API: submits SOS
README.md - Web SOS button → SOS case API: submits alert
README.md - SOS case API → PostgreSQL store: stores cases
- SOS case API → Station lookup: looks up station
- Station lookup → OpenStreetMap Overpass: queries stations
server/services/policeStationService.js - Police staff → Police case views: reviews cases
README.md - Police case views → SOS case API: fetches cases
README.md - Police staff → Case details: updates cases
README.md - Case details → SOS case API: reads and updates
README.md - Case details → Maps and sharing: shows locations
README.md - Android safety app → Contacts API: manages contacts
README.md - Android safety app → Voice preferences API: syncs phrases
README.md - Web app routing → Admin reporting: routes to
client/src/App.jsx - Web app routing → Admin case management: routes to
client/src/App.jsx - Web app routing → Admin user management: routes to
client/src/App.jsx - Web app routing → Audit log views: routes to
client/src/App.jsx - Admin reporting → Admin API: requests statistics
README.md - Admin case management → Admin API: manages cases
README.md - Admin user management → Admin API: manages users
- Audit log views → Admin API: reads audit data
README.md - API server → Authentication API: mounts routes
server/index.js - API server → SOS case API: mounts routes
server/index.js - API server → Contacts API: mounts routes
server/index.js - API server → Admin API: mounts routes
server/index.js - API server → Voice preferences API: mounts routes
server/index.js - Authentication API → PostgreSQL store: reads and writes
- Authentication API → JWT authorization: uses authorization
- Admin API → PostgreSQL store: queries records
server/routes/admin.js - Admin API → JWT authorization: checks access
server/routes/admin.js - API server → Runtime configuration: loads settings
server/index.js