How thushara-bajimar/avinya-2026 works
AVINYA connects an unregistered bystander’s emergency alert to nearby verified responders, then coordinates acceptance, location, status, first-aid guidance, and ambulance arrival. The frontend also supports responder registration and administrative verification. The README documents matching, proximity/ETA, radius expansion, and ambulance assistance; those backend details are shown as documented relationships because the server excerpt is incomplete. Source excerpts confirm selected UI composition, SQLite use, and Socket.IO client events, but do not expose all server routes or dispatch internals.
Main entry points: AlertSentScreen.jsx Alert monitoring · index.js HTTP and event server · EmergencyFlow.jsx Alert workflow · App.jsx Application shell
Components 16
Emergency client
- Application shell
src/App.jsx - Alert workflow
src/components/EmergencyFlow.jsx - Alert monitoring
src/components/AlertSentScreen.jsx - Emergency details
src/components/EmergencyAlertForm.jsx - Location map
src/components/EmergencyMap.jsx - First-aid guidance
src/lib/firstAidGuidance.js - Emergency time
src/lib/emergencyTime.js - Live event client
src/lib/socket.js
Response coordination
- Responder dashboard
src/components/ResponderDashboard.jsx - Matching and dispatch
README.md - HTTP and event server
server/index.js
Responder trust
- Admin verification
src/components/AdminVerification.jsx - Responder registration
src/components/ResponderRegistration.jsx
Persistence
- SQLite records
server/db.js
Other components
- Bystander
- Emergency services
Connections 24
- Bystander → Application shell: opens platform
README.md - Application shell → Alert workflow: renders alert flow
src/App.jsx - Alert workflow → Emergency details: uses details form
- Alert workflow → Alert monitoring: renders sent alert
src/components/EmergencyFlow.jsx - Alert workflow → Location map: renders map
src/components/EmergencyFlow.jsx - Alert monitoring → Location map: renders map
src/components/AlertSentScreen.jsx - Alert monitoring → First-aid guidance: loads guidance
src/components/AlertSentScreen.jsx - Alert monitoring → Emergency time: formats times
src/components/AlertSentScreen.jsx - Alert monitoring → Live event client: joins live events
src/components/AlertSentScreen.jsx - Alert workflow → HTTP and event server: submits emergency
- HTTP and event server → SQLite records: reads and writes
server/index.js - HTTP and event server → Matching and dispatch: matches and dispatches
README.md - Matching and dispatch → Responder dashboard: alerts responders
README.md - Responder dashboard → Location map: renders locations
src/components/ResponderDashboard.jsx - Responder dashboard → Live event client: joins responder events
src/components/ResponderDashboard.jsx - Responder dashboard → Emergency time: formats times
src/components/ResponderDashboard.jsx - Application shell → Responder registration: renders registration
src/App.jsx - Application shell → Admin verification: renders verification
src/App.jsx - Responder registration → HTTP and event server: registers responder
- Admin verification → HTTP and event server: verifies responder
- Alert monitoring → HTTP and event server: requests guidance and updates
- HTTP and event server → Live event client: sends live updates
- Bystander → Emergency services: calls for help
README.md - Alert monitoring → Emergency services: reports ambulance arrival