Instant. Coordinated. Life-saving.
A real-time crisis detection, reporting, and coordination platform for hospitality venues (hotels, malls, banquet halls, event spaces).
Submission for Google Solution Challenge 2026
- Inspiration & Problem Statement
- The Solution: What it Does
- Impact & UN SDGs
- Target Audience & Key Features
- Tech Stack
- Architecture & Workflow
- Installation & Setup
- Demo Flow (For Judges)
- Screenshots
- Future Roadmap
In large hospitality venues like hotels, malls, and banquet halls, seconds matter during an emergency. Traditional response protocols often suffer from:
- Delayed Reporting: Guests struggle to find who to call or where to report an incident.
- Location Confusion: Even when reported, pinpointing the exact location (e.g., "Hallway B, 3rd Floor") takes critical time.
- Uncoordinated Staff Response: Staff rely on walkie-talkies or scattered communication, leading to duplicated efforts or missed areas.
- Lack of Protocol Knowledge: During panic, staff and guests may forget standard operating procedures.
We needed a system with zero human delay that connects the person in danger directly to the response team while instantly providing AI-driven, protocol-specific instructions.
CrisisCommand is a mobile-first Progressive Web Application (PWA) designed to instantly bridge the gap between guests, venue staff, and administrators during emergencies.
- For Guests: A frictionless, anonymous panic button that auto-captures their location and alerts all staff within seconds.
- For Staff: A real-time dashboard plotting active incidents on a venue map, powered by AI that generates immediate, crisis-specific action plans (e.g., Fire, Flood, Medical).
- For Admins: A bird's-eye view of response times, incident hotspots, and overall venue safety metrics.
CrisisCommand aligns directly with the United Nations Sustainable Development Goals:
- SDG 3 (Good Health and Well-Being): By reducing emergency response times for medical crises or stampedes, the platform actively saves lives and minimizes injuries.
- SDG 11 (Sustainable Cities and Communities): Enhances the resilience and safety of public spaces, ensuring that large gatherings and urban hospitality venues are secure environments for everyone.
- Frictionless SOS UI: A large, intuitive panic button. No login or app download required.
- Location Auto-Capture: Silently pinpoints exact geolocation and optionally captures room/floor details.
- 5 Supported Crisis Types: Fire ๐ฅ, Flood ๐, Earthquake ๐, Medical ๐ฅ, Stampede ๐จ.
- Reassurance Timer: Displays an AI-estimated response time to keep the guest calm.
- Real-Time Alert Feed: Incidents appear with zero human delay (< 2 seconds via Firebase Realtime Database).
- Venue Map Integration: Google Maps plots active incidents with color-coded pins based on severity and crisis type.
- AI-Generated Action Plans: Google Gemini 1.5 Flash instantly generates specific response protocols (e.g., "Cut off gas lines", "Evacuate Zone B") tailored to the crisis type and Indian emergency protocols.
- One-Click Acknowledgement: Staff can instantly claim an incident, letting others know help is on the way.
- Analytics Dashboard: Visualizes total incidents, average response times, and active crises using Recharts.
- Post-Incident Analysis: Helps identify high-risk zones and evaluate staff performance.
We leveraged Google's powerful ecosystem to build a fast, scalable, and intelligent platform.
- Google Gemini API (1.5 Flash): Acts as our "AI Emergency Coordinator." When an incident is reported, Gemini instantly generates specific
immediateActions,staffInstructions, andguestInstructions. - Firebase Firestore: NoSQL cloud database for storing incident reports and staff data.
- Firebase Realtime Database: Powers the ultra-low latency (< 2s) alert feed for staff.
- Firebase Authentication: Secures staff and admin dashboards (Anonymous auth for guests).
- Google Maps JavaScript API: Provides the interactive venue map and spatial awareness for staff to pinpoint emergencies.
- Next.js 14 (App Router): Fast, React-based framework for server-side rendering and API routes.
- TypeScript: Ensures strict type safety across the entire codebase.
- Tailwind CSS: For rapid, responsive, and accessible UI styling.
- Zustand: Lightweight global state management.
- Trigger: Guest presses SOS button and selects crisis type.
- Capture: Browser Geolocation API captures coordinates.
- Write: Next.js client writes incident to Firestore.
- Broadcast: Firebase Realtime Database pushes update to all active Staff dashboards instantly.
- Analyze: Next.js API route triggers Google Gemini API with incident details.
- Enrich: Gemini returns structured JSON protocols, updating the Firestore document.
- Action: Staff acknowledges the incident on the dashboard, updates status, and follows AI instructions.
Follow these steps to run the project locally.
- Node.js 18+
- npm or yarn or pnpm
- A Firebase Project
- A Google Cloud Project (with Gemini & Maps APIs enabled)
git clone https://github.com/yourusername/crisis-command.git
cd crisis-commandnpm installCreate a .env.local file in the root directory and add the following keys:
# Firebase Configuration
NEXT_PUBLIC_FIREBASE_API_KEY=your_api_key
NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=your_project_id.firebaseapp.com
NEXT_PUBLIC_FIREBASE_PROJECT_ID=your_project_id
NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET=your_project_id.appspot.com
NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=your_sender_id
NEXT_PUBLIC_FIREBASE_APP_ID=your_app_id
NEXT_PUBLIC_FIREBASE_DATABASE_URL=https://your_project_id.firebaseio.com
# Google APIs
NEXT_PUBLIC_GEMINI_API_KEY=your_gemini_api_key
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY=your_google_maps_api_key
# Staff/Admin Authentication
NEXT_PUBLIC_STAFF_PIN=1234npm run devOpen http://localhost:3000 with your browser to see the result.
(Optional) To populate the database with demo data:
npx ts-node scripts/seed.tsTo evaluate the core functionality of CrisisCommand:
- Role Selection: Navigate to
/to see the Role Selection screen. - Guest View (Mobile Simulation):
- Click "Guest" (ideally view in mobile responsive mode).
- Press the pulsing SOS button.
- Select Fire. The app will capture your location and submit the report.
- Staff Dashboard (Real-time Sync):
- In a separate tab, open
/and select Staff (PIN: 1234). - Observe the new Fire incident appear in the feed in under 2 seconds.
- Click on the incident to view the map pin.
- In a separate tab, open
- AI Generation:
- Watch the AI Response Panel populate with specific instructions generated by Gemini 1.5 Flash.
- Action:
- Click Acknowledge and see the status change across the network.
- Admin View:
- Open
/adminto view live charts (Recharts) aggregating incident data.
- Open
Here is a visual overview of the CrisisCommand platform:
- IoT Integration: Connecting physical smoke detectors and panic buttons directly to the platform.
- Offline-First Capabilities: Enhancing PWA features so incidents can queue via Bluetooth mesh networks if internet fails (crucial for earthquakes).
- Multilingual Support: Auto-translating AI instructions into the guest's native language.
- Predictive Analytics: Using historical data to predict structural vulnerabilities or medical emergency hotspots.
Mohd Altamish
- LinkedIn: Mohd Altamish
- GitHub: Mohd Altamish







