%%{init: {
'theme': 'default',
'themeVariables': {
'fontSize': '16px',
'fontFamily': 'Inter, system-ui, sans-serif'
},
'flowchart': {
'rankSpacing': 36,
'nodeSpacing': 20,
'padding': 12,
'curve': 'basis'
}
}}%%
flowchart LR
%% Left: Source
Dev(["💻 <b>Map Source</b><ul><li>MapLibre UI & signals<li>Layer styles & configs</ul>"])
%% Top Track: Build & Edge CDN
subgraph ColBuild ["Build & Edge CDN"]
direction LR
Build(["⚙️ <b>Vite + npm Engine</b><ul><li>Strict tsc typecheck<li>Minifies & chunks assets</ul>"])
CDN{{"🌐 <b>GitHub Pages Edge</b><ul><li>Global HTTPS CDN<li>HTTP Range-request support</ul>"}}
Build ==>|compiles| CDN
end
%% Bottom Track: Community & Telemetry
subgraph ColData ["Community & Telemetry"]
direction LR
Tribal(["🌲 <b>Tribal Climate Partners</b><ul><li>Co-design requirements<li>Hazard indicator zones</ul>"])
Feeds[("📡 <b>Live Remote Feeds</b><ul><li>USGS streamflow telemetry<li>NIFC wildfire & BCWS<li>NOAA drought</ul>")]
Tribal ==>|metrics & zones| Feeds
end
%% Right: Client WebGL Execution
Browser(["🖥️ <b>Visitor Browser</b><ul><li>MapLibre GL JS (WebGL GPU)<li>Streams .pmtiles & remote COGs<li>Serverless, zero upkeep</ul>"])
%% Connections from Dev
Dev ==>|npm run build| Build
Dev ==>|partner alignment| Tribal
%% Connections from CDN and ColData to Browser
CDN ==>|streams bundle & tiles| Browser
Feeds ==>|direct browser queries| Browser
%% Closed loop feedback
Browser -.->|field insights & telemetry| Dev
%% Subgraph Styling
style ColBuild fill:none,stroke:#6366f1,stroke-width:1.5px,stroke-dasharray: 4 4,rx:12,ry:12
style ColData fill:none,stroke:#3b82f6,stroke-width:1.5px,stroke-dasharray: 4 4,rx:12,ry:12
%% Node Styling
style Dev fill:#1e293b,stroke:#38bdf8,stroke-width:2px,color:#f8fafc
style Build fill:#1e1e38,stroke:#818cf8,stroke-width:2px,color:#f8fafc
style CDN fill:#0f2937,stroke:#2dd4bf,stroke-width:2px,color:#f8fafc
style Browser fill:#0d3326,stroke:#34d399,stroke-width:2px,color:#f8fafc
style Feeds fill:#382414,stroke:#fb923c,stroke-width:2px,color:#f8fafc
style Tribal fill:#27272a,stroke:#a1a1aa,stroke-width:2px,color:#f8fafc