# henrikwpalmer/ukraine_dispossession_timemap architecture

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

- Interactive diagram: https://gitdiagram.com/henrikwpalmer/ukraine_dispossession_timemap
- Repository: https://github.com/henrikwpalmer/ukraine_dispossession_timemap

## Overview

The tree and source excerpts indicate two cooperating products: a datasheet-backed JSON service and a browser time map for exploring events, places, shapes, and narratives. The map workflow loads configured domain data into application state, derives filtered views, and presents them through timeline, map, search, and narrative controls. The README gives no additional capability details; several map subsystems are represented from the tree and index, so their internal links are omitted where implementation evidence was not shown.

Main entry points: [`timemap/src/components/Layout.js`](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/Layout.js) (Application layout), [`timemap/src/components/time/Timeline.js`](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/Timeline.js) (Timeline view), [`timemap/src/actions/index.js`](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/actions/index.js) (Data and UI actions), [`datasheet-server/src/initialize.js`](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/initialize.js) (Service initialization)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_server["Datasheet service"]
  node_server_entry["Server entry<br/>[index.js]"]
  node_server_api["API routes<br/>[index.js]"]
  node_server_init["Service initialization<br/>[initialize.js]"]
  node_controller["Sheet controller<br/>[Controller.js]"]
  node_fetcher["Sheet fetcher<br/>[Fetcher.js]"]
  node_store[("JSON store<br/>[StoreJson.js]")]
  node_blueprints["Blueprint generation<br/>[blueprinters.js]"]
end

subgraph group_state["Map data and state"]
  node_actions["Data and UI actions<br/>[index.js]"]
  node_reducers["Application reducers<br/>[app.js]"]
  node_initial_state["Initial state<br/>[initial.js]"]
  node_selectors["Derived data selectors<br/>[index.js]"]
  node_url_state["URL state plugin"]
end

subgraph group_explore["Map exploration"]
  node_timeline["Timeline view<br/>[Timeline.js]"]
  node_timeline_events["Timeline events<br/>[Events.js]"]
  node_timeline_frequency["Event frequency<br/>[FrequencyLine.js]"]
  node_map_space["Map view<br/>[Space.js]"]
  node_map_renderer["Cartographic renderer<br/>[Map.js]"]
  node_map_events["Mapped events<br/>[Events.js]"]
end

subgraph group_presentation["Map interface"]
  node_map_app["Map application<br/>[App.js]"]
  node_layout["Application layout<br/>[Layout.js]"]
  node_controls["Toolbar controls<br/>[Toolbar.js]"]
  node_search["Event search<br/>[Search.js]"]
  node_search_row["Search result row<br/>[SearchRow.jsx]"]
  node_narrative_controls["Narrative controls"]
end

node_client(("Browser user"))
node_remote_data[("Configured data sources")]

node_client -->|"opens"| node_map_app
node_server_entry -->|"initializes"| node_server_init
node_server_entry -->|"registers"| node_server_api
node_server_init -->|"configures"| node_controller
node_server_init -->|"configures"| node_fetcher
node_server_init -->|"configures"| node_store
node_controller -->|"delegates to"| node_fetcher
node_fetcher -->|"uses"| node_blueprints
node_map_app -->|"renders"| node_layout
node_layout -->|"renders"| node_controls
node_layout -->|"renders"| node_timeline
node_layout -->|"renders"| node_search
node_layout -->|"renders"| node_narrative_controls
node_search -->|"renders"| node_search_row
node_search -->|"dispatches query"| node_actions
node_timeline -->|"dispatches updates"| node_actions
node_timeline -->|"renders"| node_timeline_events
node_timeline -->|"renders"| node_timeline_frequency
node_layout -->|"renders"| node_map_space
node_map_space -.->|"delegates rendering"| node_map_renderer
node_map_renderer -.->|"renders"| node_map_events
node_remote_data -->|"provides configured data"| node_actions
node_actions -->|"fetches"| node_remote_data
node_actions -->|"dispatches actions"| node_reducers
node_reducers -->|"defaults from"| node_initial_state
node_layout -->|"reads derived state"| node_selectors
node_timeline -->|"reads derived data"| node_selectors
node_url_state -.->|"synchronizes state"| node_reducers

