Skip to content

divyaa404/collapsealert-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚨 CollapseAlert: AI-Powered Disaster Prevention & Rescue Coordination Platform

CollapseAlert is a full-stack smart disaster management platform designed to improve emergency response, citizen safety, and rescue coordination during disasters such as building collapses, floods, fires, and structural emergencies.

The platform provides a centralized system where citizens can report emergencies, authorities can monitor incidents in real time, and rescue teams can coordinate actions efficiently. By combining AI assistance, live dashboards, Firebase cloud services, and real-time complaint management, CollapseAlert transforms fragmented emergency communication into a unified disaster response ecosystem.


🌍 Problem Statement

During disasters and structural emergencies, citizens often face:

  • ❌ Delayed rescue coordination
  • ❌ Lack of centralized emergency reporting
  • ❌ Poor communication between citizens and authorities
  • ❌ No real-time monitoring system
  • ❌ Unorganized rescue management
  • ❌ Lack of preventive complaint systems for unsafe buildings

This results in:

  • Increased casualties
  • Delayed emergency response
  • Panic and misinformation
  • Poor disaster preparedness

πŸ’‘ Solution

CollapseAlert solves these issues using:

  • 🏒 Building Safety Complaint System
  • 🚨 Real-Time Emergency Reporting
  • 🧠 AI-Powered Chat Assistant
  • πŸ“Š Live Control Center Dashboard
  • πŸ—ΊοΈ Interactive Disaster Monitoring Map
  • πŸ‘₯ Citizen & Admin Management System
  • πŸ”₯ Prevention + Rescue Coordination Workflow
  • ☁️ Firebase Real-Time Cloud Infrastructure

πŸ—οΈ System Architecture

πŸ”· High-Level Flow

Citizen Complaint / SOS Alert ↓ Firebase Real-Time Database ↓ Admin Control Center Dashboard ↓ Emergency Monitoring & Verification ↓ AI Assistance + Activity Tracking ↓ Rescue Coordination & Citizen Updates


πŸ‘₯ User Roles

πŸ‘€ Citizen Panel

Features available for citizens:

  • Emergency reporting
  • Unsafe building complaint registration
  • AI emergency assistant
  • Live emergency updates
  • Emergency contact access
  • User profile management

πŸ›‘οΈ Admin / Control Center

Features available for authorities:

  • Monitor live incidents
  • Manage complaints
  • Track rescue activities
  • View emergency statistics
  • Coordinate disaster response
  • Analyze citizen reports

πŸ€– AI Integration

CollapseAlert includes an AI-powered assistant system using Groq API integration.

Features

  • 🧠 Disaster guidance assistance
  • πŸ’¬ Real-time emergency interaction
  • ⚑ Fast AI response system
  • πŸ“Œ Context-based help and support
  • 🌍 Future-ready multilingual support

πŸ“± Core Features

🚨 Emergency Reporting System

Citizens can instantly report:

  • Building collapses
  • Fire incidents
  • Flood situations
  • Structural hazards
  • Emergency SOS requests

🏒 Building Registration & Complaint System

Users can:

  • Register unsafe buildings
  • Submit structural complaints
  • Upload emergency details
  • Help authorities identify danger zones

πŸ“Š Live Dashboard

Real-time monitoring dashboard showing:

  • Active complaints
  • Rescue activities
  • Emergency statistics
  • Incident tracking

πŸ—ΊοΈ Disaster Monitoring Map

Interactive map system for:

  • Emergency location tracking
  • Incident visualization
  • Rescue coordination

πŸ“ž Emergency Contacts

Quick access to:

  • Ambulance services
  • Fire brigade
  • Police
  • Disaster management authorities

βš™οΈ Tech Stack

Frontend

  • React
  • TypeScript
  • Vite
  • CSS

Backend & Cloud

  • Firebase Authentication
  • Firebase Firestore
  • Firebase Hosting

AI Integration

  • Groq API

Development Tools

  • ESLint
  • npm
  • Git & GitHub

πŸ“‚ Project Structure

