An AI-powered mobile application that provides real-time emergency assistance using Sarvam AI, live location, weather, nearby emergency services, and contextual first-aid guidance.
AI Emergency Companion helps users respond quickly during emergencies by analyzing natural language descriptions, providing AI-generated first-aid instructions, finding nearby emergency services, and enabling SOS actions.
Example:
"My friend has burned his hand with hot oil."
The AI understands the situation, determines its severity, provides first-aid guidance, and recommends nearby hospitals and emergency contacts.
- ๐ค AI-powered emergency analysis using Sarvam AI
- ๐ฉน Step-by-step first-aid instructions
โ ๏ธ Emergency severity assessment- ๐ Live location detection
- ๐ฅ Nearby Hospitals
- ๐ Nearby Pharmacies
- ๐ฎ Nearby Police Stations
- ๐ Nearby Fire Stations
- ๐บ Google Maps navigation
- ๐ค Real-time Weather
- ๐ซ Air Quality Index (AQI)
- ๐ Active Disaster Monitoring
- ๐ฌ Chat-based AI interface
- ๐ Offline emergency knowledge
- ๐จ Long-press SOS button
- ๐ Share live location with emergency contacts
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Mobile App โ
โ React Native + Expo โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโ
โ โ
Online Mode Offline Mode
โ โ
โผ โผ
Node.js + Express API SQLite Database
โ โ
โโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโ โ
โ โ โ โ
โผ โผ โผ โผ
RAG Search
Redis Cache Sarvam AI API External APIs Local Knowledge Base
โ โ โ โ
โ โ โโโโโโโโโผโโโโโโโโโ โ
โ โ โ โ โ โ
โผ โผ โผ โผ โผ โผ
Conversation AI Emergency Weather AQI Nearby RAG Search
Cache Analysis API API Services (SQLite)
โ
โผ
AI Response Generator
โ
โผ
Stream Response to Mobile
- React Native
- Expo
- TypeScript
- Expo Router
- NativeWind (Tailwind CSS)
- React Native Reanimated
- Node.js
- Express.js
- TypeScript
- Redis
- Sarvam AI
- OpenStreetMap
- Open-Meteo
- NASA EONET
- OpenWeather
- Air Quality API
AI-Emergency-Companion
โ
โโโ backend
โ โโโ src
โ โโโ knowledge
โ โโโ scripts
โ โโโ package.json
โ โโโ tsconfig.json
โ
โโโ mobile
โ โโโ app
โ โโโ components
โ โโโ services
โ โโโ hooks
โ โโโ database
โ โโโ offline
โ โโโ assets
โ โโโ package.json
โ
โโโ README.md
git clone https://github.com/sonucodes40/AI-Emergency-Companion.git
cd AI-Emergency-Companioncd backend
npm installCreate .env
OPENAI_API_KEY=YOUR_KEY
SARVAM_API_KEY=YOUR_KEY
OPENWEATHER_API_KEY=YOUR_KEY
GOOGLE_API_KEY=YOUR_KEYStart backend
npm run devcd mobile
npm install
npx expo start- User describes an emergency.
- Mobile app sends the message to the backend.
- Backend gathers:
- Location
- Weather
- AQI
- Nearby emergency services
- Disaster information
- Sarvam AI analyzes the emergency.
- AI returns:
- Severity
- First-aid guidance
- Safety precautions
- Nearby emergency services
- User can navigate to nearby services or trigger SOS.
# ๐ฎ Future Scope
- Voice-based emergency assistant
- Offline AI support
- Wearable device integration
- Emergency contact notifications
- Medical record integration
- Multi-language support
---
# ๐จโ๐ป Team
**Team Name:** OUTLIERS
### Sonu Kumar
Backend โข AI Integration โข React Native
---
# ๐ License
This project is licensed under the MIT License.
---
# ๐ Acknowledgements
- Sarvam AI
- Expo
- React Native
- OpenStreetMap
- NASA EONET
- Open-Meteo
- Redis