CrisisHub is a Campus Rapid Crisis & SOS Coordination Hub designed for fast emergency reporting and response in educational institutions.
Built for a "Build with AI" hackathon, this project is tailored for Adi Shankara Institute and leverages Google Gemini AI to act as an intelligent emergency dispatcher.
During emergencies, students often panic and fail to communicate clearly.
CrisisHub solves this problem by:
- Accepting raw input (text, voice, images)
- Using AI to classify the situation instantly
- Providing immediate safety instructions
- Generating a tactical brief for responders
- Framework: Next.js 16 (App Router)
- Styling: Tailwind CSS v4 + Custom CSS (Glassmorphism, Dark Mode)
- AI Integration: Gemini 1.5 Flash (
@google/genai) - Icons: Lucide React
- Deployment: Vercel-ready
CrisisHub has two main interfaces:
Mobile-first design for high-stress situations.
- Large animated SOS button
- Clean, distraction-free UI
- Quick crisis buttons (๐ฅ Fire, ๐ฅ Medical, ๐จ Intruder)
- ๐ค Voice input
- ๐ท Image upload
- ๐ Location selector (campus-based)
-
Data sent to
/api/crisis-eval -
Gemini processes:
- Description
- Location
- Image (if available)
-
Returns structured output:
- Threat level (Low → Critical)
- Incident type
- Severity score
- Required responders
- If AI fails → local keyword-based logic handles classification
- Displays:
- Help ETA
- AI-generated safety steps
- Option to share emergency report
Desktop-first command center for security teams.
- Real-time alert polling
- Visual + sound alerts for new incidents
- Total active alerts
- Critical/High alerts
- Affected locations summary
- Filter by severity
- Search by keywords
Each alert includes:
- Clear situation summary
- Suggested actions
- Required response units
-
Responders can:
- Accept alert
- Add ETA
- Send message to student
-
Alerts marked as Responded with timestamp
- Uses
localStoragefor simulated real-time updates - Lightweight solution (no heavy database)
- Ideal for hackathon/demo environments
- โก Instant AI-powered crisis classification
- ๐ง Multimodal input (Text, Voice, Image)
- ๐ Real-time safety instructions
- ๐ก Live responder dashboard
- ๐ AI fallback system
- ๐ Campus-specific location mapping
git clone https://github.com/Athul64/CrisisHub.git
cd CrisisHub
npm install
npm run dev




