# lluisagusti/palantir-demo architecture

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

- Interactive diagram: https://gitdiagram.com/lluisagusti/palantir-demo
- Repository: https://github.com/lluisagusti/palantir-demo

## Overview

Palantir Demo is a client-side global intelligence dashboard: simulated threat, environmental, logistics, weather, lightning, radiation, and market data is initialized and updated, then presented through an interactive globe and supporting panels. Users inspect map markers and threat news, open event details, browse camera feeds, and view market tickers; mobile navigation and touch gestures adapt these interactions. The README also documents maritime routes and live-camera capabilities. Evidence is limited to the README and sampled source/index references; unsampled component internals are not assumed.

Main entry points: [`src/components/Dashboard.jsx`](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/Dashboard.jsx) (Command Dashboard), [`src/components/GlobeComponent.jsx`](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/GlobeComponent.jsx) (Interactive Globe), [`src/App.jsx`](https://github.com/lluisagusti/palantir-demo/blob/main/src/App.jsx) (App State), [`src/data/cameras.js`](https://github.com/lluisagusti/palantir-demo/blob/main/src/data/cameras.js) (Camera Catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Application Runtime"]
  node_app["App State<br/>[App.jsx]"]
  node_dashboard["Command Dashboard<br/>[Dashboard.jsx]"]
end

subgraph group_intelligence["Intelligence Data"]
  node_sim["Data Simulation<br/>[mockEngine.js]"]
  node_cameras["Camera Catalog<br/>[cameras.js]"]
  node_routes["Maritime Routes<br/>[maritimeRoutes.js]"]
end

subgraph group_visualization["Globe Visualization"]
  node_globe["Interactive Globe<br/>[GlobeComponent.jsx]"]
end

subgraph group_interaction["Panels and Interaction"]
  node_news["Threat News<br/>[NewsFeed.jsx]"]
  node_event["Event Details"]
  node_video["Camera Viewer<br/>[VideoModal.jsx]"]
  node_markets["Market Tickers<br/>[MarketTickers.jsx]"]
  node_mobile["Mobile Menu<br/>[MobileMenu.jsx]"]
  node_gestures["Touch Gestures"]
end

node_user(("Dashboard User"))

node_user -.->|"uses"| node_dashboard
node_app -->|"starts updates"| node_sim
node_app -->|"passes state"| node_dashboard
node_dashboard -->|"renders"| node_globe
node_dashboard -->|"renders"| node_news
node_dashboard -->|"renders"| node_markets
node_dashboard -->|"renders"| node_mobile
node_dashboard -->|"renders"| node_video
node_dashboard -->|"renders"| node_event
node_dashboard -->|"uses"| node_gestures
node_dashboard -->|"loads catalog"| node_cameras
node_dashboard -->|"loads routes"| node_routes
node_dashboard -->|"passes threats"| node_news
node_dashboard -.->|"passes market data"| node_markets
node_dashboard -.->|"passes map data"| node_globe
node_globe -.->|"selects events"| node_event
node_globe -.->|"selects cameras"| node_video
node_cameras -.->|"provides markers"| node_globe
node_routes -.->|"provides overlays"| node_globe

click node_app "https://github.com/lluisagusti/palantir-demo/blob/main/src/App.jsx"
click node_sim "https://github.com/lluisagusti/palantir-demo/blob/main/src/data/mockEngine.js"
click node_dashboard "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/Dashboard.jsx"
click node_globe "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/GlobeComponent.jsx"
click node_cameras "https://github.com/lluisagusti/palantir-demo/blob/main/src/data/cameras.js"
click node_routes "https://github.com/lluisagusti/palantir-demo/blob/main/src/data/maritimeRoutes.js"
click node_news "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/NewsFeed.jsx"
click node_event "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/EventDetailModal.jsx"
click node_video "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/VideoModal.jsx"
click node_markets "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/MarketTickers.jsx"
click node_mobile "https://github.com/lluisagusti/palantir-demo/blob/main/src/components/MobileMenu.jsx"
click node_gestures "https://github.com/lluisagusti/palantir-demo/blob/main/src/hooks/useTouchGestures.jsx"

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_dashboard,node_user toneBlue
class node_sim,node_cameras,node_routes toneAmber
class node_globe toneMint
class node_news,node_event,node_video,node_markets,node_mobile,node_gestures toneRose
```

## Components

### Application Runtime

- [App State](https://github.com/lluisagusti/palantir-demo/blob/main/src/App.jsx): `src/App.jsx`
- [Command Dashboard](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/Dashboard.jsx): `src/components/Dashboard.jsx`

### Intelligence Data

- [Data Simulation](https://github.com/lluisagusti/palantir-demo/blob/main/src/data/mockEngine.js): `src/data/mockEngine.js`
- [Camera Catalog](https://github.com/lluisagusti/palantir-demo/blob/main/src/data/cameras.js): `src/data/cameras.js`
- [Maritime Routes](https://github.com/lluisagusti/palantir-demo/blob/main/src/data/maritimeRoutes.js): `src/data/maritimeRoutes.js`

### Globe Visualization

- [Interactive Globe](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/GlobeComponent.jsx): `src/components/GlobeComponent.jsx`

### Panels and Interaction

- [Threat News](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/NewsFeed.jsx): `src/components/NewsFeed.jsx`
- [Event Details](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/EventDetailModal.jsx): `src/components/EventDetailModal.jsx`
- [Camera Viewer](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/VideoModal.jsx): `src/components/VideoModal.jsx`
- [Market Tickers](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/MarketTickers.jsx): `src/components/MarketTickers.jsx`
- [Mobile Menu](https://github.com/lluisagusti/palantir-demo/blob/main/src/components/MobileMenu.jsx): `src/components/MobileMenu.jsx`
- [Touch Gestures](https://github.com/lluisagusti/palantir-demo/blob/main/src/hooks/useTouchGestures.jsx): `src/hooks/useTouchGestures.jsx`

### Other components

- **Dashboard User**

## Connections

- Dashboard User → Command Dashboard: uses (evidence: `README.md`)
- App State → Data Simulation: starts updates (evidence: `src/App.jsx`)
- App State → Command Dashboard: passes state (evidence: `src/App.jsx`)
- Command Dashboard → Interactive Globe: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Threat News: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Market Tickers: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Mobile Menu: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Camera Viewer: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Event Details: renders (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Touch Gestures: uses (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Camera Catalog: loads catalog (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Maritime Routes: loads routes (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Threat News: passes threats (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Market Tickers: passes market data (evidence: `src/components/Dashboard.jsx`)
- Command Dashboard → Interactive Globe: passes map data (evidence: `src/components/Dashboard.jsx`)
- Interactive Globe → Event Details: selects events (evidence: `src/components/GlobeComponent.jsx`)
- Interactive Globe → Camera Viewer: selects cameras (evidence: `src/components/GlobeComponent.jsx`)
- Camera Catalog → Interactive Globe: provides markers (evidence: `README.md`)
- Maritime Routes → Interactive Globe: provides overlays (evidence: `README.md`)
