# anas-gorman/beacon architecture

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

- Interactive diagram: https://gitdiagram.com/anas-gorman/beacon
- Repository: https://github.com/anas-gorman/beacon

## Overview

Beacon is a browser-based indoor wayfinding prototype with visitor and administrator experiences. Visitors choose a destination and accessibility preference to get a route and directions; administrators edit the floor map and its rooms and connections. The README describes the page and styling, while the sampled app.js excerpts show editing interactions and routing logic. Because app.js is only partially excerpted, the graph omits unverified wiring and persistence details.

Main entry points: [`index.html`](https://github.com/anas-gorman/beacon/blob/main/index.html) (Page and sign-in), [`app.js`](https://github.com/anas-gorman/beacon/blob/main/app.js) (Accessible routing), [`style.css`](https://github.com/anas-gorman/beacon/blob/main/style.css) (Themes and styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Browser experience"]
  node_page["Page and sign-in<br/>[index.html]"]
  node_styles["Themes and styles<br/>[style.css]"]
  node_app["Browser application<br/>[app.js]"]
end

subgraph group_visitor["Visitor wayfinding"]
  node_destination_search["Room search<br/>[app.js]"]
  node_route_engine["Accessible routing<br/>[app.js]"]
  node_directions["Route directions<br/>[app.js]"]
  node_visitor_map["Visitor map<br/>[app.js]"]
end

subgraph group_admin["Map administration"]
  node_admin_map["Map editor<br/>[app.js]"]
  node_map_interactions["Map interactions<br/>[app.js]"]
  node_properties["Node and edge properties<br/>[app.js]"]
  node_floor_settings["Floor settings<br/>[app.js]"]
  node_map_validation["Map validation<br/>[app.js]"]
end

node_visitor_actor(("Visitor"))
node_admin_actor(("Administrator"))

node_visitor_actor -->|"opens"| node_page
node_admin_actor -->|"opens"| node_page
node_page -->|"hosts"| node_app
node_visitor_actor -->|"searches rooms"| node_destination_search
node_destination_search -->|"selects destination"| node_route_engine
node_route_engine -->|"produces route"| node_directions
node_route_engine -->|"updates route map"| node_visitor_map
node_admin_actor -->|"edits map"| node_admin_map
node_admin_map -->|"handles pointer input"| node_map_interactions
node_map_interactions -->|"selects features"| node_properties
node_admin_actor -->|"edits properties"| node_properties
node_admin_actor -->|"configures floors"| node_floor_settings
node_admin_actor -->|"checks map"| node_map_validation
node_styles -->|"styles"| node_page

click node_page "https://github.com/anas-gorman/beacon/blob/main/index.html"
click node_styles "https://github.com/anas-gorman/beacon/blob/main/style.css"
click node_app "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_destination_search "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_route_engine "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_directions "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_visitor_map "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_admin_map "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_map_interactions "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_properties "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_floor_settings "https://github.com/anas-gorman/beacon/blob/main/app.js"
click node_map_validation "https://github.com/anas-gorman/beacon/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_page,node_styles,node_app toneBlue
class node_destination_search,node_route_engine,node_directions,node_visitor_map toneAmber
class node_admin_map,node_map_interactions,node_properties,node_floor_settings,node_map_validation toneMint
class node_visitor_actor,node_admin_actor toneIndigo
```

## Components

### Browser experience

- [Page and sign-in](https://github.com/anas-gorman/beacon/blob/main/index.html): `index.html`
- [Themes and styles](https://github.com/anas-gorman/beacon/blob/main/style.css): `style.css`
- [Browser application](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`

### Visitor wayfinding

- [Room search](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Accessible routing](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Route directions](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Visitor map](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`

### Map administration

- [Map editor](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Map interactions](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Node and edge properties](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Floor settings](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`
- [Map validation](https://github.com/anas-gorman/beacon/blob/main/app.js): `app.js`

### Other components

- **Visitor**
- **Administrator**

## Connections

- Visitor → Page and sign-in: opens (evidence: `README.md`)
- Administrator → Page and sign-in: opens (evidence: `README.md`)
- Page and sign-in → Browser application: hosts (evidence: `README.md`)
- Visitor → Room search: searches rooms (evidence: `app.js`)
- Room search → Accessible routing: selects destination (evidence: `app.js`)
- Accessible routing → Route directions: produces route (evidence: `app.js`)
- Accessible routing → Visitor map: updates route map (evidence: `app.js`)
- Administrator → Map editor: edits map (evidence: `README.md`)
- Map editor → Map interactions: handles pointer input (evidence: `app.js`)
- Map interactions → Node and edge properties: selects features (evidence: `app.js`)
- Administrator → Node and edge properties: edits properties (evidence: `app.js`)
- Administrator → Floor settings: configures floors (evidence: `app.js`)
- Administrator → Map validation: checks map (evidence: `app.js`)
- Themes and styles → Page and sign-in: styles (evidence: `README.md`)
