# fairolegends/pause-tape architecture

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

- Interactive diagram: https://gitdiagram.com/fairolegends/pause-tape
- Repository: https://github.com/fairolegends/pause-tape

## Overview

Pause Tape is a browser-only app for recording project handoff notes, shelving them until a return date, and playing them back when the user resumes work. The main flow runs from recording through local persistence and shelf selection to playback and completion tracking; the app coordinates these screens and tape state. A separate 3D room, sound, accessibility, calendar export, and tape-link restore support the experience. Edges reflect sampled imports/calls or README-described behavior; unsampled details are omitted where relationships cannot be verified.

Main entry points: [`js/app.js`](https://github.com/fairolegends/pause-tape/blob/main/js/app.js) (App coordinator), [`js/sound.js`](https://github.com/fairolegends/pause-tape/blob/main/js/sound.js) (Audio system), [`js/tapes.js`](https://github.com/fairolegends/pause-tape/blob/main/js/tapes.js) (Tape rules), [`js/playback.js`](https://github.com/fairolegends/pause-tape/blob/main/js/playback.js) (Playback)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Tape workflow"]
  node_app["App coordinator<br/>[app.js]"]
  node_record["Record tape<br/>[record.js]"]
  node_shelf["Tape shelf<br/>[shelf.js]"]
  node_playback["Playback<br/>[playback.js]"]
  node_tape_rules["Tape rules<br/>[tapes.js]"]
end

subgraph group_storage["Local data"]
  node_tape_store[("Tape storage<br/>[store.js]")]
  node_voice_store[("Voice notes<br/>[voice.js]")]
  node_calendar["Calendar export<br/>[ics.js]"]
  node_tape_link["Tape link import<br/>[tapelink.js]"]
end

subgraph group_room["Room experience"]
  node_room["3D living room<br/>[room.js]"]
  node_books["Procedural books<br/>[books.js]"]
  node_cat["Procedural cat<br/>[cat.js]"]
  node_ambience["Outdoor ambience<br/>[ambience.js]"]
  node_crt["CRT display<br/>[crt.js]"]
end

subgraph group_support["Experience support"]
  node_sound["Audio system<br/>[sound.js]"]
  node_prefs["Preferences<br/>[prefs.js]"]
  node_motion["Screen motion<br/>[motion.js]"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_app -->|"opens recording"| node_record
node_app -->|"renders shelf"| node_shelf
node_app -->|"starts playback"| node_playback
node_app -->|"loads and saves"| node_tape_store
node_app -->|"uses date rules"| node_tape_rules
node_app -->|"saves voice"| node_voice_store
node_app -->|"exports reminder"| node_calendar
node_app -->|"imports linked tape"| node_tape_link
node_app -->|"starts display"| node_crt
node_app -.->|"starts room"| node_room
node_app -->|"reads preferences"| node_prefs
node_app -->|"controls music"| node_sound
node_app -->|"configures motion"| node_motion
node_record -->|"records voice"| node_voice_store
node_record -->|"checks dates"| node_tape_rules
node_shelf -->|"uses tape dates"| node_tape_rules
node_playback -->|"formats playback"| node_tape_rules
node_playback -->|"loads voice"| node_voice_store
node_playback -->|"animates playback"| node_motion
node_playback -->|"plays effects"| node_sound
node_tape_store -->|"validates tapes"| node_tape_rules
node_tape_link -->|"uses tape data"| node_tape_rules
node_room -->|"builds shelf books"| node_books
node_room -->|"reads settings"| node_prefs
node_room -->|"reads rain setting"| node_sound
node_room -.->|"renders cat"| node_cat
node_sound -->|"creates ambience"| node_ambience
node_sound -->|"reads sound settings"| node_prefs
node_motion -->|"reads motion setting"| node_prefs
node_motion -->|"plays text ticks"| node_sound

click node_app "https://github.com/fairolegends/pause-tape/blob/main/js/app.js"
click node_record "https://github.com/fairolegends/pause-tape/blob/main/js/record.js"
click node_shelf "https://github.com/fairolegends/pause-tape/blob/main/js/shelf.js"
click node_playback "https://github.com/fairolegends/pause-tape/blob/main/js/playback.js"
click node_tape_rules "https://github.com/fairolegends/pause-tape/blob/main/js/tapes.js"
click node_tape_store "https://github.com/fairolegends/pause-tape/blob/main/js/store.js"
click node_voice_store "https://github.com/fairolegends/pause-tape/blob/main/js/voice.js"
click node_calendar "https://github.com/fairolegends/pause-tape/blob/main/js/ics.js"
click node_tape_link "https://github.com/fairolegends/pause-tape/blob/main/js/tapelink.js"
click node_room "https://github.com/fairolegends/pause-tape/blob/main/js/room.js"
click node_books "https://github.com/fairolegends/pause-tape/blob/main/js/books.js"
click node_cat "https://github.com/fairolegends/pause-tape/blob/main/js/cat.js"
click node_ambience "https://github.com/fairolegends/pause-tape/blob/main/js/ambience.js"
click node_crt "https://github.com/fairolegends/pause-tape/blob/main/js/crt.js"
click node_sound "https://github.com/fairolegends/pause-tape/blob/main/js/sound.js"
click node_prefs "https://github.com/fairolegends/pause-tape/blob/main/js/prefs.js"
click node_motion "https://github.com/fairolegends/pause-tape/blob/main/js/motion.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_record,node_shelf,node_playback,node_tape_rules,node_user toneBlue
class node_tape_store,node_voice_store,node_calendar,node_tape_link toneAmber
class node_room,node_books,node_cat,node_ambience,node_crt toneMint
class node_sound,node_prefs,node_motion toneRose
```

## Components

### Tape workflow

- [App coordinator](https://github.com/fairolegends/pause-tape/blob/main/js/app.js): `js/app.js`
- [Record tape](https://github.com/fairolegends/pause-tape/blob/main/js/record.js): `js/record.js`
- [Tape shelf](https://github.com/fairolegends/pause-tape/blob/main/js/shelf.js): `js/shelf.js`
- [Playback](https://github.com/fairolegends/pause-tape/blob/main/js/playback.js): `js/playback.js`
- [Tape rules](https://github.com/fairolegends/pause-tape/blob/main/js/tapes.js): `js/tapes.js`

### Local data

- [Tape storage](https://github.com/fairolegends/pause-tape/blob/main/js/store.js): `js/store.js`
- [Voice notes](https://github.com/fairolegends/pause-tape/blob/main/js/voice.js): `js/voice.js`
- [Calendar export](https://github.com/fairolegends/pause-tape/blob/main/js/ics.js): `js/ics.js`
- [Tape link import](https://github.com/fairolegends/pause-tape/blob/main/js/tapelink.js): `js/tapelink.js`

### Room experience

- [3D living room](https://github.com/fairolegends/pause-tape/blob/main/js/room.js): `js/room.js`
- [Procedural books](https://github.com/fairolegends/pause-tape/blob/main/js/books.js): `js/books.js`
- [Procedural cat](https://github.com/fairolegends/pause-tape/blob/main/js/cat.js): `js/cat.js`
- [Outdoor ambience](https://github.com/fairolegends/pause-tape/blob/main/js/ambience.js): `js/ambience.js`
- [CRT display](https://github.com/fairolegends/pause-tape/blob/main/js/crt.js): `js/crt.js`

### Experience support

- [Audio system](https://github.com/fairolegends/pause-tape/blob/main/js/sound.js): `js/sound.js`
- [Preferences](https://github.com/fairolegends/pause-tape/blob/main/js/prefs.js): `js/prefs.js`
- [Screen motion](https://github.com/fairolegends/pause-tape/blob/main/js/motion.js): `js/motion.js`

### Other components

- **User**

## Connections

- User → App coordinator: uses (evidence: `README.md`)
- App coordinator → Record tape: opens recording (evidence: `js/app.js`)
- App coordinator → Tape shelf: renders shelf (evidence: `js/app.js`)
- App coordinator → Playback: starts playback (evidence: `js/app.js`)
- App coordinator → Tape storage: loads and saves (evidence: `js/app.js`)
- App coordinator → Tape rules: uses date rules (evidence: `js/app.js`)
- App coordinator → Voice notes: saves voice (evidence: `js/app.js`)
- App coordinator → Calendar export: exports reminder (evidence: `README.md`)
- App coordinator → Tape link import: imports linked tape (evidence: `README.md`)
- App coordinator → CRT display: starts display (evidence: `js/app.js`)
- App coordinator → 3D living room: starts room (evidence: `js/app.js`)
- App coordinator → Preferences: reads preferences (evidence: `js/app.js`)
- App coordinator → Audio system: controls music (evidence: `js/app.js`)
- App coordinator → Screen motion: configures motion (evidence: `js/app.js`)
- Record tape → Voice notes: records voice (evidence: `js/record.js`)
- Record tape → Tape rules: checks dates (evidence: `js/record.js`)
- Tape shelf → Tape rules: uses tape dates (evidence: `js/shelf.js`)
- Playback → Tape rules: formats playback (evidence: `js/playback.js`)
- Playback → Voice notes: loads voice (evidence: `js/playback.js`)
- Playback → Screen motion: animates playback (evidence: `js/playback.js`)
- Playback → Audio system: plays effects (evidence: `js/playback.js`)
- Tape storage → Tape rules: validates tapes (evidence: `js/store.js`)
- Tape link import → Tape rules: uses tape data (evidence: `js/tapelink.js`)
- 3D living room → Procedural books: builds shelf books (evidence: `js/room.js`)
- 3D living room → Preferences: reads settings (evidence: `js/room.js`)
- 3D living room → Audio system: reads rain setting (evidence: `js/room.js`)
- 3D living room → Procedural cat: renders cat (evidence: `js/room.js`)
- Audio system → Outdoor ambience: creates ambience (evidence: `js/sound.js`)
- Audio system → Preferences: reads sound settings (evidence: `js/sound.js`)
- Screen motion → Preferences: reads motion setting (evidence: `js/motion.js`)
- Screen motion → Audio system: plays text ticks (evidence: `js/motion.js`)
