Rescue Lanka is an AI-powered disaster response coordination web application designed to enhance emergency response efficiency during natural disasters. Built for the IntelliHack 2025 Final Round Challenge by Team CodeLabs, this platform serves as a centralized coordination system for disaster response operations in Sri Lanka and beyond.
Natural disasters such as floods, earthquakes, and wildfires often overwhelm local response systems due to:
- Lack of intelligent processing of multimodal data (text, images, voice)
- Poor task prioritization and resource allocation
- Inefficient communication between responders, volunteers, and affected individuals
- Limited real-time coordination capabilities
Rescue Lanka addresses these challenges through an AI-agentic workflow that:
- Intelligently processes multimodal disaster reports
- Prioritizes tasks based on urgency, location, and resource availability
- Coordinates resources across multiple response teams
- Enables real-time communication between all stakeholders
- Works offline with automatic synchronization when connectivity is restored
- Multi-modal input support (text, images, voice)
- AI-powered parsing and categorization of help requests
- Intelligent task prioritization using ML algorithms
- Automatic assignment to appropriate responders
- Live updates on ongoing missions and resource status
- Interactive map interface with geolocated requests
- Resource availability tracking and allocation
- Performance metrics and analytics
- Real-time messaging between all user roles
- LLM-powered task clarification and instructions
- Emergency alert broadcasting system
- Multi-language support
- On-device request generation and storage
- Automatic synchronization when online
- Local data persistence for uninterrupted operations
- Receive prioritized task assignments
- Access real-time coordination dashboard
- View resource availability and deployment status
- Coordinate with other response teams
- Register and receive task assignments
- Submit field observations and reports
- Access training materials and guidelines
- Communicate with coordination center
- Submit help requests for food, shelter, medical aid
- Track request status and receive updates
- Access emergency contact information
- Report field conditions and observations
- Administer the entire platform
- Monitor system-wide performance metrics
- Manage user roles and permissions
- Generate reports and analytics
graph TD
A[User Input] --> B[Input Processor Agent]
B --> C{Content Type?}
C -->|Text| D[NLP Agent]
C -->|Image| E[Vision Agent]
C -->|Voice| F[Speech Agent]
D --> G[Classification Agent]
E --> G
F --> G
G --> H[Priority Agent]
H --> I[Assignment Agent]
I --> J[Notification Agent]
J --> K[Response Tracking Agent]
rescue-lanka/
βββ src/
β βββ app/ # Next.js App Router
β β βββ (app)/ # Authenticated routes
β β β βββ volunteer/ # Volunteer dashboard
β β β βββ affected/ # Affected individual dashboard
β β β βββ responder/ # First responder dashboard
β β β βββ government/ # Government control center
β β βββ api/ # API routes
β β βββ globals.css # Global styles
β βββ components/ # Reusable UI components
β βββ lib/ # Utility functions and configurations
β βββ hooks/ # Custom React hooks
β βββ types/ # TypeScript type definitions
βββ public/ # Static assets
βββ docs/ # Documentation
βββ tests/ # Test files
- Node.js 18.0 or later
- npm or yarn package manager
- PostgreSQL database
- OpenAI API key
- Clone the repository
git clone https://github.com/yourusername/rescue-lanka.git
cd rescue-lanka
- Install dependencies
npm install
# or
yarn install
# or
pnpm install
- Set up environment variables
cp .env.example .env.local
Configure the following environment variables:
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/rescue_lanka"
# AI Services
OPENAI_API_KEY="your_openai_api_key"
# Authentication
NEXTAUTH_SECRET="your_nextauth_secret"
NEXTAUTH_URL="http://localhost:3000"
# AgentOps
AGENTOPS_API_KEY="your_agentops_api_key"
- Set up the database
npm run db:push
npm run db:seed
- Run the development server
npm run dev
# or
yarn dev
- Open http://localhost:3000 in your browser
- Build and run with Docker Compose
docker-compose up --build
- Log in to the responder dashboard
- View prioritized task assignments
- Accept and update task status
- Coordinate with other teams through the communication hub
- Register as a volunteer
- Complete training modules
- Receive task assignments based on location and skills
- Submit field reports with photos and observations
- Submit help requests via text, image, or voice
- Track request status in real-time
- Receive updates from response teams
- Access emergency contact information
- Monitor system-wide performance metrics
- Manage user roles and permissions
- Generate reports and analytics
- Broadcast emergency alerts
POST /api/auth/signin # User sign in
POST /api/auth/signup # User registration
POST /api/auth/signout # User sign out
POST /api/requests # Submit new help request
GET /api/requests # Get user's requests
PUT /api/requests/:id # Update request status
GET /api/tasks # Get assigned tasks
PUT /api/tasks/:id # Update task status
POST /api/tasks/:id/report # Submit task report
GET /api/messages # Get messages
POST /api/messages # Send new message
POST /api/broadcast # Send emergency alert
# Unit tests
npm run test
# E2E tests
npm run test:e2e
# Coverage report
npm run test:coverage
# Test AI workflow
npm run test:agents
# Performance testing
npm run test:performance
The platform tracks the following key performance indicators:
- AI Response Time: Average time for AI agents to process requests
- Request Fulfillment Rate: Percentage of successfully completed requests
- User Satisfaction Score: Average user rating (1-5 scale)
- Resource Utilization: Efficiency of resource allocation
- System Uptime: Platform availability percentage
- Build the application
npm run build
- Deploy to Vercel
vercel --prod
Ensure all production environment variables are set:
- Database connection strings
- API keys for AI services
- Authentication secrets
- Monitoring configurations
This project is licensed under the MIT License - see the LICENSE file for details.
Team CodeLabs - IntelliHack 2025 | Making disaster response smarter, faster, and more effective