# drshadowdc/scoretrace architecture

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

- Interactive diagram: https://gitdiagram.com/drshadowdc/scoretrace
- Repository: https://github.com/drshadowdc/scoretrace

## Overview

ScoreTrace turns Daktronics AllSport 5000 serial data into a network-accessible JSON API for scorebug software. The documented workflow is to choose a sport and serial port in the launcher, start ScoreTrace locally or on a Raspberry Pi, then read the API output. The README also documents status reporting and remote Pi shutdown. No implementation files are present in the supplied tree, so component paths are null and relationships below are supported by README statements only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_launch["Launch and Control"]
  node_launcher["ScoreTrace UI"]
  node_pi["Raspberry Pi Host"]
end

subgraph group_ingest["Scoreboard Ingestion"]
  node_serial["Serial Input"]
  node_parser["Score Parser"]
end

subgraph group_api["Web API"]
  node_webapi["Web API"]
  node_snapshot["ScoreTrace Snapshot"]
  node_status["Status Endpoint"]
end

node_operator(("Operator"))
node_scoreboard["AllSport 5000"]
node_scorebug(("Scorebug Software"))

node_operator -->|"selects sport and port"| node_launcher
node_operator -->|"requests launch"| node_launcher
node_launcher -->|"launches remotely"| node_pi
node_operator -->|"requests shutdown"| node_pi
node_scoreboard -->|"sends serial data"| node_serial
node_serial -->|"supplies data"| node_parser
node_parser -->|"provides parsed output"| node_webapi
node_webapi -->|"serves JSON"| node_snapshot
node_webapi -->|"serves status"| node_status
node_scorebug -->|"fetches data"| node_snapshot

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_launcher,node_pi toneBlue
class node_serial,node_parser toneAmber
class node_webapi,node_snapshot,node_status toneMint
class node_operator,node_scoreboard,node_scorebug toneIndigo
```

## Components

### Launch and Control

- **ScoreTrace UI**
- **Raspberry Pi Host**

### Scoreboard Ingestion

- **Serial Input**
- **Score Parser**

### Web API

- **Web API**
- **ScoreTrace Snapshot**
- **Status Endpoint**

### Other components

- **Operator**
- **AllSport 5000**
- **Scorebug Software**

## Connections

- Operator → ScoreTrace UI: selects sport and port (evidence: `README.md`)
- Operator → ScoreTrace UI: requests launch (evidence: `README.md`)
- ScoreTrace UI → Raspberry Pi Host: launches remotely (evidence: `README.md`)
- Operator → Raspberry Pi Host: requests shutdown (evidence: `README.md`)
- AllSport 5000 → Serial Input: sends serial data (evidence: `README.md`)
- Serial Input → Score Parser: supplies data (evidence: `README.md`)
- Score Parser → Web API: provides parsed output (evidence: `README.md`)
- Web API → ScoreTrace Snapshot: serves JSON (evidence: `README.md`)
- Web API → Status Endpoint: serves status (evidence: `README.md`)
- Scorebug Software → ScoreTrace Snapshot: fetches data (evidence: `README.md`)
