# gedionkipchumba/buildwise architecture

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

- Interactive diagram: https://gitdiagram.com/gedionkipchumba/buildwise
- Repository: https://github.com/gedionkipchumba/buildwise

## Overview

BuildWise is a browser-based construction project management workspace. Users sign in, select a project, and manage planning and site execution through tasks and reports, while tracking budgets, workforce, materials, equipment, suppliers, invoices, messages, documents, analytics, and handover. The frontend is concentrated in one JavaScript file, with demo state seeded and persisted in another. The README documents connected updates across progress, timelines, analytics, activity, and budgets; unsampled implementation details are represented only at the documented capability level.

Main entry points: [`js/app.js`](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js) (Workspace UI), [`js/data.js`](https://github.com/gedionkipchumba/buildwise/blob/main/js/data.js) (Demo state)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Workspace"]
  node_frontend["Workspace UI<br/>[app.js]"]
  node_collaboration["Messages and documents<br/>[app.js]"]
  node_insights["Analytics and activity<br/>[app.js]"]
end

subgraph group_delivery["Project Delivery"]
  node_projects["Project planning<br/>[app.js]"]
  node_tasks["Task execution<br/>[app.js]"]
  node_reports["Site reports<br/>[app.js]"]
  node_handover["Handover<br/>[app.js]"]
end

subgraph group_resources["Resources and Cost"]
  node_materials["Materials and suppliers<br/>[app.js]"]
  node_workforce["Workforce and equipment<br/>[app.js]"]
  node_costs["Budget and expenses<br/>[app.js]"]
  node_invoices["Invoices<br/>[app.js]"]
end

subgraph group_platform["State and Visualization"]
  node_site_map["Interactive site map<br/>[app.js]"]
  node_viewer["3D project viewer<br/>[app.js]"]
  node_demo_state[("Demo state<br/>[data.js]")]
end

node_team(("Project team"))
node_browser_storage[("Browser localStorage")]
node_mapping_library["Leaflet"]
node_rendering_library["Three.js"]

node_team -->|"uses"| node_frontend
node_frontend -->|"loads state"| node_demo_state
node_demo_state -->|"reads and writes"| node_browser_storage
node_frontend -->|"routes to"| node_projects
node_frontend -->|"routes to"| node_tasks
node_frontend -->|"routes to"| node_reports
node_frontend -->|"supports"| node_handover
node_frontend -->|"routes to"| node_materials
node_frontend -->|"routes to"| node_workforce
node_frontend -->|"routes to"| node_costs
node_frontend -->|"routes to"| node_invoices
node_frontend -->|"routes to"| node_collaboration
node_frontend -->|"routes to"| node_insights
node_frontend -->|"provides"| node_site_map
node_frontend -->|"provides"| node_viewer
node_viewer -->|"renders with"| node_rendering_library
node_site_map -.->|"uses"| node_mapping_library
node_tasks -->|"updates"| node_insights
node_costs -->|"updates"| node_insights

click node_frontend "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_projects "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_tasks "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_reports "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_handover "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_materials "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_workforce "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_costs "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_invoices "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_collaboration "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_insights "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_site_map "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_viewer "https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js"
click node_demo_state "https://github.com/gedionkipchumba/buildwise/blob/main/js/data.js"

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_frontend,node_collaboration,node_insights toneBlue
class node_projects,node_tasks,node_reports,node_handover,node_browser_storage toneAmber
class node_materials,node_workforce,node_costs,node_invoices toneMint
class node_site_map,node_viewer,node_demo_state toneRose
class node_team,node_mapping_library,node_rendering_library toneIndigo
```

## Components

### Workspace

- [Workspace UI](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Messages and documents](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Analytics and activity](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`

### Project Delivery

- [Project planning](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Task execution](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Site reports](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Handover](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`

### Resources and Cost

- [Materials and suppliers](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Workforce and equipment](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Budget and expenses](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Invoices](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`

### State and Visualization

- [Interactive site map](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [3D project viewer](https://github.com/gedionkipchumba/buildwise/blob/main/js/app.js): `js/app.js`
- [Demo state](https://github.com/gedionkipchumba/buildwise/blob/main/js/data.js): `js/data.js`

### Other components

- **Project team**
- **Browser localStorage**
- **Leaflet**
- **Three.js**

## Connections

- Project team → Workspace UI: uses (evidence: `README.md`)
- Workspace UI → Demo state: loads state (evidence: `js/app.js`)
- Demo state → Browser localStorage: reads and writes (evidence: `js/data.js`)
- Workspace UI → Project planning: routes to (evidence: `README.md`)
- Workspace UI → Task execution: routes to (evidence: `README.md`)
- Workspace UI → Site reports: routes to (evidence: `README.md`)
- Workspace UI → Handover: supports (evidence: `README.md`)
- Workspace UI → Materials and suppliers: routes to (evidence: `README.md`)
- Workspace UI → Workforce and equipment: routes to (evidence: `README.md`)
- Workspace UI → Budget and expenses: routes to (evidence: `README.md`)
- Workspace UI → Invoices: routes to (evidence: `README.md`)
- Workspace UI → Messages and documents: routes to (evidence: `README.md`)
- Workspace UI → Analytics and activity: routes to (evidence: `README.md`)
- Workspace UI → Interactive site map: provides (evidence: `README.md`)
- Workspace UI → 3D project viewer: provides (evidence: `README.md`)
- 3D project viewer → Three.js: renders with (evidence: `js/app.js`)
- Interactive site map → Leaflet: uses (evidence: `README.md`)
- Task execution → Analytics and activity: updates (evidence: `README.md`)
- Budget and expenses → Analytics and activity: updates (evidence: `README.md`)
