# 🇬🇭 InfraGuard AI – Ghana's Unified Infrastructure Intelligence Platform
> **100% FREE forever** for all Ghanaian users. Open-source (MIT License).
InfraGuard AI merges **electricity grid monitoring** (Dumsor AI) and **road condition intelligence** (Computer Vision AI) into a single, premium-quality platform purpose-built for Ghana's infrastructure challenges.
## 🏗 Architecture
```mermaid
graph TB
subgraph Mobile["📱 Flutter Mobile App"]
A[Unified Resilience Map] --> B[Electricity Module]
A --> C[Roads Module]
B --> D[On-Device AI - TFLite]
C --> D
end
subgraph Web["🌐 Next.js Dashboard"]
E[Admin Analytics] --> F[Recharts Visualizations]
E --> G[Work Order Management]
end
subgraph Backend["☁️ Supabase Backend"]
H[PostgreSQL] --> I[Row-Level Security]
J[Auth] --> K[Phone/Email/Google]
L[Edge Functions] --> M[AI Inference]
N[Storage] --> O[Photos & Reports]
end
Mobile --> Backend
Web --> Backend
```
## 📁 Project Structure
```
infraguard-ai/
├── mobile/ # Flutter 3.24+ (Android & iOS)
│ ├── lib/
│ │ ├── core/ # Theme, routing, constants
│ │ ├── features/ # Auth, Home, Electricity, Roads, Dashboard, Settings
│ │ └── shared/ # Widgets, models, services
│ └── pubspec.yaml
├── web/ # Next.js 15 + Tailwind + shadcn/ui
│ ├── app/ # App Router pages
│ ├── components/ # UI components
│ └── package.json
├── backend/ # Supabase
│ └── supabase/
│ ├── schema.sql # Database schema + RLS
│ └── seed.sql # Sample Ghana data
├── ai/ # ML notebooks
│ ├── road_detection_notebook.py
│ └── outage_prediction_notebook.py
├── docs/ # Documentation
│ ├── SCREENS.md # UI component descriptions
│ └── DEPLOYMENT.md # Store & hosting deployment
└── README.md
```
## 🚀 Quick Start
### Prerequisites
- Flutter 3.24+ & Dart SDK
- Node.js 18+ & npm
- Supabase CLI (optional for local dev)
- Git
### Mobile App
```bash
cd mobile
fl …