# wachiraphantisanthia/direction-navigate architecture

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

- Interactive diagram: https://gitdiagram.com/wachiraphantisanthia/direction-navigate
- Repository: https://github.com/wachiraphantisanthia/direction-navigate

## Overview

This is a browser-based city mall navigator. A visitor selects a floor, searches or browses its stores, selects a destination, and views a route on the floor map; the app also estimates walking distance and time and can generate a QR code for navigation. The excerpts show these responsibilities within one JavaScript file, so the graph separates them by role rather than implying separate modules. Source excerpts are partial, and the README is empty; links not directly evidenced are omitted.

Main entry points: [`app.js`](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js) (Floor tabs and store list), [`map`](https://github.com/wachiraphantisanthia/direction-navigate/tree/main/map) (Floor map images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Store discovery"]
  node_floor_catalog["Floor store data<br/>[app.js]"]
  node_floor_browse["Floor tabs and store list<br/>[app.js]"]
  node_store_select["Store selection<br/>[app.js]"]
end

subgraph group_navigation["Route guidance"]
  node_route_calc["Route coordinates<br/>[app.js]"]
  node_distance_est["Distance and time estimate<br/>[app.js]"]
  node_map_render["Route map rendering<br/>[app.js]"]
  node_floor_maps["Floor map images"]
end

subgraph group_sharing["Navigation sharing"]
  node_qr_modal["QR modal<br/>[app.js]"]
  node_qr_code["QRCode library"]
end

node_visitor(("Mall visitor"))

node_visitor -->|"uses"| node_floor_browse
node_floor_browse -->|"filters"| node_floor_catalog
node_floor_browse -->|"selects"| node_store_select
node_map_render -->|"gets coordinates"| node_route_calc
node_map_render -->|"loads image"| node_floor_maps
node_qr_modal -->|"generates code"| node_qr_code

click node_floor_catalog "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_floor_browse "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_store_select "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_route_calc "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_distance_est "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_map_render "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js"
click node_floor_maps "https://github.com/wachiraphantisanthia/direction-navigate/tree/main/map"
click node_qr_modal "https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.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_floor_catalog,node_floor_browse,node_store_select toneBlue
class node_route_calc,node_distance_est,node_map_render,node_floor_maps toneAmber
class node_qr_modal,node_qr_code toneMint
class node_visitor toneIndigo
```

## Components

### Store discovery

- [Floor store data](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- [Floor tabs and store list](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- [Store selection](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`

### Route guidance

- [Route coordinates](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- [Distance and time estimate](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- [Route map rendering](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- [Floor map images](https://github.com/wachiraphantisanthia/direction-navigate/tree/main/map): `map`

### Navigation sharing

- [QR modal](https://github.com/wachiraphantisanthia/direction-navigate/blob/main/app.js): `app.js`
- **QRCode library**

### Other components

- **Mall visitor**

## Connections

- Mall visitor → Floor tabs and store list: uses (evidence: `app.js`)
- Floor tabs and store list → Floor store data: filters (evidence: `app.js`)
- Floor tabs and store list → Store selection: selects (evidence: `app.js`)
- Route map rendering → Route coordinates: gets coordinates (evidence: `app.js`)
- Route map rendering → Floor map images: loads image (evidence: `app.js`)
- QR modal → QRCode library: generates code (evidence: `app.js`)
