# bilawalsidhu/gods-eye-view architecture

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

- Interactive diagram: https://gitdiagram.com/bilawalsidhu/gods-eye-view
- Repository: https://github.com/bilawalsidhu/gods-eye-view
- Video tour (about a minute): https://gitdiagram.com/bilawalsidhu/gods-eye-view/video

## Overview

God’s Eye View is a browser-based 3D globe for exploring public signals, tracking entities, and asking questions about the world. The main workflow is to open the globe, enable data layers, inspect or follow a selected entity, and optionally query or annotate the scene through voice and agent tools. The graph also preserves documented capabilities such as weather, recent imagery, transit, SDR, Director Mode, and cockpit views. The README and sampled source support the main application/rendering and several internal calls; unsampled feature connections are shown only where documented.

Main entry points: [`server/providers`](https://github.com/bilawalsidhu/gods-eye-view/tree/main/server/providers) (Data providers), [`src/app/application.js`](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/app/application.js) (Application), [`src/maps/engine.js`](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/maps/engine.js) (Map engine), [`src/voice/realtimeController.js`](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/voice/realtimeController.js) (Voice interaction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Globe experience"]
  node_app["Application<br/>[application.js]"]
  node_views["User interface<br/>[index.js]"]
  node_maps["Map stacks<br/>[controller.js]"]
  node_engine["Map engine<br/>[engine.js]"]
  node_cesium["Cesium renderer<br/>[mapEngine.js]"]
  node_overlay["World overlays"]
  node_layerstate["Layer state<br/>[layerState.js]"]
  node_follow["Entity following<br/>[followed.js]"]
  node_cockpit["Cockpit tracking"]
end

subgraph group_signals["Signal layers"]
  node_signals["Live signal layers"]
  node_weather["Weather and imagery"]
  node_transit["Transit and traffic"]
  node_sdr["SDR receiver<br/>[controller.js]"]
end

subgraph group_interaction["Analysis and interaction"]
  node_voice["Voice interaction"]
  node_analyst["Analyst queries<br/>[analystEngine.js]"]
  node_annotations["World annotations"]
  node_director["Director Mode"]
end

subgraph group_integrations["Services and integrations"]
  node_mcp["MCP access<br/>[server.js]"]
  node_providers["Data providers"]
end

node_user(("Explorer"))
node_external(("Public data feeds"))
node_agent(("External agent"))

node_user -->|"opens"| node_app
node_app -->|"mounts"| node_views
node_app -.->|"configures"| node_maps
node_maps -->|"switches stacks"| node_engine
node_engine -->|"uses adapter"| node_cesium
node_engine -.->|"draws layers"| node_overlay
node_app -.->|"manages layer state"| node_layerstate
node_layerstate -.->|"controls visibility"| node_signals
node_signals -.->|"requests signals"| node_providers
node_providers -.->|"fetches data"| node_external
node_weather -.->|"loads weather"| node_providers
node_transit -.->|"loads mobility data"| node_providers
node_user -->|"selects entity"| node_follow
node_follow -->|"supplies tracked entity"| node_cockpit
node_user -->|"asks by voice"| node_voice
node_voice -.->|"queries layer data"| node_analyst
node_analyst -->|"queries records"| node_signals
node_voice -.->|"adds spoken findings"| node_annotations
node_user -->|"authors scenes"| node_director
node_user -->|"connects receiver"| node_sdr
node_agent -->|"queries globe"| node_mcp
node_mcp -->|"uses services"| node_providers

click node_app "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/app/application.js"
click node_views "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/ui/views/index.js"
click node_maps "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/maps/controller.js"
click node_engine "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/maps/engine.js"
click node_cesium "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/render/cesium/mapEngine.js"
click node_overlay "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/overlays/worldOverlayAllocation.worker.mjs"
click node_layerstate "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/layerState.js"
click node_follow "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/followed.js"
click node_cockpit "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/ui/cockpitTrackingController.js"
click node_signals "https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers"
click node_weather "https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers"
click node_transit "https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers"
click node_sdr "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/sdr/controller.js"
click node_voice "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/voice/realtimeController.js"
click node_analyst "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/analystEngine.js"
click node_annotations "https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/annotations/annotationEngine.js"
click node_director "https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/director"
click node_mcp "https://github.com/bilawalsidhu/gods-eye-view/blob/main/server/mcp/server.js"
click node_providers "https://github.com/bilawalsidhu/gods-eye-view/tree/main/server/providers"

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_views,node_maps,node_engine,node_cesium,node_overlay,node_layerstate,node_follow,node_cockpit toneBlue
class node_signals,node_weather,node_transit,node_sdr toneAmber
class node_voice,node_analyst,node_annotations,node_director toneMint
class node_mcp,node_providers toneRose
class node_user,node_external,node_agent toneIndigo
```

## Components

### Globe experience

- [Application](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/app/application.js): `src/app/application.js`
- [User interface](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/ui/views/index.js): `src/ui/views/index.js`
- [Map stacks](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/maps/controller.js): `src/maps/controller.js`
- [Map engine](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/maps/engine.js): `src/maps/engine.js`
- [Cesium renderer](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/render/cesium/mapEngine.js): `src/render/cesium/mapEngine.js`
- [World overlays](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/overlays/worldOverlayAllocation.worker.mjs): `src/overlays/worldOverlayAllocation.worker.mjs`
- [Layer state](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/layerState.js): `src/data/layerState.js`
- [Entity following](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/followed.js): `src/data/followed.js`
- [Cockpit tracking](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/ui/cockpitTrackingController.js): `src/ui/cockpitTrackingController.js`

### Signal layers

- [Live signal layers](https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers): `src/app/layers`
- [Weather and imagery](https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers): `src/app/layers`
- [Transit and traffic](https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/app/layers): `src/app/layers`
- [SDR receiver](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/sdr/controller.js): `src/sdr/controller.js`

### Analysis and interaction

- [Voice interaction](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/voice/realtimeController.js): `src/voice/realtimeController.js`
- [Analyst queries](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/data/analystEngine.js): `src/data/analystEngine.js`
- [World annotations](https://github.com/bilawalsidhu/gods-eye-view/blob/main/src/annotations/annotationEngine.js): `src/annotations/annotationEngine.js`
- [Director Mode](https://github.com/bilawalsidhu/gods-eye-view/tree/main/src/director): `src/director`

### Services and integrations

- [MCP access](https://github.com/bilawalsidhu/gods-eye-view/blob/main/server/mcp/server.js): `server/mcp/server.js`
- [Data providers](https://github.com/bilawalsidhu/gods-eye-view/tree/main/server/providers): `server/providers`

### Other components

- **Explorer**
- **Public data feeds**
- **External agent**

## Connections

- Explorer → Application: opens (evidence: `README.md`)
- Application → User interface: mounts (evidence: `src/standalone/application.js`)
- Application → Map stacks: configures
- Map stacks → Map engine: switches stacks (evidence: `src/maps/engine.js`)
- Map engine → Cesium renderer: uses adapter (evidence: `src/render/cesium/mapEngine.js`)
- Map engine → World overlays: draws layers
- Application → Layer state: manages layer state
- Layer state → Live signal layers: controls visibility
- Live signal layers → Data providers: requests signals
- Data providers → Public data feeds: fetches data
- Weather and imagery → Data providers: loads weather
- Transit and traffic → Data providers: loads mobility data
- Explorer → Entity following: selects entity (evidence: `README.md`)
- Entity following → Cockpit tracking: supplies tracked entity (evidence: `src/ui/cockpitTrackingController.js`)
- Explorer → Voice interaction: asks by voice (evidence: `README.md`)
- Voice interaction → Analyst queries: queries layer data
- Analyst queries → Live signal layers: queries records (evidence: `src/data/analystEngine.js`)
- Voice interaction → World annotations: adds spoken findings
- Explorer → Director Mode: authors scenes (evidence: `README.md`)
- Explorer → SDR receiver: connects receiver (evidence: `README.md`)
- External agent → MCP access: queries globe (evidence: `README.md`)
- MCP access → Data providers: uses services (evidence: `server/mcp/server.js`)
