# systragroup/quetzal-network-editor architecture

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

- Interactive diagram: https://gitdiagram.com/systragroup/quetzal-network-editor
- Repository: https://github.com/systragroup/quetzal-network-editor

## Overview

Quenedi is a browser-based editor for public-transport and road networks, designed to work with Quetzal. The main workflow is to load network files or a saved scenario, edit network features on a map, optionally prepare data or use network-processing services, configure and launch a model run, then inspect map, table, or picture outputs. The graph includes editing state, routing utilities, cloud scenario storage, authentication, and the documented service and results branches. Some page and component connections are not shown in sampled source, so those links are omitted rather than inferred.

Main entry points: [`src/router/index.js`](https://github.com/systragroup/quetzal-network-editor/blob/master/src/router/index.js) (Page router), [`src/pages/Microservices.vue`](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Microservices.vue) (Processing services), [`src/store/rlinks.ts`](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/rlinks.ts) (Road links state), [`src/composables/APIComposable.ts`](https://github.com/systragroup/quetzal-network-editor/blob/master/src/composables/APIComposable.ts) (Service API client)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_shell["App shell<br/>[App.vue]"]
  node_router["Page router<br/>[index.js]"]
end

subgraph group_network["Network editing"]
  node_import["Network import<br/>[Import.vue]"]
  node_links[("Transit links state<br/>[links.ts]")]
  node_roadlinks[("Road links state<br/>[rlinks.ts]")]
  node_mapedit["Map link editor<br/>[RoadLinks.vue]"]
  node_drawlinks["Link drawing<br/>[RoadLinksDraw.vue]"]
  node_routing["Network routing<br/>[routing.js]"]
  node_nearest["Nearest-point search<br/>[nearest.js]"]
  node_networkops["Network calculations<br/>[network.ts]"]
  node_geojson["GeoJSON model<br/>[geojson.ts]"]
  node_scenario["Scenario files<br/>[index.ts]"]
end

subgraph group_services["Data services"]
  node_microservices["Processing services<br/>[Microservices.vue]"]
  node_gtfs["GTFS import<br/>[GTFSImporter.ts]"]
  node_osm["OSM import<br/>[OSMImporter.ts]"]
  node_matching["Map matching<br/>[MapMatching.ts]"]
  node_matrix["Road matrix casting"]
  node_transit["Transit processing<br/>[Transit.ts]"]
  node_api["Service API client<br/>[APIComposable.ts]"]
end

subgraph group_execution["Runs and results"]
  node_run[("Model run state<br/>[run.ts]")]
  node_runpage["Run configuration<br/>[Run.vue]"]
  node_results["Results views<br/>[results.ts]"]
  node_resultmap["Results map<br/>[ResultMap.vue]"]
  node_resulttable["Results table<br/>[ResultTable.vue]"]
  node_resultpicture["Results pictures<br/>[ResultPicture.vue]"]
end

subgraph group_identity["Cloud and identity"]
  node_aws[("Scenario object storage<br/>[AWSClient.js]")]
  node_auth[("User identity state<br/>[user.ts]")]
end

node_user(("Network planner"))

node_user -->|"uses"| node_shell
node_shell -->|"renders routes"| node_router
node_router -->|"routes to"| node_import
node_router -->|"routes to"| node_microservices
node_router -->|"routes to"| node_runpage
node_router -->|"routes to"| node_resultmap
node_router -->|"routes to"| node_resulttable
node_router -->|"routes to"| node_resultpicture
node_user -->|"loads network files"| node_import
node_import -.->|"loads links"| node_links
node_import -.->|"loads road links"| node_roadlinks
node_user -->|"edits network"| node_mapedit
node_mapedit -->|"uses drawing"| node_drawlinks
node_mapedit -.->|"edits state"| node_roadlinks
node_routing -->|"builds search tree"| node_nearest
node_routing -->|"calculates link metrics"| node_networkops
node_routing -->|"reads link state"| node_links
node_routing -->|"reads road state"| node_roadlinks
node_networkops -->|"uses GeoJSON types"| node_geojson
node_scenario -->|"loads network state"| node_links
node_scenario -->|"loads road state"| node_roadlinks
node_scenario -->|"loads run state"| node_run
node_scenario -->|"uses storage client"| node_aws
node_auth -->|"configures credentials"| node_aws
node_microservices -.->|"offers processing"| node_gtfs
node_microservices -.->|"offers processing"| node_osm
node_microservices -.->|"offers processing"| node_matching
node_microservices -.->|"offers processing"| node_matrix
node_microservices -.->|"offers processing"| node_transit
node_gtfs -->|"calls service API"| node_api
node_osm -->|"calls service API"| node_api
node_matching -->|"calls service API"| node_api
node_matching -->|"uses road state"| node_roadlinks
node_matrix -->|"calls service API"| node_api
node_transit -->|"calls service API"| node_api
node_user -->|"configures run"| node_runpage
node_user -->|"inspects results"| node_resultmap
node_user -->|"inspects results"| node_resulttable
node_user -->|"inspects results"| node_resultpicture

click node_shell "https://github.com/systragroup/quetzal-network-editor/blob/master/src/App.vue"
click node_router "https://github.com/systragroup/quetzal-network-editor/blob/master/src/router/index.js"
click node_import "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Import.vue"
click node_links "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/links.ts"
click node_roadlinks "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/rlinks.ts"
click node_mapedit "https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/map/RoadLinks.vue"
click node_drawlinks "https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/map/RoadLinksDraw.vue"
click node_routing "https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/routing/routing.js"
click node_nearest "https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/routing/nearest.js"
click node_networkops "https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/network.ts"
click node_geojson "https://github.com/systragroup/quetzal-network-editor/blob/master/src/types/geojson.ts"
click node_scenario "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/index.ts"
click node_aws "https://github.com/systragroup/quetzal-network-editor/blob/master/src/AWSClient.js"
click node_auth "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/user.ts"
click node_microservices "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Microservices.vue"
click node_gtfs "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/GTFSImporter.ts"
click node_osm "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/OSMImporter.ts"
click node_matching "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/MapMatching.ts"
click node_matrix "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/MatrixRoadCaster.ts"
click node_transit "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/Transit.ts"
click node_api "https://github.com/systragroup/quetzal-network-editor/blob/master/src/composables/APIComposable.ts"
click node_run "https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/run.ts"
click node_runpage "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Run.vue"
click node_results "https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/results/results.ts"
click node_resultmap "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultMap.vue"
click node_resulttable "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultTable.vue"
click node_resultpicture "https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultPicture.vue"

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_shell,node_router toneBlue
class node_import,node_links,node_roadlinks,node_mapedit,node_drawlinks,node_routing,node_nearest,node_networkops,node_geojson,node_scenario toneAmber
class node_microservices,node_gtfs,node_osm,node_matching,node_matrix,node_transit,node_api toneMint
class node_run,node_runpage,node_results,node_resultmap,node_resulttable,node_resultpicture toneRose
class node_aws,node_auth,node_user toneIndigo
```

## Components

### Application

- [App shell](https://github.com/systragroup/quetzal-network-editor/blob/master/src/App.vue): `src/App.vue`
- [Page router](https://github.com/systragroup/quetzal-network-editor/blob/master/src/router/index.js): `src/router/index.js`

### Network editing

- [Network import](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Import.vue): `src/pages/Import.vue`
- [Transit links state](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/links.ts): `src/store/links.ts`
- [Road links state](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/rlinks.ts): `src/store/rlinks.ts`
- [Map link editor](https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/map/RoadLinks.vue): `src/components/map/RoadLinks.vue`
- [Link drawing](https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/map/RoadLinksDraw.vue): `src/components/map/RoadLinksDraw.vue`
- [Network routing](https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/routing/routing.js): `src/utils/routing/routing.js`
- [Nearest-point search](https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/routing/nearest.js): `src/utils/routing/nearest.js`
- [Network calculations](https://github.com/systragroup/quetzal-network-editor/blob/master/src/utils/network.ts): `src/utils/network.ts`
- [GeoJSON model](https://github.com/systragroup/quetzal-network-editor/blob/master/src/types/geojson.ts): `src/types/geojson.ts`
- [Scenario files](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/index.ts): `src/store/index.ts`

### Data services

- [Processing services](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Microservices.vue): `src/pages/Microservices.vue`
- [GTFS import](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/GTFSImporter.ts): `src/store/GTFSImporter.ts`
- [OSM import](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/OSMImporter.ts): `src/store/OSMImporter.ts`
- [Map matching](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/MapMatching.ts): `src/store/MapMatching.ts`
- [Road matrix casting](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/MatrixRoadCaster.ts): `src/store/MatrixRoadCaster.ts`
- [Transit processing](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/Transit.ts): `src/store/Transit.ts`
- [Service API client](https://github.com/systragroup/quetzal-network-editor/blob/master/src/composables/APIComposable.ts): `src/composables/APIComposable.ts`

### Runs and results

- [Model run state](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/run.ts): `src/store/run.ts`
- [Run configuration](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/Run.vue): `src/pages/Run.vue`
- [Results views](https://github.com/systragroup/quetzal-network-editor/blob/master/src/components/results/results.ts): `src/components/results/results.ts`
- [Results map](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultMap.vue): `src/pages/ResultMap.vue`
- [Results table](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultTable.vue): `src/pages/ResultTable.vue`
- [Results pictures](https://github.com/systragroup/quetzal-network-editor/blob/master/src/pages/ResultPicture.vue): `src/pages/ResultPicture.vue`

### Cloud and identity

- [Scenario object storage](https://github.com/systragroup/quetzal-network-editor/blob/master/src/AWSClient.js): `src/AWSClient.js`
- [User identity state](https://github.com/systragroup/quetzal-network-editor/blob/master/src/store/user.ts): `src/store/user.ts`

### Other components

- **Network planner**

## Connections

- Network planner → App shell: uses (evidence: `src/App.vue`)
- App shell → Page router: renders routes (evidence: `src/App.vue`)
- Page router → Network import: routes to (evidence: `src/router/index.js`)
- Page router → Processing services: routes to (evidence: `src/router/index.js`)
- Page router → Run configuration: routes to (evidence: `src/router/index.js`)
- Page router → Results map: routes to (evidence: `src/router/index.js`)
- Page router → Results table: routes to (evidence: `src/router/index.js`)
- Page router → Results pictures: routes to (evidence: `src/router/index.js`)
- Network planner → Network import: loads network files
- Network import → Transit links state: loads links
- Network import → Road links state: loads road links
- Network planner → Map link editor: edits network
- Map link editor → Link drawing: uses drawing (evidence: `src/components/map/RoadLinks.vue`)
- Map link editor → Road links state: edits state
- Network routing → Nearest-point search: builds search tree (evidence: `src/utils/routing/routing.js`)
- Network routing → Network calculations: calculates link metrics (evidence: `src/utils/routing/routing.js`)
- Network routing → Transit links state: reads link state (evidence: `src/utils/routing/routing.js`)
- Network routing → Road links state: reads road state (evidence: `src/utils/routing/routing.js`)
- Network calculations → GeoJSON model: uses GeoJSON types (evidence: `src/utils/network.ts`)
- Scenario files → Transit links state: loads network state (evidence: `src/store/index.ts`)
- Scenario files → Road links state: loads road state (evidence: `src/store/index.ts`)
- Scenario files → Model run state: loads run state (evidence: `src/store/index.ts`)
- Scenario files → Scenario object storage: uses storage client (evidence: `src/store/index.ts`)
- User identity state → Scenario object storage: configures credentials (evidence: `src/store/user.ts`)
- Processing services → GTFS import: offers processing
- Processing services → OSM import: offers processing
- Processing services → Map matching: offers processing
- Processing services → Road matrix casting: offers processing
- Processing services → Transit processing: offers processing
- GTFS import → Service API client: calls service API (evidence: `src/store/GTFSImporter.ts`)
- OSM import → Service API client: calls service API (evidence: `src/store/OSMImporter.ts`)
- Map matching → Service API client: calls service API (evidence: `src/store/MapMatching.ts`)
- Map matching → Road links state: uses road state (evidence: `src/store/MapMatching.ts`)
- Road matrix casting → Service API client: calls service API (evidence: `src/store/MatrixRoadCaster.ts`)
- Transit processing → Service API client: calls service API (evidence: `src/store/Transit.ts`)
- Network planner → Run configuration: configures run
- Network planner → Results map: inspects results
- Network planner → Results table: inspects results
- Network planner → Results pictures: inspects results
