# kaga43/takumi-spedo architecture

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

- Interactive diagram: https://gitdiagram.com/kaga43/takumi-spedo
- Repository: https://github.com/kaga43/takumi-spedo

## Overview

This is a browser-based Initial D AE86 digital dashboard and car stereo intended for FiveM CEF. The visible code identifies dashboard elements, updates a clock, and implements stereo interactions, queueing and YouTube metadata integration. The main telemetry message handling and much of the rendering logic were not included in the excerpts, and the README is empty, so those capabilities and connections cannot be described reliably. The graph focuses on evidenced UI behavior and keeps the YouTube integration distinct.

Main entry points: [`script.js`](https://github.com/kaga43/takumi-spedo/blob/main/script.js) (Dashboard runtime), [`index.html`](https://github.com/kaga43/takumi-spedo/blob/main/index.html) (Dashboard page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dashboard["Dashboard"]
  node_page["Dashboard page<br/>[index.html]"]
  node_app["Dashboard runtime<br/>[script.js]"]
  node_cluster["Instrument cluster<br/>[script.js]"]
  node_clock["Clock display<br/>[script.js]"]
end

subgraph group_stereo["Stereo"]
  node_stereo_ui["Stereo deck UI<br/>[script.js]"]
  node_search_queue["Search and queue<br/>[script.js]"]
  node_track_ui["Track display<br/>[script.js]"]
  node_audio["Browser audio<br/>[script.js]"]
end

subgraph group_integration["Media integration"]
  node_youtube["YouTube IFrame API"]
end

node_driver(("Driver"))

node_page -->|"loads"| node_app
node_driver -->|"opens deck"| node_stereo_ui
node_stereo_ui -->|"handles search"| node_search_queue
node_search_queue -->|"updates selection"| node_track_ui
node_app -.->|"updates display"| node_cluster
node_app -->|"ticks"| node_clock
node_stereo_ui -->|"plays tones"| node_audio
node_app -->|"loads API"| node_youtube
node_youtube -->|"provides metadata"| node_track_ui

click node_page "https://github.com/kaga43/takumi-spedo/blob/main/index.html"
click node_app "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_cluster "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_clock "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_stereo_ui "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_search_queue "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_track_ui "https://github.com/kaga43/takumi-spedo/blob/main/script.js"
click node_audio "https://github.com/kaga43/takumi-spedo/blob/main/script.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_page,node_app,node_cluster,node_clock toneBlue
class node_stereo_ui,node_search_queue,node_track_ui,node_audio toneAmber
class node_youtube toneMint
class node_driver toneIndigo
```

## Components

### Dashboard

- [Dashboard page](https://github.com/kaga43/takumi-spedo/blob/main/index.html): `index.html`
- [Dashboard runtime](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`
- [Instrument cluster](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`
- [Clock display](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`

### Stereo

- [Stereo deck UI](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`
- [Search and queue](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`
- [Track display](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`
- [Browser audio](https://github.com/kaga43/takumi-spedo/blob/main/script.js): `script.js`

### Media integration

- **YouTube IFrame API**

### Other components

- **Driver**

## Connections

- Dashboard page → Dashboard runtime: loads
- Driver → Stereo deck UI: opens deck (evidence: `script.js`)
- Stereo deck UI → Search and queue: handles search (evidence: `script.js`)
- Search and queue → Track display: updates selection (evidence: `script.js`)
- Dashboard runtime → Instrument cluster: updates display (evidence: `script.js`)
- Dashboard runtime → Clock display: ticks (evidence: `script.js`)
- Stereo deck UI → Browser audio: plays tones (evidence: `script.js`)
- Dashboard runtime → YouTube IFrame API: loads API (evidence: `script.js`)
- YouTube IFrame API → Track display: provides metadata (evidence: `script.js`)
