# mvr2avo/mvr2avo.github.io architecture

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

- Interactive diagram: https://gitdiagram.com/mvr2avo/mvr2avo.github.io
- Repository: https://github.com/mvr2avo/mvr2avo.github.io
- Video tour (about a minute): https://gitdiagram.com/mvr2avo/mvr2avo.github.io/video

## Overview

MVR2AVO is documented as a Windows tool for importing MVR fixture patches, matching GDTF fixtures to Avolites personalities, and preparing a reviewed Titan patch. That desktop implementation is not present in this tree; the repository contains its website and a statistics worker. The desktop stages below reflect README documentation, not inspected implementation. The sampled website script fetches logo and release data; no connection from the site to the statistics worker is shown in the sampled source.

Main entry points: [`stats-worker/index.js`](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/index.js) (Statistics API), [`site/app.js`](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/app.js) (Website script), [`stats-worker/schema.sql`](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/schema.sql) (Counters database), [`site/index.html`](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/index.html) (Website page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_website["Project website"]
  node_site["Website page<br/>[index.html]"]
  node_site_script["Website script<br/>[app.js]"]
  node_logo["Logo asset<br/>[logo-512.base64]"]
end

subgraph group_desktop["Patch workflow"]
  node_desktop_app["MVR2AVO app"]
  node_mvr["MVR fixture data"]
  node_gdtf["GDTF fixtures"]
  node_personalities["Avolites personalities"]
  node_matching["Fixture matching"]
  node_review["Reviewed patch"]
end

subgraph group_telemetry["Statistics service"]
  node_worker["Statistics API<br/>[index.js]"]
  node_db[("Counters database<br/>[schema.sql]")]
end

node_visitor(("Visitor"))
node_github["GitHub Releases API"]
node_release_downloads["Windows downloads"]
node_titan["Avolites Titan"]
node_stats_client(("Statistics caller"))

node_visitor -->|"opens"| node_site
node_site_script -->|"fetches"| node_logo
node_site_script -->|"requests releases"| node_github
node_github -->|"returns release data"| node_site_script
node_visitor -->|"downloads"| node_release_downloads
node_release_downloads -->|"provides installer"| node_desktop_app
node_mvr -.->|"supplies patch data"| node_desktop_app
node_gdtf -.->|"fixture data"| node_matching
node_personalities -.->|"match targets"| node_matching
node_desktop_app -.->|"matches fixtures"| node_matching
node_desktop_app -.->|"prepares patch"| node_review
node_review -.->|"applies to"| node_titan
node_stats_client -->|"requests stats"| node_worker
node_worker -->|"reads counters"| node_db
node_worker -->|"increments counters"| node_db

click node_site "https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/index.html"
click node_site_script "https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/app.js"
click node_logo "https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/assets/logo-512.base64"
click node_worker "https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/index.js"
click node_db "https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/schema.sql"

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_site,node_site_script,node_logo toneBlue
class node_desktop_app,node_mvr,node_gdtf,node_personalities,node_matching,node_review toneAmber
class node_worker,node_db,node_github toneMint
class node_visitor,node_release_downloads,node_titan,node_stats_client toneIndigo
```

## Components

### Project website

- [Website page](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/index.html): `site/index.html`
- [Website script](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/app.js): `site/app.js`
- [Logo asset](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/site/assets/logo-512.base64): `site/assets/logo-512.base64`

### Patch workflow

- **MVR2AVO app**
- **MVR fixture data**
- **GDTF fixtures**
- **Avolites personalities**
- **Fixture matching**
- **Reviewed patch**

### Statistics service

- [Statistics API](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/index.js): `stats-worker/index.js`
- [Counters database](https://github.com/mvr2avo/mvr2avo.github.io/blob/main/stats-worker/schema.sql): `stats-worker/schema.sql`

### Other components

- **Visitor**
- **GitHub Releases API**
- **Windows downloads**
- **Avolites Titan**
- **Statistics caller**

## Connections

- Visitor → Website page: opens
- Website script → Logo asset: fetches
- Website script → GitHub Releases API: requests releases
- GitHub Releases API → Website script: returns release data
- Visitor → Windows downloads: downloads
- Windows downloads → MVR2AVO app: provides installer
- MVR fixture data → MVR2AVO app: supplies patch data
- GDTF fixtures → Fixture matching: fixture data
- Avolites personalities → Fixture matching: match targets
- MVR2AVO app → Fixture matching: matches fixtures
- MVR2AVO app → Reviewed patch: prepares patch
- Reviewed patch → Avolites Titan: applies to
- Statistics caller → Statistics API: requests stats
- Statistics API → Counters database: reads counters
- Statistics API → Counters database: increments counters
