# james-creosphere/mtg-mgr architecture

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

- Interactive diagram: https://gitdiagram.com/james-creosphere/mtg-mgr
- Repository: https://github.com/james-creosphere/mtg-mgr

## Overview

Meeting Manager is a browser-based meeting timer. Users configure a meeting and its intro/outro, add participants or agenda items, then start a timer that advances through the meeting segments. The runtime is concentrated in app.js, which also initializes the animated background and handles meeting configuration export. The supplied excerpts do not show all UI handlers or agenda behavior, so those links are based on README descriptions; no separate storage service is documented.

Main entry points: [`index.html`](https://github.com/james-creosphere/mtg-mgr/blob/main/index.html) (Meeting controls), [`app.js`](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js) (Meeting configuration), [`styles.css`](https://github.com/james-creosphere/mtg-mgr/blob/main/styles.css) (Glass UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_setup["Meeting setup"]
  node_meeting_ui["Meeting controls<br/>[index.html]"]
  node_configuration["Meeting configuration<br/>[app.js]"]
  node_segments["Intro and outro<br/>[app.js]"]
  node_participants["Participants and agenda<br/>[app.js]"]
  node_allocation["Time allocation<br/>[app.js]"]
  node_export["Configuration export<br/>[app.js]"]
end

subgraph group_runtime["Meeting runtime"]
  node_timer["Meeting countdown<br/>[app.js]"]
  node_phase_scheduler["Phase progression<br/>[app.js]"]
  node_speaker_timer["Speaker countdown<br/>[app.js]"]
  node_timer_controls["Start pause reset<br/>[app.js]"]
end

subgraph group_presentation["Browser presentation"]
  node_meeting_display["Timer display<br/>[app.js]"]
  node_participant_display["Participant display<br/>[app.js]"]
  node_visual_design["Glass UI<br/>[styles.css]"]
  node_animated_background["Vanta background<br/>[app.js]"]
end

node_host(("Meeting host"))
node_vanta{{"Vanta.js"}}

node_host -->|"configures"| node_meeting_ui
node_meeting_ui -->|"sets options"| node_configuration
node_configuration -->|"sets times"| node_segments
node_configuration -->|"adds entries"| node_participants
node_participants -->|"receives allocation"| node_allocation
node_segments -->|"constrains time"| node_allocation
node_host -->|"starts meeting"| node_timer_controls
node_timer_controls -->|"controls"| node_timer
node_timer -->|"advances phases"| node_phase_scheduler
node_phase_scheduler -->|"tracks speaker"| node_speaker_timer
node_timer -->|"updates countdown"| node_meeting_display
node_participants -->|"renders entries"| node_participant_display
node_host -->|"exports config"| node_export
node_meeting_ui -.->|"uses styling"| node_visual_design
node_animated_background -->|"initializes"| node_vanta

click node_meeting_ui "https://github.com/james-creosphere/mtg-mgr/blob/main/index.html"
click node_configuration "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_segments "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_participants "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_allocation "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_export "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_timer "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_phase_scheduler "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_speaker_timer "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_timer_controls "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_meeting_display "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_participant_display "https://github.com/james-creosphere/mtg-mgr/blob/main/app.js"
click node_visual_design "https://github.com/james-creosphere/mtg-mgr/blob/main/styles.css"
click node_animated_background "https://github.com/james-creosphere/mtg-mgr/blob/main/app.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_meeting_ui,node_configuration,node_segments,node_participants,node_allocation,node_export toneBlue
class node_timer,node_phase_scheduler,node_speaker_timer,node_timer_controls toneAmber
class node_meeting_display,node_participant_display,node_visual_design,node_animated_background toneMint
class node_host,node_vanta toneIndigo
```

## Components

### Meeting setup

- [Meeting controls](https://github.com/james-creosphere/mtg-mgr/blob/main/index.html): `index.html`
- [Meeting configuration](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Intro and outro](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Participants and agenda](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Time allocation](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Configuration export](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`

### Meeting runtime

- [Meeting countdown](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Phase progression](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Speaker countdown](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Start pause reset](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`

### Browser presentation

- [Timer display](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Participant display](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`
- [Glass UI](https://github.com/james-creosphere/mtg-mgr/blob/main/styles.css): `styles.css`
- [Vanta background](https://github.com/james-creosphere/mtg-mgr/blob/main/app.js): `app.js`

### Other components

- **Meeting host**
- **Vanta.js**

## Connections

- Meeting host → Meeting controls: configures (evidence: `README.md`)
- Meeting controls → Meeting configuration: sets options (evidence: `app.js`)
- Meeting configuration → Intro and outro: sets times (evidence: `README.md`)
- Meeting configuration → Participants and agenda: adds entries (evidence: `README.md`)
- Participants and agenda → Time allocation: receives allocation (evidence: `README.md`)
- Intro and outro → Time allocation: constrains time (evidence: `README.md`)
- Meeting host → Start pause reset: starts meeting (evidence: `README.md`)
- Start pause reset → Meeting countdown: controls (evidence: `README.md`)
- Meeting countdown → Phase progression: advances phases (evidence: `README.md`)
- Phase progression → Speaker countdown: tracks speaker (evidence: `README.md`)
- Meeting countdown → Timer display: updates countdown (evidence: `app.js`)
- Participants and agenda → Participant display: renders entries (evidence: `app.js`)
- Meeting host → Configuration export: exports config (evidence: `app.js`)
- Meeting controls → Glass UI: uses styling
- Vanta background → Vanta.js: initializes (evidence: `app.js`)
