# fedorterrell/easyroute architecture

> Architecture diagram of the GitHub repository fedorterrell/easyroute, 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/fedorterrell/easyroute
- Repository: https://github.com/fedorterrell/easyroute

## Overview

Easy Route is a browser-based event logistics tool. The main workflow is to find and position a venue, add access points and practical details, then produce a printable plan and a shareable team message or fiche. The graph also includes saved venues, calendar support, and offline use. Relationships among sampled modules are grounded in their imports and calls; some broader capabilities and the Worker interaction are documented in the README, while unsampled internals are not inferred.

Main entry points: [`js/main.js`](https://github.com/fedorterrell/easyroute/blob/main/js/main.js) (App startup), [`js/sheet.js`](https://github.com/fedorterrell/easyroute/blob/main/js/sheet.js) (Map editor), [`js/fiche.js`](https://github.com/fedorterrell/easyroute/blob/main/js/fiche.js) (Shared fiche), [`js/message.js`](https://github.com/fedorterrell/easyroute/blob/main/js/message.js) (Team message)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editor["Venue editor"]
  node_main["App startup<br/>[main.js]"]
  node_core["Shared state<br/>[core.js]"]
  node_places["Place search<br/>[places.js]"]
  node_sheet["Map editor<br/>[sheet.js]"]
  node_assets["Images and fonts<br/>[assets.js]"]
  node_guide["Getting started<br/>[guide.js]"]
end

subgraph group_outputs["Plans and messages"]
  node_links["Route links and QR<br/>[links.js]"]
  node_message["Team message<br/>[message.js]"]
  node_planning["Day schedule<br/>[planning.js]"]
  node_export["Plan export<br/>[export.js]"]
end

subgraph group_sharing["Sharing and offline"]
  node_fiche["Shared fiche<br/>[fiche.js]"]
  node_worker["Fiche service"]
  node_offline["Offline cache<br/>[sw.js]"]
end

subgraph group_state["Local state"]
  node_local[("Device storage")]
  node_storage["Storage manager<br/>[storage.js]"]
end

node_user(("Event team"))
node_geocoding["Geocoding service"]
node_maps["Map tiles"]
node_routes["Maps and calendar apps"]

node_user -->|"opens tool"| node_main
node_main -->|"initializes"| node_places
node_main -->|"initializes"| node_sheet
node_main -->|"initializes"| node_assets
node_main -->|"initializes"| node_message
node_main -->|"initializes"| node_planning
node_main -->|"initializes"| node_export
node_main -->|"initializes"| node_links
node_main -->|"initializes"| node_fiche
node_main -->|"initializes"| node_guide
node_places -->|"looks up"| node_geocoding
node_places -->|"updates position"| node_sheet
node_sheet -->|"loads tiles"| node_maps
node_sheet -->|"refreshes"| node_message
node_sheet -->|"renders map links"| node_links
node_assets -->|"refreshes"| node_links
node_assets -->|"schedules redraw"| node_sheet
node_links -->|"updates"| node_message
node_message -->|"provides directions"| node_routes
node_planning -->|"refreshes"| node_message
node_planning -->|"schedules redraw"| node_sheet
node_export -->|"draws plan"| node_sheet
node_export -->|"packages message"| node_message
node_export -->|"shares files"| node_user
node_fiche -->|"draws plan"| node_sheet
node_fiche -->|"uses calendar data"| node_message
node_fiche -->|"saves plan"| node_export
node_fiche -->|"creates or updates"| node_worker
node_worker -->|"serves fiche links"| node_fiche
node_fiche -->|"shows team view"| node_user
node_main -->|"uses offline app"| node_offline
node_offline -->|"caches site data"| node_local
node_storage -->|"saves sessions and venues"| node_local
node_main -->|"initializes"| node_storage
node_guide -->|"loads demo state"| node_storage
node_sheet -->|"autosaves"| node_storage
node_assets -->|"remembers assets"| node_local

click node_main "https://github.com/fedorterrell/easyroute/blob/main/js/main.js"
click node_core "https://github.com/fedorterrell/easyroute/blob/main/js/core.js"
click node_places "https://github.com/fedorterrell/easyroute/blob/main/js/places.js"
click node_sheet "https://github.com/fedorterrell/easyroute/blob/main/js/sheet.js"
click node_assets "https://github.com/fedorterrell/easyroute/blob/main/js/assets.js"
click node_guide "https://github.com/fedorterrell/easyroute/blob/main/js/guide.js"
click node_links "https://github.com/fedorterrell/easyroute/blob/main/js/links.js"
click node_message "https://github.com/fedorterrell/easyroute/blob/main/js/message.js"
click node_planning "https://github.com/fedorterrell/easyroute/blob/main/js/planning.js"
click node_export "https://github.com/fedorterrell/easyroute/blob/main/js/export.js"
click node_fiche "https://github.com/fedorterrell/easyroute/blob/main/js/fiche.js"
click node_worker "https://github.com/fedorterrell/easyroute/blob/main/worker/easyroute-fiches.js"
click node_offline "https://github.com/fedorterrell/easyroute/blob/main/sw.js"
click node_storage "https://github.com/fedorterrell/easyroute/blob/main/js/storage.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_main,node_core,node_places,node_sheet,node_assets,node_guide toneBlue
class node_links,node_message,node_planning,node_export toneAmber
class node_fiche,node_worker,node_offline toneMint
class node_local,node_storage toneRose
class node_user,node_geocoding,node_maps,node_routes toneIndigo
```

## Components

### Venue editor

- [App startup](https://github.com/fedorterrell/easyroute/blob/main/js/main.js): `js/main.js`
- [Shared state](https://github.com/fedorterrell/easyroute/blob/main/js/core.js): `js/core.js`
- [Place search](https://github.com/fedorterrell/easyroute/blob/main/js/places.js): `js/places.js`
- [Map editor](https://github.com/fedorterrell/easyroute/blob/main/js/sheet.js): `js/sheet.js`
- [Images and fonts](https://github.com/fedorterrell/easyroute/blob/main/js/assets.js): `js/assets.js`
- [Getting started](https://github.com/fedorterrell/easyroute/blob/main/js/guide.js): `js/guide.js`

### Plans and messages

- [Route links and QR](https://github.com/fedorterrell/easyroute/blob/main/js/links.js): `js/links.js`
- [Team message](https://github.com/fedorterrell/easyroute/blob/main/js/message.js): `js/message.js`
- [Day schedule](https://github.com/fedorterrell/easyroute/blob/main/js/planning.js): `js/planning.js`
- [Plan export](https://github.com/fedorterrell/easyroute/blob/main/js/export.js): `js/export.js`

### Sharing and offline

- [Shared fiche](https://github.com/fedorterrell/easyroute/blob/main/js/fiche.js): `js/fiche.js`
- [Fiche service](https://github.com/fedorterrell/easyroute/blob/main/worker/easyroute-fiches.js): `worker/easyroute-fiches.js`
- [Offline cache](https://github.com/fedorterrell/easyroute/blob/main/sw.js): `sw.js`

### Local state

- **Device storage**
- [Storage manager](https://github.com/fedorterrell/easyroute/blob/main/js/storage.js): `js/storage.js`

### Other components

- **Event team**
- **Geocoding service**
- **Map tiles**
- **Maps and calendar apps**

## Connections

- Event team → App startup: opens tool (evidence: `README.md`)
- App startup → Place search: initializes (evidence: `js/main.js`)
- App startup → Map editor: initializes (evidence: `js/main.js`)
- App startup → Images and fonts: initializes (evidence: `js/main.js`)
- App startup → Team message: initializes (evidence: `js/main.js`)
- App startup → Day schedule: initializes (evidence: `js/main.js`)
- App startup → Plan export: initializes (evidence: `js/main.js`)
- App startup → Route links and QR: initializes (evidence: `js/main.js`)
- App startup → Shared fiche: initializes (evidence: `js/main.js`)
- App startup → Getting started: initializes (evidence: `js/main.js`)
- Place search → Geocoding service: looks up (evidence: `js/places.js`)
- Place search → Map editor: updates position (evidence: `js/places.js`)
- Map editor → Map tiles: loads tiles (evidence: `README.md`)
- Map editor → Team message: refreshes (evidence: `js/sheet.js`)
- Map editor → Route links and QR: renders map links (evidence: `js/sheet.js`)
- Images and fonts → Route links and QR: refreshes (evidence: `js/assets.js`)
- Images and fonts → Map editor: schedules redraw (evidence: `js/assets.js`)
- Route links and QR → Team message: updates (evidence: `js/links.js`)
- Team message → Maps and calendar apps: provides directions (evidence: `README.md`)
- Day schedule → Team message: refreshes (evidence: `js/planning.js`)
- Day schedule → Map editor: schedules redraw (evidence: `js/planning.js`)
- Plan export → Map editor: draws plan (evidence: `js/export.js`)
- Plan export → Team message: packages message (evidence: `js/export.js`)
- Plan export → Event team: shares files (evidence: `README.md`)
- Shared fiche → Map editor: draws plan (evidence: `js/fiche.js`)
- Shared fiche → Team message: uses calendar data (evidence: `js/fiche.js`)
- Shared fiche → Plan export: saves plan (evidence: `js/fiche.js`)
- Shared fiche → Fiche service: creates or updates (evidence: `js/fiche.js`)
- Fiche service → Shared fiche: serves fiche links (evidence: `README.md`)
- Shared fiche → Event team: shows team view (evidence: `README.md`)
- App startup → Offline cache: uses offline app (evidence: `README.md`)
- Offline cache → Device storage: caches site data (evidence: `README.md`)
- Storage manager → Device storage: saves sessions and venues (evidence: `js/storage.js`)
- App startup → Storage manager: initializes (evidence: `js/main.js`)
- Getting started → Storage manager: loads demo state (evidence: `js/guide.js`)
- Map editor → Storage manager: autosaves (evidence: `js/sheet.js`)
- Images and fonts → Device storage: remembers assets (evidence: `js/assets.js`)
