# marcusmarcal/so-toolbox architecture

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

- Interactive diagram: https://gitdiagram.com/marcusmarcal/so-toolbox
- Repository: https://github.com/marcusmarcal/so-toolbox

## Overview

SP SO Web Toolbox is a browser-based operations suite: users open a tool in the static application, which calls the Flask proxy; the proxy routes requests to tool-specific backends and integrations while keeping credentials server-side. The graph preserves the README’s major analysis, monitoring, ingest, provisioning, rota, and administration capabilities. Some subsystem links are based on README descriptions or the SOURCE INDEX; unsampled frontend and backend implementation details are not inferred.

Main entry points: [`proxy.py`](https://github.com/marcusmarcal/so-toolbox/blob/main/proxy.py) (Flask proxy), [`index.html`](https://github.com/marcusmarcal/so-toolbox/blob/main/index.html) (Toolbox shell), [`routes_bte.py`](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_bte.py) (BTE resources), [`BTV-Video-Analyser.html`](https://github.com/marcusmarcal/so-toolbox/blob/main/BTV-Video-Analyser.html) (Video and ingest tools)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Toolbox app"]
  node_webapp["Toolbox shell<br/>[index.html]"]
end

subgraph group_analysis["Analysis and ingest"]
  node_analysis_tools["Video and ingest tools"]
  node_gop["GOP analysis<br/>[routes_gop.py]"]
  node_ingest_analysis["Ingest analysis<br/>[proxy.py]"]
  node_live_probe["Live probe"]
end

subgraph group_monitoring["Monitoring"]
  node_monitor_tools["Monitoring dashboards<br/>[RTS-Monitor.html]"]
  node_rts["RTS monitoring<br/>[rts_routes.py]"]
  node_id3as["DC monitoring<br/>[id3as_routes.py]"]
  node_mtr["MTR reports<br/>[routes_mtr.py]"]
  node_mtr_remote["Remote MTR reports"]
  node_probe_ui["Probe monitoring UI"]
end

subgraph group_operations["Operations"]
  node_srt_ui["SRT controls<br/>[srt_ingest.html]"]
  node_srt["SRT ingest jobs<br/>[routes_srt.py]"]
  node_srt_push["SRT push services<br/>[srt-push.py]"]
  node_txcore_ui["TXCore manager"]
  node_txcore["TXCore provisioning<br/>[routes_txcore.py]"]
  node_bte["BTE resources<br/>[routes_bte.py]"]
  node_bte_provisioning["BTE provisioning"]
  node_adhoc["ADHOC management<br/>[routes_adhoc.py]"]
  node_rota_ui["Rota planner"]
  node_rota["Rota management<br/>[routes_rota.py]"]
  node_wc2026["World Cup rota<br/>[wc2026_routes.py]"]
end

subgraph group_platform["Proxy and administration"]
  node_proxy["Flask proxy<br/>[proxy.py]"]
  node_auth["Authentication and users<br/>[routes_auth.py]"]
  node_env["Environment admin<br/>[routes_env.py]"]
  node_admin_ui["Toolbox admin"]
end

node_operator(("Operations user"))
node_dataminer["Dataminer API"]
node_phenix["PhenixRTS API"]
node_id3as_service["id3as API"]
node_txcore_service["TXCore API"]

node_operator -->|"uses"| node_webapp
node_webapp -->|"opens tools"| node_analysis_tools
node_analysis_tools -->|"calls proxy"| node_proxy
node_proxy -->|"registers"| node_gop
node_proxy -->|"handles requests"| node_ingest_analysis
node_proxy -->|"registers"| node_live_probe
node_analysis_tools -.->|"starts probe"| node_live_probe
node_webapp -->|"opens tools"| node_monitor_tools
node_monitor_tools -->|"calls proxy"| node_proxy
node_proxy -->|"registers"| node_rts
node_proxy -->|"registers"| node_id3as
node_proxy -->|"registers"| node_mtr
node_proxy -->|"registers"| node_mtr_remote
node_webapp -->|"opens tool"| node_probe_ui
node_probe_ui -->|"calls proxy"| node_proxy
node_webapp -->|"opens tool"| node_srt_ui
node_srt_ui -->|"calls proxy"| node_proxy
node_proxy -->|"registers"| node_srt
node_webapp -->|"opens monitor"| node_srt_push
node_webapp -->|"opens tool"| node_txcore_ui
node_txcore_ui -->|"calls proxy"| node_proxy
node_proxy -->|"registers"| node_txcore
node_txcore -->|"provisions channels"| node_txcore_service
node_proxy -->|"registers"| node_bte
node_bte -->|"fetches snapshots"| node_dataminer
node_bte_provisioning -.->|"supports provisioning"| node_bte
node_proxy -->|"registers"| node_adhoc
node_adhoc -->|"reads snapshot"| node_bte
node_webapp -->|"opens planner"| node_rota_ui
node_rota_ui -->|"calls proxy"| node_proxy
node_proxy -->|"registers"| node_rota
node_proxy -->|"registers"| node_wc2026
node_proxy -->|"registers"| node_auth
node_proxy -->|"registers"| node_env
node_webapp -->|"opens console"| node_admin_ui
node_admin_ui -->|"manages settings"| node_proxy
node_id3as -->|"queries"| node_id3as_service
node_rts -.->|"queries"| node_phenix

click node_webapp "https://github.com/marcusmarcal/so-toolbox/blob/main/index.html"
click node_analysis_tools "https://github.com/marcusmarcal/so-toolbox/blob/main/BTV-Video-Analyser.html"
click node_gop "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_gop.py"
click node_ingest_analysis "https://github.com/marcusmarcal/so-toolbox/blob/main/proxy.py"
click node_live_probe "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_live_probe.py"
click node_monitor_tools "https://github.com/marcusmarcal/so-toolbox/blob/main/RTS-Monitor.html"
click node_rts "https://github.com/marcusmarcal/so-toolbox/blob/main/rts_routes.py"
click node_id3as "https://github.com/marcusmarcal/so-toolbox/blob/main/id3as_routes.py"
click node_mtr "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_mtr.py"
click node_mtr_remote "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_mtr_remote.py"
click node_probe_ui "https://github.com/marcusmarcal/so-toolbox/blob/main/ProbeMonitoring.html"
click node_srt_ui "https://github.com/marcusmarcal/so-toolbox/blob/main/srt_ingest.html"
click node_srt "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_srt.py"
click node_srt_push "https://github.com/marcusmarcal/so-toolbox/blob/main/srt-push.py"
click node_txcore_ui "https://github.com/marcusmarcal/so-toolbox/blob/main/TXCore-Manager.html"
click node_txcore "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_txcore.py"
click node_bte "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_bte.py"
click node_bte_provisioning "https://github.com/marcusmarcal/so-toolbox/blob/main/bte_provisioning.py"
click node_adhoc "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_adhoc.py"
click node_rota_ui "https://github.com/marcusmarcal/so-toolbox/blob/main/wc2026_rota_management.html"
click node_rota "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_rota.py"
click node_wc2026 "https://github.com/marcusmarcal/so-toolbox/blob/main/wc2026_routes.py"
click node_proxy "https://github.com/marcusmarcal/so-toolbox/blob/main/proxy.py"
click node_auth "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_auth.py"
click node_env "https://github.com/marcusmarcal/so-toolbox/blob/main/routes_env.py"
click node_admin_ui "https://github.com/marcusmarcal/so-toolbox/blob/main/so-toolbox-admin.html"

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_webapp,node_operator toneBlue
class node_analysis_tools,node_gop,node_ingest_analysis,node_live_probe toneAmber
class node_monitor_tools,node_rts,node_id3as,node_mtr,node_mtr_remote,node_probe_ui,node_dataminer,node_phenix,node_id3as_service,node_txcore_service toneMint
class node_srt_ui,node_srt,node_srt_push,node_txcore_ui,node_txcore,node_bte,node_bte_provisioning,node_adhoc,node_rota_ui,node_rota,node_wc2026 toneRose
class node_proxy,node_auth,node_env,node_admin_ui toneIndigo
```

## Components

### Toolbox app

- [Toolbox shell](https://github.com/marcusmarcal/so-toolbox/blob/main/index.html): `index.html`

### Analysis and ingest

- [Video and ingest tools](https://github.com/marcusmarcal/so-toolbox/blob/main/BTV-Video-Analyser.html): `BTV-Video-Analyser.html`
- [GOP analysis](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_gop.py): `routes_gop.py`
- [Ingest analysis](https://github.com/marcusmarcal/so-toolbox/blob/main/proxy.py): `proxy.py`
- [Live probe](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_live_probe.py): `routes_live_probe.py`

### Monitoring

- [Monitoring dashboards](https://github.com/marcusmarcal/so-toolbox/blob/main/RTS-Monitor.html): `RTS-Monitor.html`
- [RTS monitoring](https://github.com/marcusmarcal/so-toolbox/blob/main/rts_routes.py): `rts_routes.py`
- [DC monitoring](https://github.com/marcusmarcal/so-toolbox/blob/main/id3as_routes.py): `id3as_routes.py`
- [MTR reports](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_mtr.py): `routes_mtr.py`
- [Remote MTR reports](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_mtr_remote.py): `routes_mtr_remote.py`
- [Probe monitoring UI](https://github.com/marcusmarcal/so-toolbox/blob/main/ProbeMonitoring.html): `ProbeMonitoring.html`

### Operations

- [SRT controls](https://github.com/marcusmarcal/so-toolbox/blob/main/srt_ingest.html): `srt_ingest.html`
- [SRT ingest jobs](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_srt.py): `routes_srt.py`
- [SRT push services](https://github.com/marcusmarcal/so-toolbox/blob/main/srt-push.py): `srt-push.py`
- [TXCore manager](https://github.com/marcusmarcal/so-toolbox/blob/main/TXCore-Manager.html): `TXCore-Manager.html`
- [TXCore provisioning](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_txcore.py): `routes_txcore.py`
- [BTE resources](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_bte.py): `routes_bte.py`
- [BTE provisioning](https://github.com/marcusmarcal/so-toolbox/blob/main/bte_provisioning.py): `bte_provisioning.py`
- [ADHOC management](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_adhoc.py): `routes_adhoc.py`
- [Rota planner](https://github.com/marcusmarcal/so-toolbox/blob/main/wc2026_rota_management.html): `wc2026_rota_management.html`
- [Rota management](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_rota.py): `routes_rota.py`
- [World Cup rota](https://github.com/marcusmarcal/so-toolbox/blob/main/wc2026_routes.py): `wc2026_routes.py`

### Proxy and administration

- [Flask proxy](https://github.com/marcusmarcal/so-toolbox/blob/main/proxy.py): `proxy.py`
- [Authentication and users](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_auth.py): `routes_auth.py`
- [Environment admin](https://github.com/marcusmarcal/so-toolbox/blob/main/routes_env.py): `routes_env.py`
- [Toolbox admin](https://github.com/marcusmarcal/so-toolbox/blob/main/so-toolbox-admin.html): `so-toolbox-admin.html`

### Other components

- **Operations user**
- **Dataminer API**
- **PhenixRTS API**
- **id3as API**
- **TXCore API**

## Connections

- Operations user → Toolbox shell: uses (evidence: `README.md`)
- Toolbox shell → Video and ingest tools: opens tools (evidence: `README.md`)
- Video and ingest tools → Flask proxy: calls proxy (evidence: `README.md`)
- Flask proxy → GOP analysis: registers (evidence: `proxy.py`)
- Flask proxy → Ingest analysis: handles requests (evidence: `proxy.py`)
- Flask proxy → Live probe: registers (evidence: `proxy.py`)
- Video and ingest tools → Live probe: starts probe
- Toolbox shell → Monitoring dashboards: opens tools (evidence: `README.md`)
- Monitoring dashboards → Flask proxy: calls proxy (evidence: `README.md`)
- Flask proxy → RTS monitoring: registers (evidence: `proxy.py`)
- Flask proxy → DC monitoring: registers (evidence: `proxy.py`)
- Flask proxy → MTR reports: registers (evidence: `proxy.py`)
- Flask proxy → Remote MTR reports: registers (evidence: `proxy.py`)
- Toolbox shell → Probe monitoring UI: opens tool (evidence: `README.md`)
- Probe monitoring UI → Flask proxy: calls proxy (evidence: `README.md`)
- Toolbox shell → SRT controls: opens tool (evidence: `README.md`)
- SRT controls → Flask proxy: calls proxy (evidence: `README.md`)
- Flask proxy → SRT ingest jobs: registers (evidence: `proxy.py`)
- Toolbox shell → SRT push services: opens monitor (evidence: `README.md`)
- Toolbox shell → TXCore manager: opens tool (evidence: `README.md`)
- TXCore manager → Flask proxy: calls proxy (evidence: `README.md`)
- Flask proxy → TXCore provisioning: registers (evidence: `proxy.py`)
- TXCore provisioning → TXCore API: provisions channels (evidence: `routes_txcore.py`)
- Flask proxy → BTE resources: registers (evidence: `proxy.py`)
- BTE resources → Dataminer API: fetches snapshots (evidence: `routes_bte.py`)
- BTE provisioning → BTE resources: supports provisioning (evidence: `routes_bte.py`)
- Flask proxy → ADHOC management: registers (evidence: `proxy.py`)
- ADHOC management → BTE resources: reads snapshot (evidence: `routes_adhoc.py`)
- Toolbox shell → Rota planner: opens planner (evidence: `README.md`)
- Rota planner → Flask proxy: calls proxy (evidence: `README.md`)
- Flask proxy → Rota management: registers (evidence: `proxy.py`)
- Flask proxy → World Cup rota: registers (evidence: `proxy.py`)
- Flask proxy → Authentication and users: registers (evidence: `proxy.py`)
- Flask proxy → Environment admin: registers (evidence: `proxy.py`)
- Toolbox shell → Toolbox admin: opens console (evidence: `README.md`)
- Toolbox admin → Flask proxy: manages settings (evidence: `README.md`)
- DC monitoring → id3as API: queries (evidence: `id3as_routes.py`)
- RTS monitoring → PhenixRTS API: queries
