# magnum6actual/flipoff architecture

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

- Interactive diagram: https://gitdiagram.com/magnum6actual/flipoff
- Repository: https://github.com/magnum6actual/flipoff

## Overview

FlipOff is a browser-based split-flap display. Users open the page, then watch quotes rotate automatically or navigate them with keyboard controls; the board scrambles changed tiles and plays one recorded transition sound. The graph preserves the documented fullscreen, mute, responsive/offline, and customization capabilities. Source excerpts show the JavaScript control and rendering relationships; presentation details are documented in the README, while the HTML and CSS source were not sampled.

Main entry points: [`index.html`](https://github.com/magnum6actual/flipoff/blob/main/index.html) (Web app page), [`js/main.js`](https://github.com/magnum6actual/flipoff/blob/main/js/main.js) (App startup), [`js/Board.js`](https://github.com/magnum6actual/flipoff/blob/main/js/Board.js) (Grid and transitions), [`js/MessageRotator.js`](https://github.com/magnum6actual/flipoff/blob/main/js/MessageRotator.js) (Message rotation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App orchestration"]
  node_page["Web app page<br/>[index.html]"]
  node_startup["App startup<br/>[main.js]"]
  node_messages["Quote collection<br/>[constants.js]"]
end

subgraph group_display["Split-flap display"]
  node_board["Grid and transitions<br/>[Board.js]"]
  node_tiles["Tile animation<br/>[Tile.js]"]
end

subgraph group_controls["Navigation and controls"]
  node_rotator["Message rotation<br/>[MessageRotator.js]"]
  node_keyboard["Keyboard shortcuts"]
end

subgraph group_audio["Transition audio"]
  node_audioengine["Sound playback<br/>[SoundEngine.js]"]
  node_audioasset["Embedded flap recording<br/>[flapAudio.js]"]
end

subgraph group_presentation["Page presentation"]
  node_displaystyles["Board and tile styling<br/>[board.css]"]
  node_layoutstyles["Layout and responsiveness<br/>[layout.css]"]
  node_responsivestyles["Responsive styling<br/>[responsive.css]"]
end

node_visitor(("Viewer"))

node_visitor -->|"opens"| node_page
node_page -->|"loads"| node_startup
node_startup -->|"creates"| node_board
node_startup -->|"creates"| node_rotator
node_startup -->|"creates"| node_keyboard
node_startup -->|"creates"| node_audioengine
node_rotator -->|"reads"| node_messages
node_rotator -->|"displays"| node_board
node_keyboard -->|"navigates"| node_rotator
node_keyboard -->|"toggles mute"| node_audioengine
node_board -->|"animates"| node_tiles
node_board -->|"plays transition"| node_audioengine
node_audioengine -->|"decodes"| node_audioasset
node_page -.->|"styles"| node_displaystyles
node_page -.->|"styles"| node_layoutstyles
node_page -.->|"styles"| node_responsivestyles

click node_page "https://github.com/magnum6actual/flipoff/blob/main/index.html"
click node_startup "https://github.com/magnum6actual/flipoff/blob/main/js/main.js"
click node_messages "https://github.com/magnum6actual/flipoff/blob/main/js/constants.js"
click node_rotator "https://github.com/magnum6actual/flipoff/blob/main/js/MessageRotator.js"
click node_keyboard "https://github.com/magnum6actual/flipoff/blob/main/js/KeyboardController.js"
click node_board "https://github.com/magnum6actual/flipoff/blob/main/js/Board.js"
click node_tiles "https://github.com/magnum6actual/flipoff/blob/main/js/Tile.js"
click node_displaystyles "https://github.com/magnum6actual/flipoff/blob/main/css/board.css"
click node_layoutstyles "https://github.com/magnum6actual/flipoff/blob/main/css/layout.css"
click node_responsivestyles "https://github.com/magnum6actual/flipoff/blob/main/css/responsive.css"
click node_audioengine "https://github.com/magnum6actual/flipoff/blob/main/js/SoundEngine.js"
click node_audioasset "https://github.com/magnum6actual/flipoff/blob/main/js/flapAudio.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_page,node_startup,node_messages,node_visitor toneBlue
class node_board,node_tiles toneAmber
class node_rotator,node_keyboard toneMint
class node_audioengine,node_audioasset toneRose
class node_displaystyles,node_layoutstyles,node_responsivestyles toneIndigo
```

## Components

### App orchestration

- [Web app page](https://github.com/magnum6actual/flipoff/blob/main/index.html): `index.html`
- [App startup](https://github.com/magnum6actual/flipoff/blob/main/js/main.js): `js/main.js`
- [Quote collection](https://github.com/magnum6actual/flipoff/blob/main/js/constants.js): `js/constants.js`

### Split-flap display

- [Grid and transitions](https://github.com/magnum6actual/flipoff/blob/main/js/Board.js): `js/Board.js`
- [Tile animation](https://github.com/magnum6actual/flipoff/blob/main/js/Tile.js): `js/Tile.js`

### Navigation and controls

- [Message rotation](https://github.com/magnum6actual/flipoff/blob/main/js/MessageRotator.js): `js/MessageRotator.js`
- [Keyboard shortcuts](https://github.com/magnum6actual/flipoff/blob/main/js/KeyboardController.js): `js/KeyboardController.js`

### Transition audio

- [Sound playback](https://github.com/magnum6actual/flipoff/blob/main/js/SoundEngine.js): `js/SoundEngine.js`
- [Embedded flap recording](https://github.com/magnum6actual/flipoff/blob/main/js/flapAudio.js): `js/flapAudio.js`

### Page presentation

- [Board and tile styling](https://github.com/magnum6actual/flipoff/blob/main/css/board.css): `css/board.css`
- [Layout and responsiveness](https://github.com/magnum6actual/flipoff/blob/main/css/layout.css): `css/layout.css`
- [Responsive styling](https://github.com/magnum6actual/flipoff/blob/main/css/responsive.css): `css/responsive.css`

### Other components

- **Viewer**

## Connections

- Viewer → Web app page: opens (evidence: `README.md`)
- Web app page → App startup: loads (evidence: `README.md`)
- App startup → Grid and transitions: creates (evidence: `js/main.js`)
- App startup → Message rotation: creates (evidence: `js/main.js`)
- App startup → Keyboard shortcuts: creates (evidence: `js/main.js`)
- App startup → Sound playback: creates (evidence: `js/main.js`)
- Message rotation → Quote collection: reads (evidence: `js/MessageRotator.js`)
- Message rotation → Grid and transitions: displays (evidence: `js/MessageRotator.js`)
- Keyboard shortcuts → Message rotation: navigates (evidence: `js/KeyboardController.js`)
- Keyboard shortcuts → Sound playback: toggles mute (evidence: `js/KeyboardController.js`)
- Grid and transitions → Tile animation: animates (evidence: `js/Board.js`)
- Grid and transitions → Sound playback: plays transition (evidence: `js/Board.js`)
- Sound playback → Embedded flap recording: decodes (evidence: `js/SoundEngine.js`)
- Web app page → Board and tile styling: styles (evidence: `README.md`)
- Web app page → Layout and responsiveness: styles (evidence: `README.md`)
- Web app page → Responsive styling: styles (evidence: `README.md`)
