In critical emergencies, delays in:
- bystander coordination
- triage assessment
- hospital discovery
- emergency communication
can cost lives.
Victims often suffer during the "golden hour" because emergency response systems are fragmented and uncoordinated.
FirstHand helps coordinate emergency response instantly using real-time workflows and AI-assisted decision support.
FirstHand is an AI-assisted emergency response coordination platform built for rapid accident response, triage, hospital routing, and emergency handoff in real time.
The platform enables:
- Real-time bystander coordination
- Guided emergency triage
- Intelligent hospital discovery
- Structured emergency handoff generation
- Emergency workflow simulation
- Simulated emergency trigger system
- Real-time workflow activation
- Crowd coordination system
- Role assignment:
- First Aid
- Medical Lead
- Crowd Control
- Guided emergency assessment
- Severity classification:
- Critical
- Serious
- Stable
- Nearby hospital recommendation
- Distance-based routing
- Drive-time estimation
- Capability filtering:
- ICU
- Trauma Care
- Surgery
- Blood Availability
- Structured emergency briefing
- Victim condition summary
- GPS location support
- Bystander role tracking
- FastAPI-powered backend
- Swagger/OpenAPI documentation
- WebSocket-based live updates
- Dark-themed emergency dashboard
- Responsive mobile-friendly design
- Real-time workflow visualization
- Simulate emergency incident
- Nearby bystanders join coordination mesh
- AI-assisted triage evaluates victim
- Severity level is generated
- Nearby hospitals are recommended
- Emergency handoff note is generated
- Hospital receives structured briefing
User / Bystander
β
React Frontend (Vite)
β
FastAPI Backend
β
Triage Engine
β
Hospital Recommendation System
β
Emergency Handoff Generator
β
Hospital Communication Flow
- React
- Vite
- CSS3
- Leaflet Maps
- FastAPI
- Python
- SQLite
- WebSockets
- Swagger/OpenAPI
- REST APIs
- Live WebSocket Updates
The platform dynamically routes incidents to nearby hospitals based on:
- distance
- severity
- trauma capability
- ICU availability
- surgery support
Includes IITM Institute Hospital integration for Chennai-based routing simulation.
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/trigger |
Trigger emergency |
| POST | /api/bystander/commit |
Commit bystander role |
| POST | /api/triage |
Emergency triage |
| GET | /api/hospitals |
Hospital discovery |
| POST | /api/handoff |
Generate handoff note |
| POST | /api/sms |
Emergency SMS |
| POST | /api/simulate |
Run simulation |
cd backend
pip install -r requirements.txt
py -3 -m uvicorn main:app --reload --port 8000cd frontend
npm install
npm run dev| Service | URL |
|---|---|
| Frontend | http://127.0.0.1:5173 |
| Backend API | http://127.0.0.1:8000 |
| Swagger Docs | http://127.0.0.1:8000/docs |
FirstHand-EmergencyResponse/
β
βββ backend/
β βββ main.py
β βββ db.py
β βββ hospitals.py
β βββ sms.py
β βββ triage.py
β βββ requirements.txt
β
βββ frontend/
β βββ src/
β βββ public/
β βββ package.json
β
βββ screenshots/
β
βββ .gitignore
βββ LICENSE
βββ README.md
FirstHand is designed to reduce emergency response delays during the critical golden hour after accidents.
By improving coordination between bystanders, hospitals, and emergency responders, the platform aims to save lives through faster and smarter emergency workflows.
- Real ambulance integration
- Live GPS tracking
- AI voice-assisted triage
- Government emergency integration
- Real-time hospital bed availability
- Multi-language emergency support
- Offline disaster response mode
- Mobile app deployment
- Modern dark-themed responsive UI
- Real-time emergency coordination
- Hospital capability filtering
- WebSocket-based live updates
- IIT Madras hospital integration
- Modular FastAPI backend
- Clean React frontend architecture
- Simulation-driven emergency workflow
MIT License






