# laxentis/arse architecture

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

## Overview

ARSE reads airport and wind-selection settings, fetches the required VATSIM METARs in one request, selects departure and arrival runways (including configured linked designators), then overwrites the EuroScope runway file. Users can run this workflow through either the CLI or the GPUI interface; the GUI also displays per-airport results or errors. The graph covers the principal runtime stages and documented configuration capabilities. Source excerpts support the shown calls; unsampled modules and additional wiring are not inferred.

Main entry points: [`src/main.rs`](https://github.com/laxentis/arse/blob/master/src/main.rs) (CLI workflow), [`src/gui.rs`](https://github.com/laxentis/arse/blob/master/src/gui.rs) (GUI selection workflow), [`src/weather.rs`](https://github.com/laxentis/arse/blob/master/src/weather.rs) (METAR client), [`src/config.rs`](https://github.com/laxentis/arse/blob/master/src/config.rs) (Config reader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application entry"]
  node_cli["CLI workflow<br/>[main.rs]"]
  node_gui["GUI interface<br/>[gui.rs]"]
  node_gui_workflow["GUI selection workflow<br/>[gui.rs]"]
end

subgraph group_config["Configuration"]
  node_config_logic["Config reader<br/>[config.rs]"]
  node_config_file["JSON config<br/>[arse.json]"]
end

subgraph group_weather["Weather input"]
  node_weather_logic["METAR client<br/>[weather.rs]"]
end

subgraph group_selection["Runway selection"]
  node_airport["Airport runway selector<br/>[airport.rs]"]
end

subgraph group_output["Runway output"]
  node_runway_writer["Runway file writer<br/>[runway_file.rs]"]
  node_rwy_file["EuroScope runway file"]
end

node_user(("User"))
node_vatsim["VATSIM METAR service"]

node_user -->|"runs"| node_cli
node_user -->|"launches"| node_gui
node_cli -->|"reads settings"| node_config_logic
node_config_logic -->|"reads JSON"| node_config_file
node_cli -->|"fetches METARs"| node_weather_logic
node_weather_logic -->|"requests reports"| node_vatsim
node_cli -->|"selects runways"| node_airport
node_cli -->|"looks up reports"| node_weather_logic
node_cli -->|"writes selections"| node_runway_writer
node_runway_writer -->|"overwrites"| node_rwy_file
node_gui -->|"starts workflow"| node_gui_workflow
node_gui_workflow -->|"reads settings"| node_config_logic
node_gui_workflow -->|"fetches METARs"| node_weather_logic
node_gui_workflow -->|"looks up reports"| node_weather_logic
node_gui_workflow -->|"selects runways"| node_airport
node_gui_workflow -->|"writes selections"| node_runway_writer

click node_cli "https://github.com/laxentis/arse/blob/master/src/main.rs"
click node_gui "https://github.com/laxentis/arse/blob/master/src/gui.rs"
click node_gui_workflow "https://github.com/laxentis/arse/blob/master/src/gui.rs"
click node_config_logic "https://github.com/laxentis/arse/blob/master/src/config.rs"
click node_config_file "https://github.com/laxentis/arse/blob/master/arse.json"
click node_weather_logic "https://github.com/laxentis/arse/blob/master/src/weather.rs"
click node_airport "https://github.com/laxentis/arse/blob/master/src/airport.rs"
click node_runway_writer "https://github.com/laxentis/arse/blob/master/src/runway_file.rs"

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_cli,node_gui,node_gui_workflow,node_user toneBlue
class node_config_logic,node_config_file toneAmber
class node_weather_logic toneMint
class node_airport toneRose
class node_runway_writer,node_rwy_file,node_vatsim toneIndigo
```

## Components

### Application entry

- [CLI workflow](https://github.com/laxentis/arse/blob/master/src/main.rs): `src/main.rs`
- [GUI interface](https://github.com/laxentis/arse/blob/master/src/gui.rs): `src/gui.rs`
- [GUI selection workflow](https://github.com/laxentis/arse/blob/master/src/gui.rs): `src/gui.rs`

### Configuration

- [Config reader](https://github.com/laxentis/arse/blob/master/src/config.rs): `src/config.rs`
- [JSON config](https://github.com/laxentis/arse/blob/master/arse.json): `arse.json`

### Weather input

- [METAR client](https://github.com/laxentis/arse/blob/master/src/weather.rs): `src/weather.rs`

### Runway selection

- [Airport runway selector](https://github.com/laxentis/arse/blob/master/src/airport.rs): `src/airport.rs`

### Runway output

- [Runway file writer](https://github.com/laxentis/arse/blob/master/src/runway_file.rs): `src/runway_file.rs`
- **EuroScope runway file**

### Other components

- **User**
- **VATSIM METAR service**

## Connections

- User → CLI workflow: runs (evidence: `Readme.md`)
- User → GUI interface: launches (evidence: `Readme.md`)
- CLI workflow → Config reader: reads settings (evidence: `src/main.rs`)
- Config reader → JSON config: reads JSON (evidence: `src/config.rs`)
- CLI workflow → METAR client: fetches METARs (evidence: `src/main.rs`)
- METAR client → VATSIM METAR service: requests reports (evidence: `src/weather.rs`)
- CLI workflow → Airport runway selector: selects runways (evidence: `src/main.rs`)
- CLI workflow → METAR client: looks up reports (evidence: `src/main.rs`)
- CLI workflow → Runway file writer: writes selections (evidence: `src/main.rs`)
- Runway file writer → EuroScope runway file: overwrites (evidence: `src/runway_file.rs`)
- GUI interface → GUI selection workflow: starts workflow (evidence: `src/gui.rs`)
- GUI selection workflow → Config reader: reads settings (evidence: `src/gui.rs`)
- GUI selection workflow → METAR client: fetches METARs (evidence: `src/gui.rs`)
- GUI selection workflow → METAR client: looks up reports (evidence: `src/gui.rs`)
- GUI selection workflow → Airport runway selector: selects runways (evidence: `src/gui.rs`)
- GUI selection workflow → Runway file writer: writes selections (evidence: `src/gui.rs`)
