# monsieurjadex/aeroflot-snippets architecture

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

- Interactive diagram: https://gitdiagram.com/monsieurjadex/aeroflot-snippets
- Repository: https://github.com/monsieurjadex/aeroflot-snippets

## Overview

SkyMunky is an airport-engineering dispatch system: dispatchers create and queue aircraft-related work, engineers receive tasks and report progress and positions, while the backend provides authenticated APIs, map/routing support, and operational records. The frontend also has login and MCC screens; the repository includes a .tmj parser and a task-expiry scheduler. The main API and selected UI interactions are evidenced by excerpts; several feature modules are indexed but unsampled, so their internal connections are omitted.

Main entry points: [`backend/src/main.rs`](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/main.rs) (API startup and routes), [`frontend/src/App.jsx`](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/App.jsx) (Route shell), [`frontend/src/pages/WorkerPage.jsx`](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/WorkerPage.jsx) (Engineer console), [`frontend/src/lib/session.js`](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/session.js) (Session and API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Web application"]
  node_app["Route shell<br/>[App.jsx]"]
  node_login["Login screen<br/>[LoginPage.jsx]"]
  node_dispatch["Dispatcher console<br/>[DispatcherPage.jsx]"]
  node_worker["Engineer console<br/>[WorkerPage.jsx]"]
  node_mcc["MCC console<br/>[MccPage.jsx]"]
  node_session["Session and API<br/>[session.js]"]
  node_live["Live operations client<br/>[live.js]"]
  node_apron["Apron map display<br/>[apronMap.js]"]
end

subgraph group_api["Backend API"]
  node_backend["API startup and routes<br/>[main.rs]"]
  node_auth["Authentication handlers<br/>[auth.rs]"]
  node_ops["Operations handlers<br/>[ops.rs]"]
  node_geo["Geospatial handlers<br/>[geo.rs]"]
  node_track["Tracking handlers<br/>[track.rs]"]
  node_middleware["Auth middleware<br/>[middleware.rs]"]
end

subgraph group_domain["Operations domain"]
  node_dbschema[("Operational records<br/>[schema.rs]")]
  node_maplogic["Map loading<br/>[maps.rs]"]
  node_maptypes["Map model<br/>[map.rs]"]
  node_routing["Route planning<br/>[graph.rs]"]
  node_classifier["Issue classification<br/>[classifier.rs]"]
  node_ranking["Task ranking<br/>[rank.rs]"]
end

subgraph group_tools["Supporting services"]
  node_parser["TMJ parser<br/>[parser.rs]"]
  node_geoparser["Map geometry parser<br/>[geo.rs]"]
  node_scheduler["Task expiry scheduler<br/>[database.py]"]
end

node_browser(("User"))
node_postgres[("PostgreSQL")]
node_redis[("Redis")]

node_browser -->|"opens"| node_app
node_app -->|"routes to"| node_login
node_app -->|"routes to"| node_dispatch
node_app -->|"routes to"| node_worker
node_app -->|"routes to"| node_mcc
node_login -.->|"authenticates via"| node_session
node_dispatch -->|"requests API"| node_session
node_dispatch -->|"loads operations"| node_live
node_worker -->|"requests API"| node_session
node_worker -->|"sends updates"| node_live
node_worker -->|"renders map"| node_apron
node_session -->|"HTTP requests"| node_backend
node_backend -->|"routes auth"| node_auth
node_backend -->|"routes operations"| node_ops
node_backend -->|"routes geospatial"| node_geo
node_backend -->|"routes tracking"| node_track
node_backend -->|"protects routes"| node_middleware
node_ops -->|"loads active map"| node_maplogic
node_maplogic -->|"uses map model"| node_maptypes
node_routing -->|"uses map model"| node_maptypes
node_backend -->|"reads and writes"| node_postgres
node_backend -->|"reads and writes"| node_redis
node_scheduler -->|"deactivates expired tasks"| node_postgres
node_parser -->|"uses geometry"| node_geoparser

click node_app "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/App.jsx"
click node_login "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/LoginPage.jsx"
click node_dispatch "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/DispatcherPage.jsx"
click node_worker "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/WorkerPage.jsx"
click node_mcc "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/MccPage.jsx"
click node_session "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/session.js"
click node_live "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/live.js"
click node_apron "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/apronMap.js"
click node_backend "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/main.rs"
click node_auth "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/auth.rs"
click node_ops "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/ops.rs"
click node_geo "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/geo.rs"
click node_track "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/track.rs"
click node_middleware "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/middleware.rs"
click node_dbschema "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/database/schema.rs"
click node_maplogic "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/maps.rs"
click node_maptypes "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/types/map.rs"
click node_routing "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/graph.rs"
click node_classifier "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/types/classifier.rs"
click node_ranking "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/rank.rs"
click node_parser "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/parser/src/parser.rs"
click node_geoparser "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/parser/src/geo.rs"
click node_scheduler "https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/scheduler/src/scheduler/database.py"

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_login,node_dispatch,node_worker,node_mcc,node_session,node_live,node_apron,node_browser toneBlue
class node_backend,node_auth,node_ops,node_geo,node_track,node_middleware,node_postgres,node_redis toneAmber
class node_dbschema,node_maplogic,node_maptypes,node_routing,node_classifier,node_ranking toneMint
class node_parser,node_geoparser,node_scheduler toneRose
```

## Components

### Web application

- [Route shell](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Login screen](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/LoginPage.jsx): `frontend/src/pages/LoginPage.jsx`
- [Dispatcher console](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/DispatcherPage.jsx): `frontend/src/pages/DispatcherPage.jsx`
- [Engineer console](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/WorkerPage.jsx): `frontend/src/pages/WorkerPage.jsx`
- [MCC console](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/pages/MccPage.jsx): `frontend/src/pages/MccPage.jsx`
- [Session and API](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/session.js): `frontend/src/lib/session.js`
- [Live operations client](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/live.js): `frontend/src/lib/live.js`
- [Apron map display](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/frontend/src/lib/apronMap.js): `frontend/src/lib/apronMap.js`

### Backend API

- [API startup and routes](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/main.rs): `backend/src/main.rs`
- [Authentication handlers](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/auth.rs): `backend/src/router/auth.rs`
- [Operations handlers](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/ops.rs): `backend/src/router/ops.rs`
- [Geospatial handlers](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/geo.rs): `backend/src/router/geo.rs`
- [Tracking handlers](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/router/track.rs): `backend/src/router/track.rs`
- [Auth middleware](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/middleware.rs): `backend/src/middleware.rs`

### Operations domain

- [Operational records](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/database/schema.rs): `backend/src/database/schema.rs`
- [Map loading](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/maps.rs): `backend/src/maps.rs`
- [Map model](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/types/map.rs): `backend/src/types/map.rs`
- [Route planning](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/graph.rs): `backend/src/graph.rs`
- [Issue classification](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/types/classifier.rs): `backend/src/types/classifier.rs`
- [Task ranking](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/backend/src/rank.rs): `backend/src/rank.rs`

### Supporting services

- [TMJ parser](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/parser/src/parser.rs): `tools/parser/src/parser.rs`
- [Map geometry parser](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/parser/src/geo.rs): `tools/parser/src/geo.rs`
- [Task expiry scheduler](https://github.com/monsieurjadex/aeroflot-snippets/blob/master/tools/scheduler/src/scheduler/database.py): `tools/scheduler/src/scheduler/database.py`

### Other components

- **User**
- **PostgreSQL**
- **Redis**

## Connections

- User → Route shell: opens (evidence: `frontend/src/App.jsx`)
- Route shell → Login screen: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Dispatcher console: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → Engineer console: routes to (evidence: `frontend/src/App.jsx`)
- Route shell → MCC console: routes to (evidence: `frontend/src/App.jsx`)
- Login screen → Session and API: authenticates via
- Dispatcher console → Session and API: requests API (evidence: `frontend/src/pages/DispatcherPage.jsx`)
- Dispatcher console → Live operations client: loads operations (evidence: `frontend/src/pages/DispatcherPage.jsx`)
- Engineer console → Session and API: requests API (evidence: `frontend/src/pages/WorkerPage.jsx`)
- Engineer console → Live operations client: sends updates (evidence: `frontend/src/pages/WorkerPage.jsx`)
- Engineer console → Apron map display: renders map (evidence: `frontend/src/pages/WorkerPage.jsx`)
- Session and API → API startup and routes: HTTP requests (evidence: `frontend/src/lib/session.js`)
- API startup and routes → Authentication handlers: routes auth (evidence: `backend/src/main.rs`)
- API startup and routes → Operations handlers: routes operations (evidence: `backend/src/main.rs`)
- API startup and routes → Geospatial handlers: routes geospatial (evidence: `backend/src/main.rs`)
- API startup and routes → Tracking handlers: routes tracking (evidence: `backend/src/main.rs`)
- API startup and routes → Auth middleware: protects routes (evidence: `backend/src/main.rs`)
- Operations handlers → Map loading: loads active map (evidence: `backend/src/router/mod.rs`)
- Map loading → Map model: uses map model (evidence: `backend/src/maps.rs`)
- Route planning → Map model: uses map model (evidence: `backend/src/graph.rs`)
- API startup and routes → PostgreSQL: reads and writes
- API startup and routes → Redis: reads and writes
- Task expiry scheduler → PostgreSQL: deactivates expired tasks (evidence: `tools/scheduler/src/scheduler/database.py`)
- TMJ parser → Map geometry parser: uses geometry (evidence: `tools/parser/src/parser.rs`)
