# modelearth/apps architecture

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

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

## Overview

Model Earth Local Site Apps is a collection of web-based environmental impact and community-action applications. Users enter through the apps landing page or a topic page; the available evidence shows a state-selection flow that retrieves state impact data and displays it, alongside shared impact and hero-menu widgets. The tree also documents topic areas such as air, carbon, clean power, land, schools, and volunteering. Most page implementations were not sampled, so their internal flows and connections are not inferred; the graph focuses on visible runtime behavior and the app catalog.

Main entry points: [`js/bc.js`](https://github.com/modelearth/apps/blob/main/js/bc.js) (State impact view), [`land/index.html`](https://github.com/modelearth/apps/blob/main/land/index.html) (Land app), [`school/index.html`](https://github.com/modelearth/apps/blob/main/school/index.html) (School app), [`land/land.js`](https://github.com/modelearth/apps/blob/main/land/land.js) (Land icon helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Apps catalog"]
  node_landing["Apps landing<br/>[index.html]"]
end

subgraph group_impact["Impact tools"]
  node_air["Air app<br/>[index.html]"]
  node_carbon["Carbon app<br/>[index.html]"]
  node_cleanpower["Clean power<br/>[index.html]"]
  node_land["Land app<br/>[index.html]"]
  node_landui["Land icon helper<br/>[land.js]"]
  node_school["School app<br/>[index.html]"]
  node_schoolui["School icon helper<br/>[school.js]"]
  node_impactview["State impact view<br/>[bc.js]"]
  node_coastal["Coastal app<br/>[index.html]"]
  node_brownfields["Brownfields app<br/>[index.html]"]
  node_ev["EV app<br/>[index.html]"]
end

subgraph group_action["Action programs"]
  node_involved["Get involved<br/>[index.html]"]
  node_volunteer["Volunteer<br/>[index.html]"]
  node_compost["Composting<br/>[index.html]"]
  node_biodiesel["Biodiesel<br/>[index.html]"]
  node_urbanag["Urban agriculture<br/>[index.html]"]
end

subgraph group_shared["Shared UI"]
  node_menus["Hero and impact menus<br/>[apps-menus.js]"]
  node_impactwidget["Impact widget<br/>[apps-impact.js]"]
end

node_visitor(("Visitor"))
node_localsite["Local Site runtime"]
node_impactdata[("Beyond Carbon data")]

node_visitor -->|"opens"| node_landing
node_visitor -.->|"opens"| node_air
node_visitor -.->|"opens"| node_carbon
node_visitor -.->|"opens"| node_cleanpower
node_visitor -.->|"opens"| node_land
node_visitor -.->|"opens"| node_school
node_visitor -.->|"opens"| node_coastal
node_visitor -.->|"opens"| node_brownfields
node_visitor -.->|"opens"| node_ev
node_visitor -.->|"opens"| node_involved
node_visitor -.->|"opens"| node_volunteer
node_visitor -.->|"opens"| node_compost
node_visitor -.->|"opens"| node_biodiesel
node_visitor -.->|"opens"| node_urbanag
node_impactview -->|"fetches JSON"| node_impactdata
node_impactview -->|"uses state lookup"| node_localsite
node_menus -->|"sets hash filters"| node_localsite
node_landui -->|"moves icons"| node_land
node_schoolui -->|"moves icons"| node_school

click node_landing "https://github.com/modelearth/apps/blob/main/index.html"
click node_air "https://github.com/modelearth/apps/blob/main/air/index.html"
click node_carbon "https://github.com/modelearth/apps/blob/main/carbon/index.html"
click node_cleanpower "https://github.com/modelearth/apps/blob/main/cleanpower/index.html"
click node_land "https://github.com/modelearth/apps/blob/main/land/index.html"
click node_landui "https://github.com/modelearth/apps/blob/main/land/land.js"
click node_school "https://github.com/modelearth/apps/blob/main/school/index.html"
click node_schoolui "https://github.com/modelearth/apps/blob/main/school/school.js"
click node_impactview "https://github.com/modelearth/apps/blob/main/js/bc.js"
click node_coastal "https://github.com/modelearth/apps/blob/main/coastal/index.html"
click node_brownfields "https://github.com/modelearth/apps/blob/main/brownfields/index.html"
click node_ev "https://github.com/modelearth/apps/blob/main/ev/index.html"
click node_involved "https://github.com/modelearth/apps/blob/main/get-involved/index.html"
click node_volunteer "https://github.com/modelearth/apps/blob/main/volunteer/index.html"
click node_compost "https://github.com/modelearth/apps/blob/main/composting/index.html"
click node_biodiesel "https://github.com/modelearth/apps/blob/main/biodiesel/index.html"
click node_urbanag "https://github.com/modelearth/apps/blob/main/urbanag/index.html"
click node_menus "https://github.com/modelearth/apps/blob/main/js/apps-menus.js"
click node_impactwidget "https://github.com/modelearth/apps/blob/main/js/apps-impact.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_landing toneBlue
class node_air,node_carbon,node_cleanpower,node_land,node_landui,node_school,node_schoolui,node_impactview,node_coastal,node_brownfields,node_ev,node_impactdata toneAmber
class node_involved,node_volunteer,node_compost,node_biodiesel,node_urbanag toneMint
class node_menus,node_impactwidget toneRose
class node_visitor,node_localsite toneIndigo
```

## Components

### Apps catalog

- [Apps landing](https://github.com/modelearth/apps/blob/main/index.html): `index.html`

### Impact tools

- [Air app](https://github.com/modelearth/apps/blob/main/air/index.html): `air/index.html`
- [Carbon app](https://github.com/modelearth/apps/blob/main/carbon/index.html): `carbon/index.html`
- [Clean power](https://github.com/modelearth/apps/blob/main/cleanpower/index.html): `cleanpower/index.html`
- [Land app](https://github.com/modelearth/apps/blob/main/land/index.html): `land/index.html`
- [Land icon helper](https://github.com/modelearth/apps/blob/main/land/land.js): `land/land.js`
- [School app](https://github.com/modelearth/apps/blob/main/school/index.html): `school/index.html`
- [School icon helper](https://github.com/modelearth/apps/blob/main/school/school.js): `school/school.js`
- [State impact view](https://github.com/modelearth/apps/blob/main/js/bc.js): `js/bc.js`
- [Coastal app](https://github.com/modelearth/apps/blob/main/coastal/index.html): `coastal/index.html`
- [Brownfields app](https://github.com/modelearth/apps/blob/main/brownfields/index.html): `brownfields/index.html`
- [EV app](https://github.com/modelearth/apps/blob/main/ev/index.html): `ev/index.html`

### Action programs

- [Get involved](https://github.com/modelearth/apps/blob/main/get-involved/index.html): `get-involved/index.html`
- [Volunteer](https://github.com/modelearth/apps/blob/main/volunteer/index.html): `volunteer/index.html`
- [Composting](https://github.com/modelearth/apps/blob/main/composting/index.html): `composting/index.html`
- [Biodiesel](https://github.com/modelearth/apps/blob/main/biodiesel/index.html): `biodiesel/index.html`
- [Urban agriculture](https://github.com/modelearth/apps/blob/main/urbanag/index.html): `urbanag/index.html`

### Shared UI

- [Hero and impact menus](https://github.com/modelearth/apps/blob/main/js/apps-menus.js): `js/apps-menus.js`
- [Impact widget](https://github.com/modelearth/apps/blob/main/js/apps-impact.js): `js/apps-impact.js`

### Other components

- **Visitor**
- **Local Site runtime**
- **Beyond Carbon data**

## Connections

- Visitor → Apps landing: opens (evidence: `README.md`)
- Visitor → Air app: opens
- Visitor → Carbon app: opens
- Visitor → Clean power: opens
- Visitor → Land app: opens
- Visitor → School app: opens
- Visitor → Coastal app: opens
- Visitor → Brownfields app: opens
- Visitor → EV app: opens
- Visitor → Get involved: opens
- Visitor → Volunteer: opens
- Visitor → Composting: opens
- Visitor → Biodiesel: opens
- Visitor → Urban agriculture: opens
- State impact view → Beyond Carbon data: fetches JSON (evidence: `js/bc.js`)
- State impact view → Local Site runtime: uses state lookup (evidence: `js/bc.js`)
- Hero and impact menus → Local Site runtime: sets hash filters (evidence: `js/apps-menus.js`)
- Land icon helper → Land app: moves icons (evidence: `land/land.js`)
- School icon helper → School app: moves icons (evidence: `school/school.js`)
