# aelin-012/mcu-tracker architecture

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

- Interactive diagram: https://gitdiagram.com/aelin-012/mcu-tracker
- Repository: https://github.com/aelin-012/mcu-tracker

## Overview

Binge Assemble is a browser-based Marvel watch tracker. The user browses a release-ordered catalog, marks films or episodes watched, and sees filtered results and overall progress/rank; state is saved locally and can optionally sync to a private GitHub Gist. The excerpts show app.js transforming MY_LIST, updating local storage and initiating sync, but omit some rendering and poster-resolution code, so those links are not asserted. TMDB poster provenance is documented in the README.

Main entry points: [`app.js`](https://github.com/aelin-012/mcu-tracker/blob/main/app.js) (Tracker logic), [`index.html`](https://github.com/aelin-012/mcu-tracker/blob/main/index.html) (Tracker interface), [`posters.js`](https://github.com/aelin-012/mcu-tracker/blob/main/posters.js) (Poster catalog), [`data.js`](https://github.com/aelin-012/mcu-tracker/blob/main/data.js) (Release catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Watch catalog"]
  node_catalog_data["Release catalog<br/>[data.js]"]
  node_normalized["App catalog data<br/>[app.js]"]
end

subgraph group_tracker["Tracking experience"]
  node_interface["Tracker interface<br/>[index.html]"]
  node_application["Tracker logic<br/>[app.js]"]
  node_timeline["Timeline and filters<br/>[app.js]"]
  node_episode["Episode tracking<br/>[app.js]"]
  node_progress["Progress and rank<br/>[app.js]"]
end

subgraph group_persistence["Progress storage"]
  node_watched_state["Watched state<br/>[app.js]"]
  node_browser_storage[("Browser storage")]
  node_sync_config["Sync configuration<br/>[app.js]"]
  node_gist_sync["Gist sync<br/>[app.js]"]
end

subgraph group_media["Poster assets"]
  node_poster_catalog["Poster catalog<br/>[posters.js]"]
end

node_viewer(("Viewer"))
node_github_gist[("GitHub Gist")]
node_tmdb["TMDB images"]

node_viewer -->|"uses"| node_interface
node_interface -.->|"provides controls"| node_application
node_catalog_data -->|"transforms"| node_normalized
node_application -->|"renders"| node_timeline
node_application -->|"toggles episodes"| node_episode
node_application -->|"renders progress"| node_progress
node_application -->|"updates"| node_watched_state
node_watched_state -->|"reads and writes"| node_browser_storage
node_application -->|"loads and saves"| node_sync_config
node_application -->|"schedules sync"| node_gist_sync
node_gist_sync -->|"fetches state"| node_github_gist
node_poster_catalog -.->|"image URLs"| node_tmdb
node_timeline -.->|"resolves posters"| node_poster_catalog

click node_interface "https://github.com/aelin-012/mcu-tracker/blob/main/index.html"
click node_application "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_timeline "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_episode "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_progress "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_catalog_data "https://github.com/aelin-012/mcu-tracker/blob/main/data.js"
click node_normalized "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_watched_state "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_sync_config "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_gist_sync "https://github.com/aelin-012/mcu-tracker/blob/main/app.js"
click node_poster_catalog "https://github.com/aelin-012/mcu-tracker/blob/main/posters.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_catalog_data,node_normalized,node_viewer toneBlue
class node_interface,node_application,node_timeline,node_episode,node_progress,node_github_gist toneAmber
class node_watched_state,node_browser_storage,node_sync_config,node_gist_sync toneMint
class node_poster_catalog toneRose
class node_tmdb toneIndigo
```

## Components

### Watch catalog

- [Release catalog](https://github.com/aelin-012/mcu-tracker/blob/main/data.js): `data.js`
- [App catalog data](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`

### Tracking experience

- [Tracker interface](https://github.com/aelin-012/mcu-tracker/blob/main/index.html): `index.html`
- [Tracker logic](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`
- [Timeline and filters](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`
- [Episode tracking](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`
- [Progress and rank](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`

### Progress storage

- [Watched state](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`
- **Browser storage**
- [Sync configuration](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`
- [Gist sync](https://github.com/aelin-012/mcu-tracker/blob/main/app.js): `app.js`

### Poster assets

- [Poster catalog](https://github.com/aelin-012/mcu-tracker/blob/main/posters.js): `posters.js`

### Other components

- **Viewer**
- **GitHub Gist**
- **TMDB images**

## Connections

- Viewer → Tracker interface: uses (evidence: `README.md`)
- Tracker interface → Tracker logic: provides controls
- Release catalog → App catalog data: transforms (evidence: `app.js`)
- Tracker logic → Timeline and filters: renders (evidence: `app.js`)
- Tracker logic → Episode tracking: toggles episodes (evidence: `app.js`)
- Tracker logic → Progress and rank: renders progress (evidence: `app.js`)
- Tracker logic → Watched state: updates (evidence: `app.js`)
- Watched state → Browser storage: reads and writes (evidence: `app.js`)
- Tracker logic → Sync configuration: loads and saves (evidence: `app.js`)
- Tracker logic → Gist sync: schedules sync (evidence: `app.js`)
- Gist sync → GitHub Gist: fetches state (evidence: `app.js`)
- Poster catalog → TMDB images: image URLs (evidence: `README.md`)
- Timeline and filters → Poster catalog: resolves posters