click node_server_entry "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/index.js"
click node_server_api "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/api/index.js"
click node_server_init "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/initialize.js"
click node_controller "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/Controller.js"
click node_fetcher "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/Fetcher.js"
click node_store "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/models/StoreJson.js"
click node_blueprints "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/blueprinters.js"
click node_map_app "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/App.js"
click node_layout "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/Layout.js"
click node_controls "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/Toolbar.js"
click node_search "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/Search.js"
click node_search_row "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/atoms/SearchRow.jsx"
click node_narrative_controls "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/NarrativeControls.js"
click node_timeline "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/Timeline.js"
click node_timeline_events "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/atoms/Events.js"
click node_timeline_frequency "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/atoms/FrequencyLine.js"
click node_map_space "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/Space.js"
click node_map_renderer "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/carto/Map.js"
click node_map_events "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/carto/atoms/Events.js"
click node_actions "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/actions/index.js"
click node_reducers "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/reducers/app.js"
click node_initial_state "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/store/initial.js"
click node_selectors "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/selectors/index.js"
click node_url_state "https://github.com/henrikwpalmer/ukraine_dispossession_timemap/tree/main/timemap/src/store/plugins/urlState"

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_server_entry,node_server_api,node_server_init,node_controller,node_fetcher,node_store,node_blueprints,node_client toneBlue
class node_actions,node_reducers,node_initial_state,node_selectors,node_url_state,node_remote_data toneAmber
class node_timeline,node_timeline_events,node_timeline_frequency,node_map_space,node_map_renderer,node_map_events toneMint
class node_map_app,node_layout,node_controls,node_search,node_search_row,node_narrative_controls toneRose
```

## Components

### Datasheet service

- [Server entry](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/index.js): `datasheet-server/src/index.js`
- [API routes](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/api/index.js): `datasheet-server/src/api/index.js`
- [Service initialization](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/initialize.js): `datasheet-server/src/initialize.js`
- [Sheet controller](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/Controller.js): `datasheet-server/src/lib/Controller.js`
- [Sheet fetcher](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/Fetcher.js): `datasheet-server/src/lib/Fetcher.js`
- [JSON store](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/models/StoreJson.js): `datasheet-server/src/models/StoreJson.js`
- [Blueprint generation](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/datasheet-server/src/lib/blueprinters.js): `datasheet-server/src/lib/blueprinters.js`

### Map data and state

- [Data and UI actions](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/actions/index.js): `timemap/src/actions/index.js`
- [Application reducers](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/reducers/app.js): `timemap/src/reducers/app.js`
- [Initial state](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/store/initial.js): `timemap/src/store/initial.js`
- [Derived data selectors](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/selectors/index.js): `timemap/src/selectors/index.js`
- [URL state plugin](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/tree/main/timemap/src/store/plugins/urlState): `timemap/src/store/plugins/urlState`

### Map exploration

- [Timeline view](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/Timeline.js): `timemap/src/components/time/Timeline.js`
- [Timeline events](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/atoms/Events.js): `timemap/src/components/time/atoms/Events.js`
- [Event frequency](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/time/atoms/FrequencyLine.js): `timemap/src/components/time/atoms/FrequencyLine.js`
- [Map view](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/Space.js): `timemap/src/components/space/Space.js`
- [Cartographic renderer](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/carto/Map.js): `timemap/src/components/space/carto/Map.js`
- [Mapped events](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/space/carto/atoms/Events.js): `timemap/src/components/space/carto/atoms/Events.js`

### Map interface

- [Map application](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/App.js): `timemap/src/components/App.js`
- [Application layout](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/Layout.js): `timemap/src/components/Layout.js`
- [Toolbar controls](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/Toolbar.js): `timemap/src/components/Toolbar.js`
- [Event search](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/Search.js): `timemap/src/components/controls/Search.js`
- [Search result row](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/atoms/SearchRow.jsx): `timemap/src/components/controls/atoms/SearchRow.jsx`
- [Narrative controls](https://github.com/henrikwpalmer/ukraine_dispossession_timemap/blob/main/timemap/src/components/controls/NarrativeControls.js): `timemap/src/components/controls/NarrativeControls.js`

### Other components

- **Browser user**
- **Configured data sources**

## Connections

- Browser user → Map application: opens
- Server entry → Service initialization: initializes (evidence: `datasheet-server/src/index.js`)
- Server entry → API routes: registers (evidence: `datasheet-server/src/index.js`)
- Service initialization → Sheet controller: configures (evidence: `datasheet-server/src/initialize.js`)
- Service initialization → Sheet fetcher: configures (evidence: `datasheet-server/src/initialize.js`)
- Service initialization → JSON store: configures (evidence: `datasheet-server/src/initialize.js`)
- Sheet controller → Sheet fetcher: delegates to (evidence: `datasheet-server/src/lib/Controller.js`)
- Sheet fetcher → Blueprint generation: uses (evidence: `datasheet-server/src/lib/Fetcher.js`)
- Map application → Application layout: renders (evidence: `timemap/src/components/App.js`)
- Application layout → Toolbar controls: renders (evidence: `timemap/src/components/Layout.js`)
- Application layout → Timeline view: renders (evidence: `timemap/src/components/Layout.js`)
- Application layout → Event search: renders (evidence: `timemap/src/components/Layout.js`)
- Application layout → Narrative controls: renders (evidence: `timemap/src/components/Layout.js`)
- Event search → Search result row: renders (evidence: `timemap/src/components/controls/Search.js`)
- Event search → Data and UI actions: dispatches query (evidence: `timemap/src/components/controls/Search.js`)
- Timeline view → Data and UI actions: dispatches updates (evidence: `timemap/src/components/time/Timeline.js`)
- Timeline view → Timeline events: renders (evidence: `timemap/src/components/time/Timeline.js`)
- Timeline view → Event frequency: renders (evidence: `timemap/src/components/time/Timeline.js`)
- Application layout → Map view: renders (evidence: `timemap/src/components/Layout.js`)
- Map view → Cartographic renderer: delegates rendering
- Cartographic renderer → Mapped events: renders
- Configured data sources → Data and UI actions: provides configured data (evidence: `timemap/src/actions/index.js`)
- Data and UI actions → Configured data sources: fetches (evidence: `timemap/src/actions/index.js`)
- Data and UI actions → Application reducers: dispatches actions (evidence: `timemap/src/reducers/app.js`)
- Application reducers → Initial state: defaults from (evidence: `timemap/src/reducers/app.js`)
- Application layout → Derived data selectors: reads derived state (evidence: `timemap/src/components/Layout.js`)
- Timeline view → Derived data selectors: reads derived data (evidence: `timemap/src/components/time/Timeline.js`)
- URL state plugin → Application reducers: synchronizes state
