# ritishkhanna/ipod-classic architecture

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

- Interactive diagram: https://gitdiagram.com/ritishkhanna/ipod-classic
- Repository: https://github.com/ritishkhanna/ipod-classic

## Overview

This is a React-based iPod Classic simulator. The user navigates the device with the wheel, opens music or settings screens, and starts or controls playback; the App component owns navigation, playback, and appearance state. The graph preserves the documented settings and lock-screen capabilities. Relationships among sampled components are supported by excerpts; unsampled core components are included from the source index, but their internal behavior and connections are not inferred.

Main entry points: [`src/components/Display.js`](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Display.js) (Screen router), [`src/components/App.js`](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/App.js) (Device controller), [`src/components/Case.js`](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Case.js) (Device case), [`src/components/Wheel.js`](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Wheel.js) (Control wheel)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["App entry"]
  node_entrypoint["React entry<br/>[index.js]"]
end

subgraph group_state["Device state"]
  node_app["Device controller<br/>[App.js]"]
  node_songs["Song files"]
end

subgraph group_shell["Device shell"]
  node_case["Device case<br/>[Case.js]"]
  node_wheel["Control wheel<br/>[Wheel.js]"]
  node_display["Screen router<br/>[Display.js]"]
end

subgraph group_screens["Device screens"]
  node_navbar["Status bar<br/>[Navbar.js]"]
  node_lock["Lock screen<br/>[LockScreen.js]"]
  node_menu["Main menu<br/>[Menu.js]"]
  node_music["Music menu<br/>[Music.js]"]
  node_songlist["Song list<br/>[Songs.js]"]
  node_playing["Now playing<br/>[Playing.js]"]
  node_settings["Settings menu<br/>[Settings.js]"]
  node_themes["Theme choices<br/>[Themes.js]"]
  node_wheelcolor["Wheel colors<br/>[WheelColor.js]"]
  node_wallpaper["Wallpaper choices<br/>[Wallpaper.js]"]
  node_info["Controls guide<br/>[KnowMore.js]"]
end

node_user(("User"))
node_browser["Browser audio"]

node_user -->|"controls"| node_wheel
node_entrypoint -->|"renders"| node_app
node_app -->|"renders"| node_case
node_app -->|"renders"| node_info
node_app -->|"loads tracks"| node_songs
node_case -->|"renders"| node_display
node_case -->|"renders"| node_wheel
node_display -->|"renders"| node_navbar
node_display -->|"renders"| node_lock
node_display -->|"renders"| node_menu
node_display -->|"renders"| node_music
node_display -->|"renders"| node_songlist
node_display -->|"renders"| node_playing
node_display -->|"renders"| node_settings
node_display -->|"renders"| node_themes
node_display -->|"renders"| node_wheelcolor
node_display -->|"renders"| node_wallpaper
node_wheel -.->|"dispatches controls"| node_app
node_app -->|"controls playback"| node_browser
node_playing -->|"reads progress"| node_browser

click node_entrypoint "https://github.com/ritishkhanna/ipod-classic/blob/main/src/index.js"
click node_app "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/App.js"
click node_songs "https://github.com/ritishkhanna/ipod-classic/tree/main/src/static/songs"
click node_case "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Case.js"
click node_wheel "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Wheel.js"
click node_display "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Display.js"
click node_navbar "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Navbar.js"
click node_lock "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/LockScreen.js"
click node_menu "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Menu.js"
click node_music "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Music.js"
click node_songlist "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Songs.js"
click node_playing "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Playing.js"
click node_settings "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Settings.js"
click node_themes "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Themes.js"
click node_wheelcolor "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/WheelColor.js"
click node_wallpaper "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Wallpaper.js"
click node_info "https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/KnowMore.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_entrypoint,node_user,node_browser toneBlue
class node_app,node_songs toneAmber
class node_case,node_wheel,node_display toneMint
class node_navbar,node_lock,node_menu,node_music,node_songlist,node_playing,node_settings,node_themes,node_wheelcolor,node_wallpaper,node_info toneRose
```

## Components

### App entry

- [React entry](https://github.com/ritishkhanna/ipod-classic/blob/main/src/index.js): `src/index.js`

### Device state

- [Device controller](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/App.js): `src/components/App.js`
- [Song files](https://github.com/ritishkhanna/ipod-classic/tree/main/src/static/songs): `src/static/songs`

### Device shell

- [Device case](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Case.js): `src/components/Case.js`
- [Control wheel](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Wheel.js): `src/components/Wheel.js`
- [Screen router](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Display.js): `src/components/Display.js`

### Device screens

- [Status bar](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Navbar.js): `src/components/Navbar.js`
- [Lock screen](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/LockScreen.js): `src/components/LockScreen.js`
- [Main menu](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Menu.js): `src/components/Menu.js`
- [Music menu](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Music.js): `src/components/Music.js`
- [Song list](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Songs.js): `src/components/Songs.js`
- [Now playing](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Playing.js): `src/components/Playing.js`
- [Settings menu](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Settings.js): `src/components/Settings.js`
- [Theme choices](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Themes.js): `src/components/Themes.js`
- [Wheel colors](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/WheelColor.js): `src/components/WheelColor.js`
- [Wallpaper choices](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/Wallpaper.js): `src/components/Wallpaper.js`
- [Controls guide](https://github.com/ritishkhanna/ipod-classic/blob/main/src/components/KnowMore.js): `src/components/KnowMore.js`

### Other components

- **User**
- **Browser audio**

## Connections

- User → Control wheel: controls (evidence: `README.md`)
- React entry → Device controller: renders (evidence: `src/index.js`)
- Device controller → Device case: renders (evidence: `src/components/App.js`)
- Device controller → Controls guide: renders (evidence: `src/components/App.js`)
- Device controller → Song files: loads tracks (evidence: `src/components/App.js`)
- Device case → Screen router: renders (evidence: `src/components/Case.js`)
- Device case → Control wheel: renders (evidence: `src/components/Case.js`)
- Screen router → Status bar: renders (evidence: `src/components/Display.js`)
- Screen router → Lock screen: renders (evidence: `src/components/Display.js`)
- Screen router → Main menu: renders (evidence: `src/components/Display.js`)
- Screen router → Music menu: renders (evidence: `src/components/Display.js`)
- Screen router → Song list: renders (evidence: `src/components/Display.js`)
- Screen router → Now playing: renders (evidence: `src/components/Display.js`)
- Screen router → Settings menu: renders (evidence: `src/components/Display.js`)
- Screen router → Theme choices: renders (evidence: `src/components/Display.js`)
- Screen router → Wheel colors: renders (evidence: `src/components/Display.js`)
- Screen router → Wallpaper choices: renders (evidence: `src/components/Display.js`)
- Control wheel → Device controller: dispatches controls
- Device controller → Browser audio: controls playback (evidence: `src/components/App.js`)
- Now playing → Browser audio: reads progress (evidence: `src/components/Playing.js`)