CollapseAlert/
β”‚
β”œβ”€β”€ public/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ ActivityFeed.tsx
β”‚   β”‚   β”œβ”€β”€ BuildingRegister.tsx
β”‚   β”‚   β”œβ”€β”€ ChatAssistant.tsx
β”‚   β”‚   β”œβ”€β”€ ComplaintSection.tsx
β”‚   β”‚   β”œβ”€β”€ ControlCenterDashboard.tsx
β”‚   β”‚   β”œβ”€β”€ Dashboard.tsx
β”‚   β”‚   β”œβ”€β”€ EmergencyContacts.tsx
β”‚   β”‚   β”œβ”€β”€ Login.tsx
β”‚   β”‚   β”œβ”€β”€ Map.tsx
β”‚   β”‚   β”œβ”€β”€ Profile.tsx
β”‚   β”‚   β”œβ”€β”€ Signup.tsx
β”‚   β”‚   └── StatsBanner.tsx
β”‚   β”‚
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ authService.ts
β”‚   β”‚   β”œβ”€β”€ dataService.ts
β”‚   β”‚   β”œβ”€β”€ groqService.ts
β”‚   β”‚   └── userService.ts
β”‚   β”‚
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   └── firebase.ts
β”‚   β”‚
β”‚   β”œβ”€β”€ App.tsx
β”‚   └── main.tsx
β”‚
β”œβ”€β”€ package.json
└── vite.config.ts

πŸ”₯ Completed Features

Frontend

βœ… Responsive UI βœ… Citizen Dashboard βœ… Admin Control Center βœ… AI Chat Assistant βœ… Emergency Complaint System βœ… Interactive Map βœ… Login & Signup Authentication


Firebase Integration

βœ… Authentication βœ… Firestore Database βœ… Real-Time Data Management


AI Features

βœ… Groq AI Integration βœ… Emergency Assistance Chat


🚧 Future Scope

Feature Priority
πŸ“‘ Real-time SOS Alerts High
πŸ“± Mobile Application High
🌍 Multilingual Support Medium
πŸ›°οΈ AI-based Disaster Prediction Medium
🚁 Rescue Team Live Tracking Medium
πŸ”” Push Notifications Medium
☁️ Cloud Deployment High
πŸ“Š Advanced Analytics Dashboard Low

πŸ“š Academic Relevance

Subjects Connected

Software Engineering

  • Modular architecture
  • SDLC implementation
  • Component-based design

Project Management

  • Task planning
  • Workflow management
  • System coordination

Design Thinking

  • Human-centered disaster solution
  • Citizen-focused interface

Database Management System

  • Firebase Firestore integration
  • Real-time cloud database

Agentic AI

  • AI assistant integration
  • Smart emergency support

🌍 SDG Alignment

SDG Goal Implementation
SDG 11 Sustainable Cities & Communities Disaster preparedness and urban safety
SDG 13 Climate Action Emergency response system
SDG 9 Industry, Innovation & Infrastructure Smart disaster-tech platform

πŸš€ Key Innovations

  • 🚨 Centralized emergency reporting platform
  • 🧠 AI-powered disaster assistance
  • 🏒 Prevention + rescue combined workflow
  • πŸ“Š Real-time disaster monitoring dashboard
  • ☁️ Cloud-based architecture
  • πŸ—ΊοΈ Interactive emergency mapping system
  • πŸ‘₯ Citizen-government communication bridge

πŸ§ͺ How to Run Locally

1️⃣ Clone Repository

git clone https://github.com/your-username/collapsealert.git
cd collapsealert

2️⃣ Install Dependencies

npm install

3️⃣ Configure Firebase

Create a Firebase configuration file inside:

src/lib/firebase.ts

Add your Firebase credentials.


4️⃣ Start Development Server

npm run dev

Application runs at:

http://localhost:5173

πŸ” Security

βœ… Firebase Authentication βœ… Secure Cloud Firestore βœ… Environment Variable Configuration βœ… Protected Admin Access


πŸ‘¨β€πŸ’» Author

Divya Sharma B.E. Computer Engineering IDEA Lab Project


⭐ Support

If you like this project, give it a ⭐ on GitHub and support smart disaster-tech innovation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages