# dchantlos/datacenter architecture

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

- Interactive diagram: https://gitdiagram.com/dchantlos/datacenter
- Repository: https://github.com/dchantlos/datacenter

## Overview

Data Center Site Selection is a browser-based Reno-area parcel screening and design-review app. Users preview candidate areas, choose a region, check public-data availability, run parcel eligibility and weighted ranking, shortlist sites, create and approve a Podium design brief, return designs through the optional bridge or a GLB import, review them in 3D, and optionally publish a design to ArcGIS Online. The graph keeps screening, brief preparation, design exchange, review, and publishing distinct. Some unsampled UI and integration wiring is represented only where README documentation supports it.

Main entry points: [`apps/web/src/App.tsx`](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/App.tsx) (App workflow), [`apps/web/src/analysis.ts`](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/analysis.ts) (Area analysis), [`apps/web/src/preview.ts`](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/preview.ts) (Live preview), [`apps/web/src/components/Review3D.tsx`](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/Review3D.tsx) (3D design review)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Area discovery"]
  node_app["App workflow<br/>[App.tsx]"]
  node_map["Web map<br/>[webmap.ts]"]
  node_sources["Source registry<br/>[sources.ts]"]
  node_health["Data health<br/>[health.ts]"]
  node_preview["Live preview<br/>[preview.ts]"]
end

subgraph group_screening["Parcel screening"]
  node_parcels["Parcel queries<br/>[parcels.ts]"]
  node_sitefacts["Site measurements<br/>[siteFacts.ts]"]
  node_criteria["Rules and ranking<br/>[criteria.ts]"]
  node_analysis["Area analysis<br/>[analysis.ts]"]
  node_results["Ranked results<br/>[Results.tsx]"]
end

subgraph group_brief["Brief and exchange"]
  node_scenarios["Scenario brief<br/>[scenarios.ts]"]
  node_briefui["Brief approval<br/>[BriefPanel.tsx]"]
  node_bridge["Podium bridge client<br/>[podiumBridge.ts]"]
  node_extension["Browser extension<br/>[driver.js]"]
end

subgraph group_review["3D review"]
  node_reviewui["3D design review<br/>[Review3D.tsx]"]
  node_glb["GLB decoding<br/>[podiumGlb.ts]"]
  node_exploder["Model exploder<br/>[PodiumExploder.ts]"]
  node_scene["Scene tools<br/>[SceneTools.tsx]"]
end

subgraph group_persistence["Saved work and publishing"]
  node_store[("Browser storage<br/>[store.ts]")]
  node_publishui["Publish panel<br/>[PublishPanel.tsx]"]
end

node_user(("Site analyst"))
node_podium["Podium"]
node_arcgisonline["ArcGIS Online"]
node_publicdata["Public GIS services"]

node_user -->|"uses"| node_app
node_app -->|"loads map"| node_map
node_map -->|"matches layers"| node_sources
node_app -->|"checks sources"| node_health
node_health -->|"reads registry"| node_sources
node_app -->|"loads preview"| node_preview
node_preview -->|"queries candidates"| node_parcels
node_preview -->|"fetches shapes"| node_sitefacts
node_preview -.->|"queries layers"| node_publicdata
node_user -->|"runs area"| node_analysis
node_analysis -->|"queries parcels"| node_parcels
node_analysis -->|"measures facts"| node_sitefacts
node_analysis -->|"ranks candidates"| node_criteria
node_user -->|"reviews ranking"| node_results
node_results -->|"renders outcomes"| node_analysis
node_user -->|"creates brief"| node_briefui
node_briefui -->|"builds scenario"| node_scenarios
node_app -->|"saves scenario"| node_store
node_briefui -->|"sends brief"| node_bridge
node_bridge -.->|"exchanges designs"| node_extension
node_extension -.->|"runs generator"| node_podium
node_podium -.->|"returns designs"| node_extension
node_user -->|"reviews designs"| node_reviewui
node_reviewui -->|"parses models"| node_glb
node_reviewui -->|"uses exploder"| node_exploder
node_reviewui -.->|"loads designs"| node_store
node_user -->|"uses tools"| node_scene
node_scene -->|"controls model"| node_exploder
node_user -->|"publishes design"| node_publishui
node_publishui -->|"publishes object"| node_arcgisonline

click node_app "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/App.tsx"
click node_map "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/webmap.ts"
click node_sources "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/sources.ts"
click node_health "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/health.ts"
click node_preview "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/preview.ts"
click node_parcels "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/parcels.ts"
click node_sitefacts "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/siteFacts.ts"
click node_criteria "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/criteria.ts"
click node_analysis "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/analysis.ts"
click node_results "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/Results.tsx"
click node_scenarios "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/scenarios.ts"
click node_briefui "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/BriefPanel.tsx"
click node_bridge "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/podiumBridge.ts"
click node_extension "https://github.com/dchantlos/datacenter/blob/main/podium-bridge/driver.js"
click node_reviewui "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/Review3D.tsx"
click node_glb "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/podiumGlb.ts"
click node_exploder "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/explode/PodiumExploder.ts"
click node_scene "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/SceneTools.tsx"
click node_store "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/store.ts"
click node_publishui "https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/PublishPanel.tsx"

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_map,node_sources,node_health,node_preview toneBlue
class node_parcels,node_sitefacts,node_criteria,node_analysis,node_results toneAmber
class node_scenarios,node_briefui,node_bridge,node_extension toneMint
class node_reviewui,node_glb,node_exploder,node_scene toneRose
class node_store,node_publishui,node_user,node_podium,node_arcgisonline,node_publicdata toneIndigo
```

## Components

### Area discovery

- [App workflow](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/App.tsx): `apps/web/src/App.tsx`
- [Web map](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/webmap.ts): `apps/web/src/webmap.ts`
- [Source registry](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/sources.ts): `apps/web/src/sources.ts`
- [Data health](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/health.ts): `apps/web/src/health.ts`
- [Live preview](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/preview.ts): `apps/web/src/preview.ts`

### Parcel screening

- [Parcel queries](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/parcels.ts): `apps/web/src/parcels.ts`
- [Site measurements](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/siteFacts.ts): `apps/web/src/siteFacts.ts`
- [Rules and ranking](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/criteria.ts): `apps/web/src/criteria.ts`
- [Area analysis](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/analysis.ts): `apps/web/src/analysis.ts`
- [Ranked results](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/Results.tsx): `apps/web/src/components/Results.tsx`

### Brief and exchange

- [Scenario brief](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/scenarios.ts): `apps/web/src/scenarios.ts`
- [Brief approval](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/BriefPanel.tsx): `apps/web/src/components/BriefPanel.tsx`
- [Podium bridge client](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/podiumBridge.ts): `apps/web/src/podiumBridge.ts`
- [Browser extension](https://github.com/dchantlos/datacenter/blob/main/podium-bridge/driver.js): `podium-bridge/driver.js`

### 3D review

- [3D design review](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/Review3D.tsx): `apps/web/src/components/Review3D.tsx`
- [GLB decoding](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/podiumGlb.ts): `apps/web/src/podiumGlb.ts`
- [Model exploder](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/explode/PodiumExploder.ts): `apps/web/src/explode/PodiumExploder.ts`
- [Scene tools](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/SceneTools.tsx): `apps/web/src/components/SceneTools.tsx`

### Saved work and publishing

- [Browser storage](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/store.ts): `apps/web/src/store.ts`
- [Publish panel](https://github.com/dchantlos/datacenter/blob/main/apps/web/src/components/PublishPanel.tsx): `apps/web/src/components/PublishPanel.tsx`

### Other components

- **Site analyst**
- **Podium**
- **ArcGIS Online**
- **Public GIS services**

## Connections

- Site analyst → App workflow: uses (evidence: `README.md`)
- App workflow → Web map: loads map (evidence: `apps/web/src/App.tsx`)
- Web map → Source registry: matches layers (evidence: `apps/web/src/webmap.ts`)
- App workflow → Data health: checks sources (evidence: `apps/web/src/App.tsx`)
- Data health → Source registry: reads registry (evidence: `apps/web/src/health.ts`)
- App workflow → Live preview: loads preview (evidence: `apps/web/src/App.tsx`)
- Live preview → Parcel queries: queries candidates (evidence: `apps/web/src/preview.ts`)
- Live preview → Site measurements: fetches shapes (evidence: `apps/web/src/preview.ts`)
- Live preview → Public GIS services: queries layers (evidence: `README.md`)
- Site analyst → Area analysis: runs area (evidence: `README.md`)
- Area analysis → Parcel queries: queries parcels (evidence: `apps/web/src/analysis.ts`)
- Area analysis → Site measurements: measures facts (evidence: `apps/web/src/analysis.ts`)
- Area analysis → Rules and ranking: ranks candidates (evidence: `apps/web/src/analysis.ts`)
- Site analyst → Ranked results: reviews ranking (evidence: `README.md`)
- Ranked results → Area analysis: renders outcomes (evidence: `apps/web/src/components/Results.tsx`)
- Site analyst → Brief approval: creates brief (evidence: `README.md`)
- Brief approval → Scenario brief: builds scenario (evidence: `apps/web/src/components/BriefPanel.tsx`)
- App workflow → Browser storage: saves scenario (evidence: `apps/web/src/App.tsx`)
- Brief approval → Podium bridge client: sends brief (evidence: `apps/web/src/components/BriefPanel.tsx`)
- Podium bridge client → Browser extension: exchanges designs (evidence: `README.md`)
- Browser extension → Podium: runs generator (evidence: `README.md`)
- Podium → Browser extension: returns designs (evidence: `README.md`)
- Site analyst → 3D design review: reviews designs (evidence: `README.md`)
- 3D design review → GLB decoding: parses models (evidence: `apps/web/src/components/Review3D.tsx`)
- 3D design review → Model exploder: uses exploder (evidence: `apps/web/src/components/Review3D.tsx`)
- 3D design review → Browser storage: loads designs (evidence: `README.md`)
- Site analyst → Scene tools: uses tools (evidence: `README.md`)
- Scene tools → Model exploder: controls model (evidence: `apps/web/src/components/SceneTools.tsx`)
- Site analyst → Publish panel: publishes design (evidence: `README.md`)
- Publish panel → ArcGIS Online: publishes object (evidence: `apps/web/src/components/PublishPanel.tsx`)
