# tihonoveckijan8-dev/grouppp architecture

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

- Interactive diagram: https://gitdiagram.com/tihonoveckijan8-dev/grouppp
- Repository: https://github.com/tihonoveckijan8-dev/grouppp

## Overview

BandPlan is a browser-based music-group planning app with account-backed cloud features, offline support, and a standalone metronome. The visible runtime entry point loads the core; the core initializes account state through the cloud client, while the metronome provides tempo controls and audio. The README contains only the product name, so capability coverage is based on the core’s own header and sampled code. The core is a large, unsampled-in-part monolith; separate feature nodes below represent documented responsibilities, not inspected independent modules.

Main entry points: [`bandplan-core.js`](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js) (App core), [`supabase.js`](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js) (Account auth), [`metronome-audio.js`](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/metronome-audio.js) (Metronome), [`bandplan.js`](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan.js) (Runtime bootstrap)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Planning app"]
  node_bootstrap["Runtime bootstrap<br/>[bandplan.js]"]
  node_core["App core<br/>[bandplan-core.js]"]
  node_calendar["Schedule<br/>[bandplan-core.js]"]
  node_repertoire["Repertoire<br/>[bandplan-core.js]"]
  node_setlists["Set lists<br/>[bandplan-core.js]"]
  node_stage["Stage tools<br/>[bandplan-core.js]"]
  node_accessibility["Accessible UI<br/>[bandplan-core.js]"]
end

subgraph group_accounts["Accounts and sync"]
  node_auth["Account auth<br/>[supabase.js]"]
  node_group["Group management<br/>[supabase.js]"]
  node_participation["Event participation<br/>[supabase.js]"]
  node_registration["Account registration<br/>[index.ts]"]
  node_supabase[("Supabase service")]
  node_client_config["Client config<br/>[config.js]"]
end

subgraph group_music["Music tools"]
  node_metronome["Metronome<br/>[metronome-audio.js]"]
  node_web_audio["Web Audio"]
  node_local_settings[("Tempo settings<br/>[metronome-audio.js]")]
end

subgraph group_offline["Offline runtime"]
  node_offline_queue[("Offline queue<br/>[supabase.js]")]
  node_shell_cache[("App shell cache<br/>[sw.js]")]
end

node_musician(("Musician"))

node_bootstrap -->|"loads"| node_core
node_core -->|"initializes"| node_auth
node_core -->|"submits updates"| node_participation
node_core -->|"queues offline"| node_offline_queue
node_auth -->|"auth and data"| node_supabase
node_group -.->|"reads and writes"| node_supabase
node_registration -->|"creates accounts"| node_supabase
node_auth -->|"uses configuration"| node_client_config
node_metronome -->|"stores settings"| node_local_settings
node_metronome -->|"schedules tones"| node_web_audio
node_shell_cache -->|"caches runtime"| node_core
node_musician -.->|"opens app"| node_bootstrap

click node_bootstrap "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan.js"
click node_core "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_calendar "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_repertoire "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_setlists "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_stage "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_accessibility "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js"
click node_auth "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js"
click node_group "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js"
click node_participation "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js"
click node_registration "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase/functions/bandplan-register/index.ts"
click node_metronome "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/metronome-audio.js"
click node_local_settings "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/metronome-audio.js"
click node_offline_queue "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js"
click node_shell_cache "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/sw.js"
click node_client_config "https://github.com/tihonoveckijan8-dev/grouppp/blob/main/config.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_bootstrap,node_core,node_calendar,node_repertoire,node_setlists,node_stage,node_accessibility toneBlue
class node_auth,node_group,node_participation,node_registration,node_supabase,node_client_config toneAmber
class node_metronome,node_web_audio,node_local_settings toneMint
class node_offline_queue,node_shell_cache toneRose
class node_musician toneIndigo
```

## Components

### Planning app

- [Runtime bootstrap](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan.js): `bandplan.js`
- [App core](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`
- [Schedule](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`
- [Repertoire](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`
- [Set lists](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`
- [Stage tools](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`
- [Accessible UI](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/bandplan-core.js): `bandplan-core.js`

### Accounts and sync

- [Account auth](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js): `supabase.js`
- [Group management](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js): `supabase.js`
- [Event participation](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js): `supabase.js`
- [Account registration](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase/functions/bandplan-register/index.ts): `supabase/functions/bandplan-register/index.ts`
- **Supabase service**
- [Client config](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/config.js): `config.js`

### Music tools

- [Metronome](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/metronome-audio.js): `metronome-audio.js`
- **Web Audio**
- [Tempo settings](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/metronome-audio.js): `metronome-audio.js`

### Offline runtime

- [Offline queue](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/supabase.js): `supabase.js`
- [App shell cache](https://github.com/tihonoveckijan8-dev/grouppp/blob/main/sw.js): `sw.js`

### Other components

- **Musician**

## Connections

- Runtime bootstrap → App core: loads (evidence: `bandplan.js`)
- App core → Account auth: initializes (evidence: `bandplan-core.js`)
- App core → Event participation: submits updates (evidence: `bandplan-core.js`)
- App core → Offline queue: queues offline (evidence: `bandplan-core.js`)
- Account auth → Supabase service: auth and data (evidence: `supabase.js`)
- Group management → Supabase service: reads and writes
- Account registration → Supabase service: creates accounts (evidence: `supabase/functions/bandplan-register/index.ts`)
- Account auth → Client config: uses configuration (evidence: `supabase.js`)
- Metronome → Tempo settings: stores settings (evidence: `metronome-audio.js`)
- Metronome → Web Audio: schedules tones (evidence: `metronome-audio.js`)
- App shell cache → App core: caches runtime (evidence: `sw.js`)
- Musician → Runtime bootstrap: opens app
