# annasehgal/the-mappers architecture

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

- Interactive diagram: https://gitdiagram.com/annasehgal/the-mappers
- Repository: https://github.com/annasehgal/the-mappers

## Overview

Holt Hall Indoor Navigation is a mobile-first, browser-based floor-map prototype. Visitors search the room catalog, select a starting point manually or from an Entry A–D QR checkpoint, then view and follow a route, confirming checkpoints manually until arrival. The README documents 2D/3D map controls and spoken directions, but no source excerpts were provided; the links below therefore represent only documented product behavior, not verified module calls.

Main entry points: [`assets/app.js`](https://github.com/annasehgal/the-mappers/blob/main/assets/app.js) (Navigation app), [`assets/locations.js`](https://github.com/annasehgal/the-mappers/blob/main/assets/locations.js) (Room search), [`assets/navigation.js`](https://github.com/annasehgal/the-mappers/blob/main/assets/navigation.js) (Route guidance), [`assets/pathfinding.js`](https://github.com/annasehgal/the-mappers/blob/main/assets/pathfinding.js) (Route finding)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Visitor interaction"]
  node_app["Navigation app<br/>[app.js]"]
  node_state["Application state<br/>[state.js]"]
end

subgraph group_routing["Search and routing"]
  node_search["Room search<br/>[locations.js]"]
  node_catalog["Room catalog<br/>[rooms.js]"]
  node_route["Route finding<br/>[pathfinding.js]"]
  node_routegraph["Route graph<br/>[graph.js]"]
end

subgraph group_map["Map and guidance"]
  node_navigation["Route guidance<br/>[navigation.js]"]
  node_renderer["2D/3D map<br/>[renderer.js]"]
  node_engine["Map engine<br/>[engine.js]"]
end

subgraph group_position["Position and map data"]
  node_qr["QR checkpoints<br/>[qr.html]"]
  node_location["Location data<br/>[location-data.js]"]
  node_geometry["Floor-plan geometry<br/>[geometry.js]"]
end

node_visitor(("Visitor"))
node_browser["Browser speech"]

node_visitor -->|"uses"| node_app
node_visitor -->|"searches rooms"| node_search
node_visitor -->|"scans checkpoint"| node_qr
node_visitor -->|"confirms checkpoints"| node_navigation
node_app -->|"supports search"| node_search
node_search -->|"searches"| node_catalog
node_visitor -->|"chooses destination"| node_route
node_app -->|"shows routes"| node_route
node_app -->|"displays map"| node_renderer
node_visitor -->|"controls view"| node_renderer
node_visitor -->|"follows directions"| node_navigation
node_navigation -->|"speaks directions"| node_browser
node_visitor -->|"sees arrival"| node_app

click node_app "https://github.com/annasehgal/the-mappers/blob/main/assets/app.js"
click node_search "https://github.com/annasehgal/the-mappers/blob/main/assets/locations.js"
click node_catalog "https://github.com/annasehgal/the-mappers/blob/main/assets/rooms.js"
click node_route "https://github.com/annasehgal/the-mappers/blob/main/assets/pathfinding.js"
click node_routegraph "https://github.com/annasehgal/the-mappers/blob/main/assets/graph.js"
click node_navigation "https://github.com/annasehgal/the-mappers/blob/main/assets/navigation.js"
click node_renderer "https://github.com/annasehgal/the-mappers/blob/main/assets/renderer.js"
click node_engine "https://github.com/annasehgal/the-mappers/blob/main/assets/engine.js"
click node_state "https://github.com/annasehgal/the-mappers/blob/main/assets/state.js"
click node_qr "https://github.com/annasehgal/the-mappers/blob/main/assets/qr.html"
click node_location "https://github.com/annasehgal/the-mappers/blob/main/assets/location-data.js"
click node_geometry "https://github.com/annasehgal/the-mappers/blob/main/assets/geometry.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_app,node_state,node_browser toneBlue
class node_search,node_catalog,node_route,node_routegraph toneAmber
class node_navigation,node_renderer,node_engine toneMint
class node_qr,node_location,node_geometry toneRose
class node_visitor toneIndigo
```

## Components

### Visitor interaction

- [Navigation app](https://github.com/annasehgal/the-mappers/blob/main/assets/app.js): `assets/app.js`
- [Application state](https://github.com/annasehgal/the-mappers/blob/main/assets/state.js): `assets/state.js`

### Search and routing

- [Room search](https://github.com/annasehgal/the-mappers/blob/main/assets/locations.js): `assets/locations.js`
- [Room catalog](https://github.com/annasehgal/the-mappers/blob/main/assets/rooms.js): `assets/rooms.js`
- [Route finding](https://github.com/annasehgal/the-mappers/blob/main/assets/pathfinding.js): `assets/pathfinding.js`
- [Route graph](https://github.com/annasehgal/the-mappers/blob/main/assets/graph.js): `assets/graph.js`

### Map and guidance

- [Route guidance](https://github.com/annasehgal/the-mappers/blob/main/assets/navigation.js): `assets/navigation.js`
- [2D/3D map](https://github.com/annasehgal/the-mappers/blob/main/assets/renderer.js): `assets/renderer.js`
- [Map engine](https://github.com/annasehgal/the-mappers/blob/main/assets/engine.js): `assets/engine.js`

### Position and map data

- [QR checkpoints](https://github.com/annasehgal/the-mappers/blob/main/assets/qr.html): `assets/qr.html`
- [Location data](https://github.com/annasehgal/the-mappers/blob/main/assets/location-data.js): `assets/location-data.js`
- [Floor-plan geometry](https://github.com/annasehgal/the-mappers/blob/main/assets/geometry.js): `assets/geometry.js`

### Other components

- **Visitor**
- **Browser speech**

## Connections

- Visitor → Navigation app: uses (evidence: `README.md`)
- Visitor → Room search: searches rooms (evidence: `README.md`)
- Visitor → QR checkpoints: scans checkpoint (evidence: `README.md`)
- Visitor → Route guidance: confirms checkpoints (evidence: `README.md`)
- Navigation app → Room search: supports search (evidence: `README.md`)
- Room search → Room catalog: searches (evidence: `README.md`)
- Visitor → Route finding: chooses destination (evidence: `README.md`)
- Navigation app → Route finding: shows routes (evidence: `README.md`)
- Navigation app → 2D/3D map: displays map (evidence: `README.md`)
- Visitor → 2D/3D map: controls view (evidence: `README.md`)
- Visitor → Route guidance: follows directions (evidence: `README.md`)
- Route guidance → Browser speech: speaks directions (evidence: `README.md`)
- Visitor → Navigation app: sees arrival (evidence: `README.md`)
