# jvde-github/ais-catcher architecture

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

- Interactive diagram: https://gitdiagram.com/jvde-github/ais-catcher
- Repository: https://github.com/jvde-github/ais-catcher

## Overview

AIS-catcher is a multi-platform AIS receiver: it acquires radio, file, or network input, decodes AIS signals into vessel messages, then presents or forwards results. The graph includes the documented web viewer, managed control, place catalogue, database, and community-feed capabilities. Some subsystem links are documented at a high level; source excerpts expose only selected engine wiring, so unsampled implementation details are not inferred.

Main entry points: [`Source/Application/Engine.cpp`](https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Engine.cpp) (Runtime engine), [`Source/IO/MsgOut.cpp`](https://github.com/jvde-github/ais-catcher/blob/main/Source/IO/MsgOut.cpp) (Output streams), [`Source/Web/WebViewer.h`](https://github.com/jvde-github/ais-catcher/blob/main/Source/Web/WebViewer.h) (Web viewer), [`Source/Application/Receiver.cpp`](https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Receiver.cpp) (Receiver)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingress["Signal ingress"]
  node_device_manager["Device manager<br/>[DeviceManager.cpp]"]
  node_device_drivers["Device drivers"]
  node_receiver["Receiver<br/>[Receiver.cpp]"]
end

subgraph group_decode["AIS decoding"]
  node_dsp["DSP models<br/>[Model.cpp]"]
  node_v2_engine["V2 decoder<br/>[V2Engine.cpp]"]
  node_ais_messages["AIS messages<br/>[Message.cpp]"]
  node_marine_decode["Marine formats<br/>[AIS.cpp]"]
end

subgraph group_outputs["Message outputs"]
  node_engine["Runtime engine<br/>[Engine.cpp]"]
  node_message_output["Output streams<br/>[MsgOut.cpp]"]
  node_network_output["Network forwarding<br/>[Network.cpp]"]
  node_database_output["Database logging<br/>[DatabaseOutput.cpp]"]
  node_json["JSON serialization<br/>[Writer.h]"]
end

subgraph group_services["Web and management"]
  node_tracking[("Vessel tracking<br/>[DB.cpp]")]
  node_places[("Place catalogue<br/>[PlaceCatalogue.cpp]")]
  node_web_viewer["Web viewer<br/>[WebViewer.h]"]
  node_control["Managed control<br/>[ControlCore.cpp]"]
end

subgraph group_frontend["Viewer interface"]
  node_viewer_frontend["Map and UI<br/>[map.js]"]
  node_control_ui["Control UI<br/>[app.js]"]
  node_config_schema["Config schema<br/>[schema.js]"]
end

node_operator(("Operator"))
node_radio{{"SDR / inputs"}}
node_viewer_user(("Viewer user"))

node_radio -->|"selects input"| node_device_manager
node_device_manager -->|"selects driver"| node_device_drivers
node_engine -->|"starts receiver"| node_receiver
node_receiver -.->|"opens device"| node_device_manager
node_receiver -->|"sets up models"| node_dsp
node_dsp -.->|"uses decoder"| node_v2_engine
node_v2_engine -.->|"decodes reports"| node_ais_messages
node_ais_messages -.->|"interprets AIS"| node_marine_decode
node_engine -->|"wires outputs"| node_message_output
node_message_output -.->|"forwards messages"| node_network_output
node_message_output -.->|"logs messages"| node_database_output
node_message_output -.->|"serializes data"| node_json
node_engine -->|"starts viewer"| node_web_viewer
node_web_viewer -->|"serves vessel state"| node_tracking
node_web_viewer -->|"uses catalogue"| node_places
node_control -->|"configures runtime"| node_engine
node_operator -->|"configures station"| node_control_ui
node_control_ui -->|"uses schema"| node_config_schema
node_viewer_user -->|"views map"| node_viewer_frontend
node_viewer_frontend -.->|"requests viewer data"| node_web_viewer
node_operator -->|"runs receiver"| node_engine

click node_device_manager "https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/DeviceManager.cpp"
click node_device_drivers "https://github.com/jvde-github/ais-catcher/tree/main/Source/Device"
click node_receiver "https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Receiver.cpp"
click node_dsp "https://github.com/jvde-github/ais-catcher/blob/main/Source/DSP/Model.cpp"
click node_v2_engine "https://github.com/jvde-github/ais-catcher/blob/main/Source/DSP/Decoder/V2/V2Engine.cpp"
click node_ais_messages "https://github.com/jvde-github/ais-catcher/blob/main/Source/Marine/Message.cpp"
click node_marine_decode "https://github.com/jvde-github/ais-catcher/blob/main/Source/Marine/AIS.cpp"
click node_engine "https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Engine.cpp"
click node_message_output "https://github.com/jvde-github/ais-catcher/blob/main/Source/IO/MsgOut.cpp"
click node_network_output "https://github.com/jvde-github/ais-catcher/blob/main/Source/IO/Network.cpp"
click node_database_output "https://github.com/jvde-github/ais-catcher/blob/main/Source/DBMS/DatabaseOutput.cpp"
click node_tracking "https://github.com/jvde-github/ais-catcher/blob/main/Source/Tracking/DB.cpp"
click node_places "https://github.com/jvde-github/ais-catcher/blob/main/Source/Tracking/PlaceCatalogue.cpp"
click node_web_viewer "https://github.com/jvde-github/ais-catcher/blob/main/Source/Web/WebViewer.h"
click node_control "https://github.com/jvde-github/ais-catcher/blob/main/Source/Control/ControlCore.cpp"
click node_json "https://github.com/jvde-github/ais-catcher/blob/main/Source/JSON/Writer.h"
click node_viewer_frontend "https://github.com/jvde-github/ais-catcher/blob/main/frontend/src/map.js"
click node_control_ui "https://github.com/jvde-github/ais-catcher/blob/main/frontend/control/js/app.js"
click node_config_schema "https://github.com/jvde-github/ais-catcher/blob/main/frontend/control/js/schema.js"

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_device_manager,node_device_drivers,node_receiver,node_viewer_user toneBlue
class node_dsp,node_v2_engine,node_ais_messages,node_marine_decode toneAmber
class node_engine,node_message_output,node_network_output,node_database_output,node_json toneMint
class node_tracking,node_places,node_web_viewer,node_control toneRose
class node_viewer_frontend,node_control_ui,node_config_schema,node_operator,node_radio toneIndigo
```

## Components

### Signal ingress

- [Device manager](https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/DeviceManager.cpp): `Source/Application/DeviceManager.cpp`
- [Device drivers](https://github.com/jvde-github/ais-catcher/tree/main/Source/Device): `Source/Device`
- [Receiver](https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Receiver.cpp): `Source/Application/Receiver.cpp`

### AIS decoding

- [DSP models](https://github.com/jvde-github/ais-catcher/blob/main/Source/DSP/Model.cpp): `Source/DSP/Model.cpp`
- [V2 decoder](https://github.com/jvde-github/ais-catcher/blob/main/Source/DSP/Decoder/V2/V2Engine.cpp): `Source/DSP/Decoder/V2/V2Engine.cpp`
- [AIS messages](https://github.com/jvde-github/ais-catcher/blob/main/Source/Marine/Message.cpp): `Source/Marine/Message.cpp`
- [Marine formats](https://github.com/jvde-github/ais-catcher/blob/main/Source/Marine/AIS.cpp): `Source/Marine/AIS.cpp`

### Message outputs

- [Runtime engine](https://github.com/jvde-github/ais-catcher/blob/main/Source/Application/Engine.cpp): `Source/Application/Engine.cpp`
- [Output streams](https://github.com/jvde-github/ais-catcher/blob/main/Source/IO/MsgOut.cpp): `Source/IO/MsgOut.cpp`
- [Network forwarding](https://github.com/jvde-github/ais-catcher/blob/main/Source/IO/Network.cpp): `Source/IO/Network.cpp`
- [Database logging](https://github.com/jvde-github/ais-catcher/blob/main/Source/DBMS/DatabaseOutput.cpp): `Source/DBMS/DatabaseOutput.cpp`
- [JSON serialization](https://github.com/jvde-github/ais-catcher/blob/main/Source/JSON/Writer.h): `Source/JSON/Writer.h`

### Web and management

- [Vessel tracking](https://github.com/jvde-github/ais-catcher/blob/main/Source/Tracking/DB.cpp): `Source/Tracking/DB.cpp`
- [Place catalogue](https://github.com/jvde-github/ais-catcher/blob/main/Source/Tracking/PlaceCatalogue.cpp): `Source/Tracking/PlaceCatalogue.cpp`
- [Web viewer](https://github.com/jvde-github/ais-catcher/blob/main/Source/Web/WebViewer.h): `Source/Web/WebViewer.h`
- [Managed control](https://github.com/jvde-github/ais-catcher/blob/main/Source/Control/ControlCore.cpp): `Source/Control/ControlCore.cpp`

### Viewer interface

- [Map and UI](https://github.com/jvde-github/ais-catcher/blob/main/frontend/src/map.js): `frontend/src/map.js`
- [Control UI](https://github.com/jvde-github/ais-catcher/blob/main/frontend/control/js/app.js): `frontend/control/js/app.js`
- [Config schema](https://github.com/jvde-github/ais-catcher/blob/main/frontend/control/js/schema.js): `frontend/control/js/schema.js`

### Other components

- **Operator**
- **SDR / inputs**
- **Viewer user**

## Connections

- SDR / inputs → Device manager: selects input (evidence: `README.md`)
- Device manager → Device drivers: selects driver
- Runtime engine → Receiver: starts receiver (evidence: `Source/Application/Engine.cpp`)
- Receiver → Device manager: opens device
- Receiver → DSP models: sets up models
- DSP models → V2 decoder: uses decoder
- V2 decoder → AIS messages: decodes reports
- AIS messages → Marine formats: interprets AIS
- Runtime engine → Output streams: wires outputs (evidence: `Source/Application/Engine.cpp`)
- Output streams → Network forwarding: forwards messages
- Output streams → Database logging: logs messages
- Output streams → JSON serialization: serializes data
- Runtime engine → Web viewer: starts viewer (evidence: `Source/Application/Engine.cpp`)
- Web viewer → Vessel tracking: serves vessel state (evidence: `Source/Web/WebViewer.h`)
- Web viewer → Place catalogue: uses catalogue (evidence: `Source/Web/WebViewer.h`)
- Managed control → Runtime engine: configures runtime (evidence: `Source/Control/ControlCore.cpp`)
- Operator → Control UI: configures station (evidence: `README.md`)
- Control UI → Config schema: uses schema (evidence: `frontend/control/js/app.js`)
- Viewer user → Map and UI: views map (evidence: `README.md`)
- Map and UI → Web viewer: requests viewer data
- Operator → Runtime engine: runs receiver (evidence: `README.md`)
