# saketh-debug/verdex-coolpath-project architecture

> Architecture diagram of the GitHub repository saketh-debug/verdex-coolpath-project, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/saketh-debug/verdex-coolpath-project
- Repository: https://github.com/saketh-debug/verdex-coolpath-project

## Overview

CoolPath is a Hyderabad-focused climate-aware mobility product: users inspect heat and tree-canopy conditions, request cooler routes, and explore walkability. The repository contains several parallel interfaces: a React web app, Streamlit app and REST backend, a separate 3D map, and WhatsApp bot. The React app’s routes and data hooks are visible; the REST backend’s sampled endpoints call climate services. Some subsystem links remain unverified because their implementations were not sampled, and no README was provided.

Main entry points: [`coolpath-app/src/App.jsx`](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/App.jsx) (Web router), [`coolpath-app/src/api/hooks.js`](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/api/hooks.js) (API hooks), [`streamlit-demo/backend/main.py`](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/streamlit-demo/backend/main.py) (REST API), [`map venv/services/routing.py`](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/routing.py) (Climate routing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["React web app"]
  node_app["Web router<br/>[App.jsx]"]
  node_home["Home page<br/>[Home.jsx]"]
  node_dashboard["Dashboard<br/>[Dashboard.jsx]"]
  node_heatmap["Heatmap<br/>[Heatmap.jsx]"]
  node_canopy["Tree canopy<br/>[TreeCanopy.jsx]"]
  node_router["CoolPath router<br/>[CoolPathRouter.jsx]"]
  node_mobile["Mobile router"]
  node_walkoption["Walk option<br/>[WalkOption.jsx]"]
  node_hooks["API hooks<br/>[hooks.js]"]
  node_client["HTTP client<br/>[client.js]"]
  node_chatbot["EcoAssist chat<br/>[ChatBot.jsx]"]
end

subgraph group_api["Climate API and services"]
  node_api_backend["REST API<br/>[main.py]"]
  node_routing["Climate routing<br/>[routing.py]"]
  node_surface["Surface temperature<br/>[surface_temp.py]"]
  node_ndvi["Canopy data<br/>[ndvi.py]"]
  node_walkability["Walkability analysis<br/>[walkability.py]"]
  node_weather["Weather forecast"]
  node_config["Climate settings<br/>[config.py]"]
end

subgraph group_streamlit["Streamlit interface"]
  node_streamapp["Streamlit app<br/>[app.py]"]
end

subgraph group_map3d["3D city map"]
  node_three_main["3D map entry<br/>[main.js]"]
  node_map3d["3D city map<br/>[map3d.js]"]
  node_search["Map search<br/>[searchPanel.js]"]
  node_shell["Map shell<br/>[shell.js]"]
end

subgraph group_messaging["Messaging integrations"]
  node_messaging["Messaging page<br/>[Messaging.jsx]"]
  node_bot_entry["WhatsApp bot<br/>[main.py]"]
  node_translation["Translation"]
  node_whatsapp["WhatsApp service"]
end

node_user(("Visitor"))

node_user -->|"opens"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_dashboard
node_app -->|"routes to"| node_heatmap
node_app -->|"routes to"| node_canopy
node_app -->|"routes to"| node_router
node_app -->|"routes to"| node_mobile
node_app -->|"routes to"| node_walkoption
node_app -->|"routes to"| node_messaging
node_app -->|"renders"| node_chatbot
node_dashboard -->|"fetches data"| node_hooks
node_heatmap -->|"fetches data"| node_hooks
node_canopy -->|"fetches data"| node_hooks
node_router -->|"requests routes"| node_hooks
node_mobile -->|"requests routes"| node_hooks
node_hooks -->|"calls"| node_client
node_hooks -.->|"requests API"| node_api_backend
node_api_backend -->|"fetches raster"| node_surface
node_api_backend -->|"fetches canopy"| node_ndvi
node_api_backend -->|"computes grid"| node_walkability
node_api_backend -->|"computes route"| node_routing
node_routing -->|"samples temperatures"| node_surface
node_routing -->|"samples canopy"| node_ndvi
node_surface -->|"reads settings"| node_config
node_ndvi -->|"reads settings"| node_config
node_walkability -->|"reads settings"| node_config
node_routing -->|"reads settings"| node_config
node_streamapp -->|"computes routes"| node_routing
node_user -.->|"uses"| node_streamapp
node_three_main -->|"initializes"| node_map3d
node_three_main -->|"initializes"| node_search
node_three_main -->|"initializes"| node_shell
node_search -->|"uses map"| node_map3d
node_bot_entry -->|"uses"| node_translation
node_bot_entry -->|"uses"| node_whatsapp

click node_app "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/App.jsx"
click node_home "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Home.jsx"
click node_dashboard "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Dashboard.jsx"
click node_heatmap "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Heatmap.jsx"
click node_canopy "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/TreeCanopy.jsx"
click node_router "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/CoolPathRouter.jsx"
click node_mobile "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/MobileCoolPathRouter.jsx"
click node_walkoption "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/WalkOption.jsx"
click node_hooks "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/api/hooks.js"
click node_client "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/api/client.js"
click node_chatbot "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/components/ChatBot.jsx"
click node_api_backend "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/streamlit-demo/backend/main.py"
click node_routing "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/routing.py"
click node_surface "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/surface_temp.py"
click node_ndvi "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/ndvi.py"
click node_walkability "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/walkability.py"
click node_weather "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/weather_forecast.py"
click node_config "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/config.py"
click node_streamapp "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/streamlit-demo/app.py"
click node_three_main "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/main.js"
click node_map3d "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/map/map3d.js"
click node_search "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/ui/searchPanel.js"
click node_shell "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/ui/shell.js"
click node_messaging "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Messaging.jsx"
click node_bot_entry "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/main.py"
click node_translation "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/translation_service.py"
click node_whatsapp "https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/whatsapp_service.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_home,node_dashboard,node_heatmap,node_canopy,node_router,node_mobile,node_walkoption,node_hooks,node_client,node_chatbot toneBlue
class node_api_backend,node_routing,node_surface,node_ndvi,node_walkability,node_weather,node_config toneAmber
class node_streamapp toneMint
class node_three_main,node_map3d,node_search,node_shell toneRose
class node_messaging,node_bot_entry,node_translation,node_whatsapp,node_user toneIndigo
```

## Components

### React web app

- [Web router](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/App.jsx): `coolpath-app/src/App.jsx`
- [Home page](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Home.jsx): `coolpath-app/src/pages/Home.jsx`
- [Dashboard](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Dashboard.jsx): `coolpath-app/src/pages/Dashboard.jsx`
- [Heatmap](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Heatmap.jsx): `coolpath-app/src/pages/Heatmap.jsx`
- [Tree canopy](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/TreeCanopy.jsx): `coolpath-app/src/pages/TreeCanopy.jsx`
- [CoolPath router](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/CoolPathRouter.jsx): `coolpath-app/src/pages/CoolPathRouter.jsx`
- [Mobile router](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/MobileCoolPathRouter.jsx): `coolpath-app/src/pages/MobileCoolPathRouter.jsx`
- [Walk option](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/WalkOption.jsx): `coolpath-app/src/pages/WalkOption.jsx`
- [API hooks](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/api/hooks.js): `coolpath-app/src/api/hooks.js`
- [HTTP client](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/api/client.js): `coolpath-app/src/api/client.js`
- [EcoAssist chat](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/components/ChatBot.jsx): `coolpath-app/src/components/ChatBot.jsx`

### Climate API and services

- [REST API](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/streamlit-demo/backend/main.py): `streamlit-demo/backend/main.py`
- [Climate routing](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/routing.py): `map venv/services/routing.py`
- [Surface temperature](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/surface_temp.py): `map venv/services/surface_temp.py`
- [Canopy data](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/ndvi.py): `map venv/services/ndvi.py`
- [Walkability analysis](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/walkability.py): `map venv/services/walkability.py`
- [Weather forecast](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/services/weather_forecast.py): `map venv/services/weather_forecast.py`
- [Climate settings](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/map%20venv/config.py): `map venv/config.py`

### Streamlit interface

- [Streamlit app](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/streamlit-demo/app.py): `streamlit-demo/app.py`

### 3D city map

- [3D map entry](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/main.js): `hyderabad-3d/frontend/src/main.js`
- [3D city map](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/map/map3d.js): `hyderabad-3d/frontend/src/map/map3d.js`
- [Map search](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/ui/searchPanel.js): `hyderabad-3d/frontend/src/ui/searchPanel.js`
- [Map shell](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/hyderabad-3d/frontend/src/ui/shell.js): `hyderabad-3d/frontend/src/ui/shell.js`

### Messaging integrations

- [Messaging page](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/coolpath-app/src/pages/Messaging.jsx): `coolpath-app/src/pages/Messaging.jsx`
- [WhatsApp bot](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/main.py): `whatsapp_bot/main.py`
- [Translation](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/translation_service.py): `whatsapp_bot/translation_service.py`
- [WhatsApp service](https://github.com/saketh-debug/verdex-coolpath-project/blob/main/whatsapp_bot/whatsapp_service.py): `whatsapp_bot/whatsapp_service.py`

### Other components

- **Visitor**

## Connections

- Visitor → Web router: opens (evidence: `coolpath-app/src/App.jsx`)
- Web router → Home page: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Dashboard: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Heatmap: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Tree canopy: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → CoolPath router: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Mobile router: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Walk option: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → Messaging page: routes to (evidence: `coolpath-app/src/App.jsx`)
- Web router → EcoAssist chat: renders (evidence: `coolpath-app/src/App.jsx`)
- Dashboard → API hooks: fetches data (evidence: `coolpath-app/src/pages/Dashboard.jsx`)
- Heatmap → API hooks: fetches data (evidence: `coolpath-app/src/pages/Heatmap.jsx`)
- Tree canopy → API hooks: fetches data (evidence: `coolpath-app/src/pages/TreeCanopy.jsx`)
- CoolPath router → API hooks: requests routes (evidence: `coolpath-app/src/pages/CoolPathRouter.jsx`)
- Mobile router → API hooks: requests routes (evidence: `coolpath-app/src/pages/MobileCoolPathRouter.jsx`)
- API hooks → HTTP client: calls (evidence: `coolpath-app/src/api/hooks.js`)
- API hooks → REST API: requests API
- REST API → Surface temperature: fetches raster (evidence: `streamlit-demo/backend/main.py`)
- REST API → Canopy data: fetches canopy (evidence: `streamlit-demo/backend/main.py`)
- REST API → Walkability analysis: computes grid (evidence: `streamlit-demo/backend/main.py`)
- REST API → Climate routing: computes route (evidence: `streamlit-demo/backend/main.py`)
- Climate routing → Surface temperature: samples temperatures (evidence: `map venv/services/routing.py`)
- Climate routing → Canopy data: samples canopy (evidence: `map venv/services/routing.py`)
- Surface temperature → Climate settings: reads settings (evidence: `map venv/services/surface_temp.py`)
- Canopy data → Climate settings: reads settings (evidence: `map venv/services/ndvi.py`)
- Walkability analysis → Climate settings: reads settings (evidence: `map venv/services/walkability.py`)
- Climate routing → Climate settings: reads settings (evidence: `map venv/services/routing.py`)
- Streamlit app → Climate routing: computes routes (evidence: `streamlit-demo/app.py`)
- Visitor → Streamlit app: uses
- 3D map entry → 3D city map: initializes (evidence: `hyderabad-3d/frontend/src/main.js`)
- 3D map entry → Map search: initializes (evidence: `hyderabad-3d/frontend/src/main.js`)
- 3D map entry → Map shell: initializes (evidence: `hyderabad-3d/frontend/src/main.js`)
- Map search → 3D city map: uses map (evidence: `hyderabad-3d/frontend/src/ui/searchPanel.js`)
- WhatsApp bot → Translation: uses (evidence: `whatsapp_bot/main.py`)
- WhatsApp bot → WhatsApp service: uses (evidence: `whatsapp_bot/main.py`)
