# modelearth/data-commons architecture

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

- Interactive diagram: https://gitdiagram.com/modelearth/data-commons
- Repository: https://github.com/modelearth/data-commons

## Overview

Data Commons is a static, Observable Framework site presenting data and visualizations around UN Sustainable Development Goals and related topics. A visitor navigates goal-area pages; timeline development uses Google Data Commons data and eCharts, while the repository also includes pre-saved datasets, Observable data-loader examples, and a DuckDB/Parquet display sample. The README describes these capabilities but the sampled source excerpts contain no page or visualization implementations, so the graph shows only documented relationships and treats implementation details as unverified.

Main entry points: [`docs`](https://github.com/modelearth/data-commons/tree/main/docs) (Goal-area pages), [`docs/data`](https://github.com/modelearth/data-commons/tree/main/docs/data) (UN goal timelines), [`docs/air`](https://github.com/modelearth/data-commons/tree/main/docs/air) (Air pages), [`docs/water`](https://github.com/modelearth/data-commons/tree/main/docs/water) (Water pages)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Goal Pages"]
  node_goal_pages["Goal-area pages"]
  node_air_pages["Air pages"]
  node_water_pages["Water pages"]
  node_food_pages["Food pages"]
  node_innovation_pages["Innovation page"]
  node_data_pages["Data development page"]
end

subgraph group_data["Data Sources"]
  node_air_data[("Air datasets")]
  node_water_data[("Water datasets")]
  node_timeline_data[("Goal timeline data")]
end

subgraph group_visuals["Timelines and Charts"]
  node_timeline_work["UN goal timelines"]
  node_air_timeline["Emissions timeline<br/>[timeline.js]"]
  node_space_timeline["Space timeline<br/>[timeline.js]"]
end

subgraph group_examples["Data Examples"]
  node_loader_examples["Loader examples"]
  node_weather_loader["Weather loader<br/>[forecast.json.js]"]
  node_parquet_sample[("Parquet display sample<br/>[Flow.parquet]")]
  node_chart_runtime["DuckDB browser runtime<br/>[duckdb.js]"]
end

node_visitor(("Site visitor"))
node_google_dc["Google Data Commons"]
node_e_charts["eCharts"]

node_visitor -->|"views"| node_goal_pages
node_goal_pages -->|"includes"| node_air_pages
node_goal_pages -->|"includes"| node_water_pages
node_goal_pages -->|"includes"| node_food_pages
node_goal_pages -->|"includes"| node_innovation_pages
node_data_pages -->|"documents"| node_timeline_work
node_timeline_work -->|"uses API"| node_google_dc
node_timeline_work -->|"uses charts"| node_e_charts
node_air_pages -->|"has timeline"| node_air_timeline
node_air_timeline -.->|"uses data"| node_air_data
node_water_pages -.->|"has data"| node_water_data
node_timeline_work -->|"develops from"| node_timeline_data
node_goal_pages -->|"documents loaders"| node_loader_examples
node_air_pages -->|"has example"| node_weather_loader
node_innovation_pages -->|"shows sample"| node_parquet_sample
node_parquet_sample -->|"displayed with"| node_chart_runtime

click node_goal_pages "https://github.com/modelearth/data-commons/tree/main/docs"
click node_air_pages "https://github.com/modelearth/data-commons/tree/main/docs/air"
click node_water_pages "https://github.com/modelearth/data-commons/tree/main/docs/water"
click node_food_pages "https://github.com/modelearth/data-commons/tree/main/docs/food"
click node_innovation_pages "https://github.com/modelearth/data-commons/tree/main/docs/innovation"
click node_data_pages "https://github.com/modelearth/data-commons/tree/main/docs/data"
click node_timeline_work "https://github.com/modelearth/data-commons/tree/main/docs/data"
click node_air_timeline "https://github.com/modelearth/data-commons/blob/main/docs/air/emissions/components/timeline.js"
click node_space_timeline "https://github.com/modelearth/data-commons/blob/main/docs/space/components/timeline.js"
click node_air_data "https://github.com/modelearth/data-commons/tree/main/docs/air/emissions/data"
click node_water_data "https://github.com/modelearth/data-commons/tree/main/docs/water/data"
click node_timeline_data "https://github.com/modelearth/data-commons/tree/main/docs/data/timelines"
click node_loader_examples "https://github.com/modelearth/data-commons/tree/main/docs/components"
click node_weather_loader "https://github.com/modelearth/data-commons/blob/main/docs/air/weather/data/forecast.json.js"
click node_parquet_sample "https://github.com/modelearth/data-commons/blob/main/docs/innovation/data/Flow.parquet"
click node_chart_runtime "https://github.com/modelearth/data-commons/blob/main/dist/_observablehq/stdlib/duckdb.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_goal_pages,node_air_pages,node_water_pages,node_food_pages,node_innovation_pages,node_data_pages toneBlue
class node_air_data,node_water_data,node_timeline_data toneAmber
class node_timeline_work,node_air_timeline,node_space_timeline toneMint
class node_loader_examples,node_weather_loader,node_parquet_sample,node_chart_runtime toneRose
class node_visitor,node_google_dc,node_e_charts toneIndigo
```

## Components

### Goal Pages

- [Goal-area pages](https://github.com/modelearth/data-commons/tree/main/docs): `docs`
- [Air pages](https://github.com/modelearth/data-commons/tree/main/docs/air): `docs/air`
- [Water pages](https://github.com/modelearth/data-commons/tree/main/docs/water): `docs/water`
- [Food pages](https://github.com/modelearth/data-commons/tree/main/docs/food): `docs/food`
- [Innovation page](https://github.com/modelearth/data-commons/tree/main/docs/innovation): `docs/innovation`
- [Data development page](https://github.com/modelearth/data-commons/tree/main/docs/data): `docs/data`

### Data Sources

- [Air datasets](https://github.com/modelearth/data-commons/tree/main/docs/air/emissions/data): `docs/air/emissions/data`
- [Water datasets](https://github.com/modelearth/data-commons/tree/main/docs/water/data): `docs/water/data`
- [Goal timeline data](https://github.com/modelearth/data-commons/tree/main/docs/data/timelines): `docs/data/timelines`

### Timelines and Charts

- [UN goal timelines](https://github.com/modelearth/data-commons/tree/main/docs/data): `docs/data`
- [Emissions timeline](https://github.com/modelearth/data-commons/blob/main/docs/air/emissions/components/timeline.js): `docs/air/emissions/components/timeline.js`
- [Space timeline](https://github.com/modelearth/data-commons/blob/main/docs/space/components/timeline.js): `docs/space/components/timeline.js`

### Data Examples

- [Loader examples](https://github.com/modelearth/data-commons/tree/main/docs/components): `docs/components`
- [Weather loader](https://github.com/modelearth/data-commons/blob/main/docs/air/weather/data/forecast.json.js): `docs/air/weather/data/forecast.json.js`
- [Parquet display sample](https://github.com/modelearth/data-commons/blob/main/docs/innovation/data/Flow.parquet): `docs/innovation/data/Flow.parquet`
- [DuckDB browser runtime](https://github.com/modelearth/data-commons/blob/main/dist/_observablehq/stdlib/duckdb.js): `dist/_observablehq/stdlib/duckdb.js`

### Other components

- **Site visitor**
- **Google Data Commons**
- **eCharts**

## Connections

- Site visitor → Goal-area pages: views (evidence: `README.md`)
- Goal-area pages → Air pages: includes (evidence: `README.md`)
- Goal-area pages → Water pages: includes (evidence: `README.md`)
- Goal-area pages → Food pages: includes (evidence: `README.md`)
- Goal-area pages → Innovation page: includes (evidence: `README.md`)
- Data development page → UN goal timelines: documents (evidence: `README.md`)
- UN goal timelines → Google Data Commons: uses API (evidence: `README.md`)
- UN goal timelines → eCharts: uses charts (evidence: `README.md`)
- Air pages → Emissions timeline: has timeline (evidence: `README.md`)
- Emissions timeline → Air datasets: uses data
- Water pages → Water datasets: has data
- UN goal timelines → Goal timeline data: develops from (evidence: `README.md`)
- Goal-area pages → Loader examples: documents loaders (evidence: `README.md`)
- Air pages → Weather loader: has example (evidence: `README.md`)
- Innovation page → Parquet display sample: shows sample (evidence: `README.md`)
- Parquet display sample → DuckDB browser runtime: displayed with (evidence: `README.md`)
