# 777rei/terra_pulse architecture

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

- Interactive diagram: https://gitdiagram.com/777rei/terra_pulse
- Repository: https://github.com/777rei/terra_pulse

## Overview

TERRA PULSE is a static, browser-only global data dashboard. The user opens the app, navigates among live-data views, and receives results from public APIs; settings persist locally, while the service worker supports offline use. The README documents the major view families and runtime capabilities but provides no source excerpts, so uncertain module-to-module calls are omitted or marked unverified.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Dashboard UI"]
  node_app_shell["App Orchestrator"]
  node_overview["Overview &amp; Map"]
  node_environment["Environment Views"]
  node_markets["Market Views"]
  node_news_society["News &amp; Society"]
  node_space_tech["Space &amp; Tech"]
  node_system_views["System Views"]
  node_commands["Search &amp; Commands"]
  node_worldmap_renderer["Map Renderer"]
end

subgraph group_data["Live Data"]
  node_api_wrappers["API Wrappers"]
  node_public_apis{{"Public Data APIs"}}
  node_map_data["World Map Data"]
  node_cities["City Dataset"]
end

subgraph group_state["Local State"]
  node_store["Reactive Store"]
  node_local_storage[("Browser Storage")]
end

subgraph group_offline["PWA Runtime"]
  node_service_worker["Service Worker"]
  node_cache_api[("Cache API")]
  node_manifest["Web App Manifest"]
end

node_user(("User"))

node_user -->|"opens"| node_app_shell
node_app_shell -.->|"orchestrates"| node_overview
node_app_shell -.->|"orchestrates"| node_environment
node_app_shell -.->|"orchestrates"| node_markets
node_app_shell -.->|"orchestrates"| node_news_society
node_app_shell -.->|"orchestrates"| node_space_tech
node_app_shell -.->|"orchestrates"| node_system_views
node_user -->|"searches and navigates"| node_commands
node_overview -.->|"renders map"| node_worldmap_renderer
node_worldmap_renderer -->|"decodes"| node_map_data
node_environment -.->|"requests data"| node_api_wrappers
node_markets -.->|"requests data"| node_api_wrappers
node_news_society -.->|"requests data"| node_api_wrappers
node_space_tech -.->|"requests data"| node_api_wrappers
node_api_wrappers -.->|"fetches data"| node_public_apis
node_store -->|"persists settings"| node_local_storage
node_service_worker -->|"caches assets"| node_cache_api
node_app_shell -->|"supports installation"| node_manifest
node_overview -.->|"uses locations"| node_cities

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_shell,node_overview,node_environment,node_markets,node_news_society,node_space_tech,node_system_views,node_commands,node_worldmap_renderer,node_user toneBlue
class node_api_wrappers,node_public_apis,node_map_data,node_cities toneAmber
class node_store,node_local_storage toneMint
class node_service_worker,node_cache_api,node_manifest toneRose
```

## Components

### Dashboard UI

- **App Orchestrator**
- **Overview & Map**
- **Environment Views**
- **Market Views**
- **News & Society**
- **Space & Tech**
- **System Views**
- **Search & Commands**
- **Map Renderer**

### Live Data

- **API Wrappers**
- **Public Data APIs**
- **World Map Data**
- **City Dataset**

### Local State

- **Reactive Store**
- **Browser Storage**

### PWA Runtime

- **Service Worker**
- **Cache API**
- **Web App Manifest**

### Other components

- **User**

## Connections

- User → App Orchestrator: opens (evidence: `README.md`)
- App Orchestrator → Overview & Map: orchestrates
- App Orchestrator → Environment Views: orchestrates
- App Orchestrator → Market Views: orchestrates
- App Orchestrator → News & Society: orchestrates
- App Orchestrator → Space & Tech: orchestrates
- App Orchestrator → System Views: orchestrates
- User → Search & Commands: searches and navigates (evidence: `README.md`)
- Overview & Map → Map Renderer: renders map
- Map Renderer → World Map Data: decodes (evidence: `README.md`)
- Environment Views → API Wrappers: requests data
- Market Views → API Wrappers: requests data
- News & Society → API Wrappers: requests data
- Space & Tech → API Wrappers: requests data
- API Wrappers → Public Data APIs: fetches data
- Reactive Store → Browser Storage: persists settings (evidence: `README.md`)
- Service Worker → Cache API: caches assets (evidence: `README.md`)
- App Orchestrator → Web App Manifest: supports installation (evidence: `README.md`)
- Overview & Map → City Dataset: uses locations
