# dffmonolith/setlist architecture

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

- Interactive diagram: https://gitdiagram.com/dffmonolith/setlist
- Repository: https://github.com/dffmonolith/setlist

## Overview

Setlist is a stage-ready choir utility: performers move through a concert setlist, play starting pitches, and use rehearsal and metronome tools. The README also documents delimited-text editing and offline installation/updates. The main app is a single HTML file; its implementation was not sampled, so capability links rely on README statements. The service worker excerpt shows cache behavior and precaching, but not how the page registers it.

Main entry points: [`setlist.html`](https://github.com/dffmonolith/setlist/blob/main/setlist.html) (Setlist app), [`sw.js`](https://github.com/dffmonolith/setlist/blob/main/sw.js) (Service worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_performance["Performance tools"]
  node_app["Setlist app<br/>[setlist.html]"]
  node_concert_setlist["Concert setlist<br/>[setlist.html]"]
  node_pitch_playback["Starting pitches<br/>[setlist.html]"]
  node_setlist_editor["Setlist editor<br/>[setlist.html]"]
  node_rehearsal_mode["Rehearsal mode<br/>[setlist.html]"]
  node_metronome["Metronome<br/>[setlist.html]"]
end

subgraph group_offline["Offline app"]
  node_service_worker["Service worker<br/>[sw.js]"]
  node_app_cache[("App cache")]
end

node_performer(("Performer"))
node_audio_output(("Audio output"))

node_performer -->|"opens"| node_app
node_app -->|"steps through"| node_concert_setlist
node_app -->|"plays pitches"| node_pitch_playback
node_app -->|"edits text"| node_setlist_editor
node_app -->|"opens"| node_rehearsal_mode
node_app -->|"runs"| node_metronome
node_pitch_playback -->|"plays samples"| node_audio_output
node_metronome -->|"plays audio"| node_audio_output
node_service_worker -->|"opens cache"| node_app_cache
node_service_worker -->|"precaches app shell"| node_app_cache
node_service_worker -->|"serves cached files"| node_app_cache

click node_app "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_concert_setlist "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_pitch_playback "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_setlist_editor "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_rehearsal_mode "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_metronome "https://github.com/dffmonolith/setlist/blob/main/setlist.html"
click node_service_worker "https://github.com/dffmonolith/setlist/blob/main/sw.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_app,node_concert_setlist,node_pitch_playback,node_setlist_editor,node_rehearsal_mode,node_metronome toneBlue
class node_service_worker,node_app_cache toneAmber
class node_performer,node_audio_output toneIndigo
```

## Components

### Performance tools

- [Setlist app](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`
- [Concert setlist](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`
- [Starting pitches](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`
- [Setlist editor](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`
- [Rehearsal mode](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`
- [Metronome](https://github.com/dffmonolith/setlist/blob/main/setlist.html): `setlist.html`

### Offline app

- [Service worker](https://github.com/dffmonolith/setlist/blob/main/sw.js): `sw.js`
- **App cache**

### Other components

- **Performer**
- **Audio output**

## Connections

- Performer → Setlist app: opens (evidence: `README.md`)
- Setlist app → Concert setlist: steps through (evidence: `README.md`)
- Setlist app → Starting pitches: plays pitches (evidence: `README.md`)
- Setlist app → Setlist editor: edits text (evidence: `README.md`)
- Setlist app → Rehearsal mode: opens (evidence: `README.md`)
- Setlist app → Metronome: runs (evidence: `README.md`)
- Starting pitches → Audio output: plays samples (evidence: `README.md`)
- Metronome → Audio output: plays audio (evidence: `README.md`)
- Service worker → App cache: opens cache (evidence: `sw.js`)
- Service worker → App cache: precaches app shell (evidence: `sw.js`)
- Service worker → App cache: serves cached files (evidence: `sw.js`)
