Real-time crisis coordination platform that automates emergency triage, resource allocation, and multi-agency response.
Features Β· Architecture Β· Setup
During natural disasters and emergencies, coordination between agencies is chaotic, resource allocation is manual, and response times suffer. CivGuard AI uses artificial intelligence to:
- Automate triage β prioritize incoming emergency reports by severity
- Optimize resources β recommend allocation based on availability and proximity
- Coordinate response β real-time dashboard for multi-agency visibility
- Reduce response time β AI-driven decision support eliminates human bottlenecks
| Feature | Description |
|---|---|
| π Live Dashboard | Real-time emergency status, resource tracking, and incident map |
| π¨ Incident Reporting | Citizens report emergencies with location, type, and severity |
| π€ AI Triage | Automated severity classification and priority assignment |
| π₯ Resource Allocation | AI recommendations for deploying ambulances, fire units, police |
| π₯ Multi-Agency View | Shared situational awareness across fire, medical, police teams |
| π Role-Based Access | Login/Register with role-specific dashboards |
| π Analytics | Historical incident data, response time trends, and heatmaps |
| π Real-time Updates | Supabase Realtime for live incident status changes |
Frontend: React 18 + TypeScript + Vite
State: TanStack Query v5 (server state) + React Context (auth)
Styling: Tailwind CSS + Radix UI + shadcn/ui components
Backend: Supabase (Auth, PostgreSQL, Realtime, Edge Functions)
Charts: Recharts for analytics
Forms: React Hook Form + Zod validation
Routing: React Router DOM v6
Deployment: Vercel / Netlify
src/
βββ pages/
β βββ Index.tsx # Landing page
β βββ Dashboard.tsx # Main emergency dashboard
β βββ Login.tsx # Authentication
β βββ Register.tsx # New user registration
β βββ ReportIssue.tsx # Citizen incident report form
β βββ NotFound.tsx # 404 handler
βββ components/
β βββ ui/ # shadcn/ui design system
β βββ layout/ # Page layouts, navigation
β βββ ProtectedRoute.tsx # Auth guard
βββ contexts/ # Auth state management
βββ hooks/ # Custom React hooks
βββ integrations/ # Supabase client & API layer
βββ lib/ # Utility functions
git clone https://github.com/mudassiralladatkhan/civguard-ai-response.git
cd civguard-ai-response
# Install dependencies
npm install
# Configure environment
# Add VITE_SUPABASE_URL and VITE_SUPABASE_ANON_KEY to .env
# Run development server
npm run devIncident Reported β Severity Classification (AI)
βββ Critical β Immediate dispatch + multi-agency alert
βββ High β Priority queue + resource check
βββ Medium β Standard queue + nearest unit
βββ Low β Logged + advisory response
Resource Allocation:
Available Units Γ Proximity Γ Severity Γ Specialization = Optimal Assignment
- Natural disasters β flood, earthquake, cyclone response coordination
- Urban emergencies β fire, medical, law enforcement dispatch
- Event safety β large gathering monitoring and incident response
- Training simulations β tabletop exercises for emergency responders
Built with π¨ by Mudassir Alladatkhan
Faster response. Smarter allocation. Lives saved.