# kaidenpollesch/glcc-navigator architecture

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

- Interactive diagram: https://gitdiagram.com/kaidenpollesch/glcc-navigator
- Repository: https://github.com/kaidenpollesch/glcc-navigator

## Overview

GLCC Navigator is an offline-first mobile campus navigation app. Visitors select a point of interest, choose a travel mode and accessibility preferences, and view an on-device route over the campus map. Separate product branches support POI search, offline map downloads, and dynamic content; administrators can edit POIs and trace or edit paths. The sampled source confirms the routing and map orchestration, while some documented capabilities have limited implementation excerpts, so only README-supported or indexed relationships are shown for them.

Main entry points: [`src/screens/MapScreen.tsx`](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/MapScreen.tsx) (Map screen), [`src/store/useAdminStore.ts`](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useAdminStore.ts) (Admin edits), [`src/hooks/useRouting.ts`](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useRouting.ts) (Route coordination), [`src/hooks/usePaths.ts`](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePaths.ts) (Path data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Visitor experience"]
  node_app["App entry<br/>[App.tsx]"]
  node_navigator["App navigation<br/>[AppNavigator.tsx]"]
  node_onboarding["Onboarding"]
  node_map_screen["Map screen<br/>[MapScreen.tsx]"]
  node_filters["POI search<br/>[FilterDrawer.tsx]"]
  node_settings["Settings<br/>[SettingsScreen.tsx]"]
end

subgraph group_routing["Routing and map"]
  node_map["Campus map<br/>[GLCCMap.tsx]"]
  node_poi_markers["POI markers<br/>[POIMarkers.tsx]"]
  node_routing_hook["Route coordination<br/>[useRouting.ts]"]
  node_astar["A* routing<br/>[astar.ts]"]
  node_multimodal["Gateway routing<br/>[multiModal.ts]"]
  node_live_graph["Live graph<br/>[useLiveGraph.ts]"]
  node_graph_builder["Graph builder<br/>[buildGraph.ts]"]
  node_offline["Offline map packs<br/>[useOfflinePack.ts]"]
end

subgraph group_content["Content and administration"]
  node_poi_data["POI data<br/>[usePOIs.ts]"]
  node_paths["Path data<br/>[usePaths.ts]"]
  node_admin_poi["POI editor"]
  node_admin_paths["Path editor"]
  node_path_tracer["Path tracing<br/>[usePathTracer.ts]"]
end

subgraph group_state["App state and services"]
  node_app_store[("User preferences<br/>[useAppStore.ts]")]
  node_admin_store[("Admin edits<br/>[useAdminStore.ts]")]
  node_remote_store[("Remote content state")]
  node_remote_content["Remote content updates<br/>[remoteContent.ts]"]
end

node_visitor(("Visitor"))
node_map_tiles{{"Map tile service"}}

node_visitor -->|"opens"| node_app
node_app -->|"starts"| node_navigator
node_app -->|"initializes"| node_remote_store
node_navigator -->|"routes to"| node_onboarding
node_navigator -->|"routes to"| node_map_screen
node_onboarding -->|"saves preferences"| node_app_store
node_map_screen -->|"renders"| node_map
node_map_screen -->|"opens"| node_filters
node_map_screen -->|"loads POIs"| node_poi_data
node_map_screen -->|"calculates routes"| node_routing_hook
node_map_screen -->|"builds live graph"| node_live_graph
node_map_screen -->|"manages downloads"| node_offline
node_map_screen -->|"opens"| node_settings
node_map -->|"renders"| node_poi_markers
node_map -->|"reads route state"| node_app_store
node_routing_hook -->|"finds route"| node_astar
node_routing_hook -->|"finds gateway"| node_multimodal
node_routing_hook -->|"reads and updates"| node_app_store
node_live_graph -->|"augments graph"| node_graph_builder
node_map_screen -->|"loads paths"| node_paths
node_paths -->|"builds graph"| node_graph_builder
node_poi_data -->|"applies edits"| node_admin_store
node_poi_data -->|"reads updates"| node_remote_store
node_paths -->|"applies edits"| node_admin_store
node_admin_poi -->|"saves edits"| node_admin_store
node_admin_paths -->|"loads paths"| node_paths
node_admin_paths -->|"saves edits"| node_admin_store
node_admin_paths -->|"rebuilds graph"| node_graph_builder
node_path_tracer -.->|"records path edits"| node_admin_store
node_settings -->|"controls packs"| node_offline
node_offline -->|"downloads tiles"| node_map_tiles
node_remote_store -->|"checks updates"| node_remote_content
node_remote_content -.->|"provides content"| node_map_screen

click node_app "https://github.com/kaidenpollesch/glcc-navigator/blob/main/App.tsx"
click node_navigator "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/navigation/AppNavigator.tsx"
click node_onboarding "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/OnboardingScreen.tsx"
click node_map_screen "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/MapScreen.tsx"
click node_filters "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/POI/FilterDrawer.tsx"
click node_settings "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/SettingsScreen.tsx"
click node_map "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/Map/GLCCMap.tsx"
click node_poi_markers "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/Map/POIMarkers.tsx"
click node_routing_hook "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useRouting.ts"
click node_astar "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/astar.ts"
click node_multimodal "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/multiModal.ts"
click node_live_graph "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useLiveGraph.ts"
click node_graph_builder "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/buildGraph.ts"
click node_offline "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useOfflinePack.ts"
click node_poi_data "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePOIs.ts"
click node_paths "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePaths.ts"
click node_admin_poi "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/AdminPOIFormScreen.tsx"
click node_admin_paths "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/AdminPathListScreen.tsx"
click node_path_tracer "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePathTracer.ts"
click node_app_store "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useAppStore.ts"
click node_admin_store "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useAdminStore.ts"
click node_remote_store "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useRemoteContentStore.ts"
click node_remote_content "https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/utils/remoteContent.ts"

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_navigator,node_onboarding,node_map_screen,node_filters,node_settings toneBlue
class node_map,node_poi_markers,node_routing_hook,node_astar,node_multimodal,node_live_graph,node_graph_builder,node_offline toneAmber
class node_poi_data,node_paths,node_admin_poi,node_admin_paths,node_path_tracer toneMint
class node_app_store,node_admin_store,node_remote_store,node_remote_content toneRose
class node_visitor,node_map_tiles toneIndigo
```

## Components

### Visitor experience

- [App entry](https://github.com/kaidenpollesch/glcc-navigator/blob/main/App.tsx): `App.tsx`
- [App navigation](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/navigation/AppNavigator.tsx): `src/navigation/AppNavigator.tsx`
- [Onboarding](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/OnboardingScreen.tsx): `src/screens/OnboardingScreen.tsx`
- [Map screen](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/MapScreen.tsx): `src/screens/MapScreen.tsx`
- [POI search](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/POI/FilterDrawer.tsx): `src/components/POI/FilterDrawer.tsx`
- [Settings](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/SettingsScreen.tsx): `src/screens/SettingsScreen.tsx`

### Routing and map

- [Campus map](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/Map/GLCCMap.tsx): `src/components/Map/GLCCMap.tsx`
- [POI markers](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/components/Map/POIMarkers.tsx): `src/components/Map/POIMarkers.tsx`
- [Route coordination](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useRouting.ts): `src/hooks/useRouting.ts`
- [A* routing](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/astar.ts): `src/routing/astar.ts`
- [Gateway routing](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/multiModal.ts): `src/routing/multiModal.ts`
- [Live graph](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useLiveGraph.ts): `src/hooks/useLiveGraph.ts`
- [Graph builder](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/routing/buildGraph.ts): `src/routing/buildGraph.ts`
- [Offline map packs](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/useOfflinePack.ts): `src/hooks/useOfflinePack.ts`

### Content and administration

- [POI data](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePOIs.ts): `src/hooks/usePOIs.ts`
- [Path data](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePaths.ts): `src/hooks/usePaths.ts`
- [POI editor](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/AdminPOIFormScreen.tsx): `src/screens/AdminPOIFormScreen.tsx`
- [Path editor](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/screens/AdminPathListScreen.tsx): `src/screens/AdminPathListScreen.tsx`
- [Path tracing](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/hooks/usePathTracer.ts): `src/hooks/usePathTracer.ts`

### App state and services

- [User preferences](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useAppStore.ts): `src/store/useAppStore.ts`
- [Admin edits](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useAdminStore.ts): `src/store/useAdminStore.ts`
- [Remote content state](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/store/useRemoteContentStore.ts): `src/store/useRemoteContentStore.ts`
- [Remote content updates](https://github.com/kaidenpollesch/glcc-navigator/blob/main/src/utils/remoteContent.ts): `src/utils/remoteContent.ts`

### Other components

- **Visitor**
- **Map tile service**

## Connections

- Visitor → App entry: opens (evidence: `README.md`)
- App entry → App navigation: starts (evidence: `App.tsx`)
- App entry → Remote content state: initializes (evidence: `App.tsx`)
- App navigation → Onboarding: routes to (evidence: `src/navigation/AppNavigator.tsx`)
- App navigation → Map screen: routes to (evidence: `src/navigation/AppNavigator.tsx`)
- Onboarding → User preferences: saves preferences
- Map screen → Campus map: renders (evidence: `src/screens/MapScreen.tsx`)
- Map screen → POI search: opens (evidence: `src/screens/MapScreen.tsx`)
- Map screen → POI data: loads POIs (evidence: `src/screens/MapScreen.tsx`)
- Map screen → Route coordination: calculates routes (evidence: `src/screens/MapScreen.tsx`)
- Map screen → Live graph: builds live graph (evidence: `src/screens/MapScreen.tsx`)
- Map screen → Offline map packs: manages downloads (evidence: `src/screens/MapScreen.tsx`)
- Map screen → Settings: opens (evidence: `src/screens/MapScreen.tsx`)
- Campus map → POI markers: renders (evidence: `src/components/Map/GLCCMap.tsx`)
- Campus map → User preferences: reads route state (evidence: `src/components/Map/GLCCMap.tsx`)
- Route coordination → A* routing: finds route (evidence: `src/hooks/useRouting.ts`)
- Route coordination → Gateway routing: finds gateway (evidence: `src/hooks/useRouting.ts`)
- Route coordination → User preferences: reads and updates (evidence: `src/hooks/useRouting.ts`)
- Live graph → Graph builder: augments graph (evidence: `src/hooks/useLiveGraph.ts`)
- Map screen → Path data: loads paths (evidence: `src/hooks/usePaths.ts`)
- Path data → Graph builder: builds graph (evidence: `src/hooks/usePaths.ts`)
- POI data → Admin edits: applies edits (evidence: `src/hooks/usePOIs.ts`)
- POI data → Remote content state: reads updates (evidence: `src/hooks/usePOIs.ts`)
- Path data → Admin edits: applies edits (evidence: `src/hooks/usePaths.ts`)
- POI editor → Admin edits: saves edits (evidence: `src/store/useAdminStore.ts`)
- Path editor → Path data: loads paths (evidence: `src/screens/AdminPathListScreen.tsx`)
- Path editor → Admin edits: saves edits (evidence: `src/screens/AdminPathListScreen.tsx`)
- Path editor → Graph builder: rebuilds graph (evidence: `src/screens/AdminPathListScreen.tsx`)
- Path tracing → Admin edits: records path edits (evidence: `src/hooks/usePathTracer.ts`)
- Settings → Offline map packs: controls packs (evidence: `src/screens/SettingsScreen.tsx`)
- Offline map packs → Map tile service: downloads tiles (evidence: `src/hooks/useOfflinePack.ts`)
- Remote content state → Remote content updates: checks updates (evidence: `src/store/useRemoteContentStore.ts`)
- Remote content updates → Map screen: provides content (evidence: `README.md`)
