# π¬π 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 β¦