Skip to content

kiloumanjaro/drAIn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

500 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

drAIn 🌧️

Contributors Forks Stargazers Issues License


Logo


Predict, Simulate, and Strengthen Urban Drainage Systems

Status Next.js Last commit

Report Bug · Request Feature
Table of Contents
  1. 🗺️ Project Overview
  2. 💻 Getting Started
  3. 📬 Contributing
  4. ⚖️ License

🗺️ Project Overview

drAIn is an AI/machine learning - powered platform for flood resilience. It is designed to help engineers, planners, and local governments predict, simulate, and strengthen urban drainage systems.

The project moves beyond simple hazard mapping by integrating SWMM-based (Storm Water Management Model) hydraulic simulations with AI-driven analytics and community participation. It transforms complex flood data into actionable insights to support proactive maintenance, infrastructure upgrades, and data-driven resilience planning.

💡 Why drAIn?

Urban flooding is a critical problem, often caused by heavy rainfall and poor drainage maintenance. While many existing tools focus on flood hazard mapping or risk assessment, they often remain theoretical. They typically lack real-time data integration, community participation, and operational decision support.

  • 🧠 Machine learning - Driven Vulnerability Ranking: Assesses each drainage component using metrics like flooding volume and overflow duration. It then applies machine learning (K-Means clustering) to classify and rank structural vulnerabilities.
  • 🌊 Interactive Simulation: Provides interactive "what-if" scenario testing, allowing users to simulate the impact of rainfall or structural changes in real time.
  • 👥 Community Participation: Incorporates citizen reporting, allowing communities to contribute real-world drainage data for model validation and maintenance tracking.
  • 📊 Actionable Intelligence: Converts complex simulation data into clear, actionable intelligence for engineers and planners to make informed decisions.

📚 Tech Stack

Next.js TypeScript Tailwind CSS shadcn/ui Lucide Icons Mapbox Supabase FastAPI PySWMM scikit-learn Google Gemini Vercel Railway

📖 Documentation

Comprehensive documentation is available in the docs/ folder:

Quick links:

💻 Getting Started

Follow these steps to set up and run drAIn locally.

🔧 Prerequisites

🛠️ Installation

1. Clone the Repository

git clone https://github.com/eliseoalcaraz/drAIn.git
cd drAIn

2. Install Dependencies

pnpm install

3. Environment Setup

cp .env.example .env

Edit the .env file with your configuration (API keys, database URL, etc.)

▶️ Running the Application

pnpm run dev

📬 Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📢 Contributors

contrib.rocks image

🔎 Project Structure

drAIn/
├── app/                    # Next.js App Router pages
│   ├── (auth)/            # Authentication routes
│   ├── map/               # Interactive map interface
│   ├── dashboard/         # Analytics dashboard
│   ├── simulation/        # SWMM simulation
│   └── reports/           # Flood reporting
├── components/            # React components
│   ├── ui/               # Base UI components (shadcn/ui)
│   ├── control-panel/    # Control panel feature
│   ├── dashboard/        # Dashboard components
│   └── context/          # Context providers
├── lib/                   # Utilities and libraries
│   ├── map/              # Map configuration
│   ├── supabase/         # Database operations
│   ├── simulation-api/   # SWMM API client
│   └── dashboard/        # Dashboard queries
├── hooks/                 # Custom React hooks
├── public/                # Static assets
│   ├── drainage/         # GeoJSON data
│   └── images/           # Images and icons
├── docs/                  # Documentation
│   ├── architecture/     # System design docs
│   ├── api/              # API reference
│   ├── components/       # Component guides
│   ├── guides/           # Feature tutorials
│   └── features/         # Feature documentation
└── scripts/              # Build and utility scripts

For a detailed architecture overview, see System Architecture Documentation.

⚖️ License

This project is licensed under the GNU General Public License v2.0 (GPL-2.0). You may redistribute and/or modify it under the terms of the GNU GPL, as published by the Free Software Foundation. - see the LICENSE file for details.

About

AI and machine learning–powered platform that integrates geospatial data and predictive analytics to optimize urban drainage management, enhance flood resilience, and support data-driven decision-making.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages