# alphametal135-bit/iab architecture

> Architecture diagram of the GitHub repository alphametal135-bit/iab, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-04). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alphametal135-bit/iab
- Repository: https://github.com/alphametal135-bit/iab

## Overview

AeroTrace is a Flask airline-baggage tracing and case-management application, delivered as a single Python file with embedded browser UI. The visible workflow is a user navigating the UI, which sends JSON requests to the API; the dashboard handler queries case and event data for reporting. The excerpts also establish case validation and station messaging, while dashboard links expose found-bag matching and delivery-related capabilities. The source is only partially sampled, so links for those unsampled capabilities are omitted rather than inferred.

Main entry points: [`aerotrace.py`](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py) (Web UI and navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_client["Browser interface"]
  node_webui["Web UI and navigation<br/>[aerotrace.py]"]
end

subgraph group_service["Case management"]
  node_api["JSON API<br/>[aerotrace.py]"]
  node_case_validation["Case validation<br/>[aerotrace.py]"]
  node_station_messages["Station messaging<br/>[aerotrace.py]"]
  node_dashboard["Dashboard reporting<br/>[aerotrace.py]"]
  node_found_matching["Found-bag matching<br/>[aerotrace.py]"]
  node_delivery_tracking["Delivery tracking<br/>[aerotrace.py]"]
end

subgraph group_data["Application data"]
  node_baggage_store[("Baggage and event data<br/>[aerotrace.py]")]
end

node_staff(("Airline staff"))

node_staff -->|"uses"| node_webui
node_webui -->|"sends requests"| node_api
node_dashboard -->|"queries"| node_baggage_store

click node_webui "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_api "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_case_validation "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_station_messages "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_dashboard "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_baggage_store "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_found_matching "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py"
click node_delivery_tracking "https://github.com/alphametal135-bit/iab/blob/main/aerotrace.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_webui toneBlue
class node_api,node_case_validation,node_station_messages,node_dashboard,node_found_matching,node_delivery_tracking toneAmber
class node_baggage_store toneMint
class node_staff toneIndigo
```

## Components

### Browser interface

- [Web UI and navigation](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`

### Case management

- [JSON API](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`
- [Case validation](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`
- [Station messaging](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`
- [Dashboard reporting](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`
- [Found-bag matching](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`
- [Delivery tracking](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`

### Application data

- [Baggage and event data](https://github.com/alphametal135-bit/iab/blob/main/aerotrace.py): `aerotrace.py`

### Other components

- **Airline staff**

## Connections

- Airline staff → Web UI and navigation: uses (evidence: `aerotrace.py`)
- Web UI and navigation → JSON API: sends requests (evidence: `aerotrace.py`)
- Dashboard reporting → Baggage and event data: queries (evidence: `aerotrace.py`)
