# vortexapps67/beatwave architecture

> Architecture diagram of the GitHub repository vortexapps67/beatwave, 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/vortexapps67/beatwave
- Repository: https://github.com/vortexapps67/beatwave

## Overview

BeatWave is an Android music player whose main workflow is browsing the YouTube Music catalog, selecting tracks, and playing them through a Media3 service, with local persistence and playback controls. The README also documents downloads, lyrics, equalization, Liquid Glass UI, Listen Together, Discord presence, and in-app updates; the tree contains corresponding modules for most of these. Several relationships and the updater implementation are not shown in source excerpts, so those links are omitted or marked unverified rather than treated as inspected.

Main entry points: [`app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt) (Playback service), [`app/src/main/kotlin/com/beatwave/music/MainActivity.kt`](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/MainActivity.kt) (Compose app UI), [`innertube/src/main/kotlin/com/music/innertube/pages/SearchSummaryPage.kt`](https://github.com/vortexapps67/beatwave/blob/main/innertube/src/main/kotlin/com/music/innertube/pages/SearchSummaryPage.kt) (YouTube Music API), [`app/src/main/kotlin/com/beatwave/music/listentogether/ListenTogetherClient.kt`](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/listentogether/ListenTogetherClient.kt) (Listen Together)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["App experience"]
  node_app_ui["Compose app UI<br/>[MainActivity.kt]"]
  node_glass["Liquid Glass UI<br/>[GlassEffect.kt]"]
  node_library[("Local library<br/>[MusicDatabase.kt]")]
end

subgraph group_music["Music discovery"]
  node_youtube["YouTube Music API"]
  node_lyrics["Synced lyrics<br/>[LyricsHelper.kt]"]
end

subgraph group_playback["Playback and audio"]
  node_playback_service["Playback service<br/>[MusicService.kt]"]
  node_downloads["Offline downloads"]
  node_audio_effects["Audio processing"]
  node_dj_mixing["DJ transitions<br/>[DjEngine.kt]"]
  node_equalizer["Equalizer"]
end

subgraph group_social["Social and recognition"]
  node_listen_client["Listen Together"]
  node_listen_server["Room service<br/>[index.ts]"]
  node_recognition["Music recognition"]
end

subgraph group_integrations["External integrations"]
  node_discord["Discord presence<br/>[KizzyRPC.kt]"]
  node_updater["In-app updater"]
end

node_listener(("Listener"))

node_listener -->|"uses"| node_app_ui
node_app_ui -->|"renders"| node_glass
node_app_ui -->|"browses catalog"| node_youtube
node_youtube -.->|"supplies streams"| node_playback_service
node_app_ui -->|"controls playback"| node_playback_service
node_playback_service -->|"persists locally"| node_library
node_playback_service -.->|"downloads tracks"| node_downloads
node_playback_service -.->|"processes audio"| node_audio_effects
node_playback_service -->|"applies EQ"| node_equalizer
node_playback_service -.->|"plans transitions"| node_dj_mixing
node_playback_service -->|"loads lyrics"| node_lyrics
node_app_ui -->|"offers sync"| node_listen_client
node_listen_client -.->|"syncs rooms"| node_listen_server
node_app_ui -.->|"starts recognition"| node_recognition
node_playback_service -.->|"updates presence"| node_discord
node_app_ui -->|"checks updates"| node_updater

click node_app_ui "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/MainActivity.kt"
click node_glass "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/ui/component/GlassEffect.kt"
click node_library "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/db/MusicDatabase.kt"
click node_youtube "https://github.com/vortexapps67/beatwave/blob/main/innertube/src/main/kotlin/com/music/innertube/pages/SearchSummaryPage.kt"
click node_playback_service "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt"
click node_downloads "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/ExoDownloadService.kt"
click node_audio_effects "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/audio/DjFilterAudioProcessor.kt"
click node_dj_mixing "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/dj/DjEngine.kt"
click node_equalizer "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/eq/EqualizerService.kt"
click node_lyrics "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/lyrics/LyricsHelper.kt"
click node_listen_client "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/listentogether/ListenTogetherClient.kt"
click node_listen_server "https://github.com/vortexapps67/beatwave/blob/main/listen-together-server/src/index.ts"
click node_recognition "https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/recognition/MusicRecognitionService.kt"
click node_discord "https://github.com/vortexapps67/beatwave/blob/main/kizzy/src/main/kotlin/com/my/kizzy/rpc/KizzyRPC.kt"
click node_updater "https://github.com/vortexapps67/beatwave/tree/main/app/src/main/kotlin/com/beatwave/music"

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_ui,node_glass,node_library toneBlue
class node_youtube,node_lyrics toneAmber
class node_playback_service,node_downloads,node_audio_effects,node_dj_mixing,node_equalizer toneMint
class node_listen_client,node_listen_server,node_recognition toneRose
class node_discord,node_updater,node_listener toneIndigo
```

## Components

### App experience

- [Compose app UI](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/MainActivity.kt): `app/src/main/kotlin/com/beatwave/music/MainActivity.kt`
- [Liquid Glass UI](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/ui/component/GlassEffect.kt): `app/src/main/kotlin/com/beatwave/music/ui/component/GlassEffect.kt`
- [Local library](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/db/MusicDatabase.kt): `app/src/main/kotlin/com/beatwave/music/db/MusicDatabase.kt`

### Music discovery

- [YouTube Music API](https://github.com/vortexapps67/beatwave/blob/main/innertube/src/main/kotlin/com/music/innertube/pages/SearchSummaryPage.kt): `innertube/src/main/kotlin/com/music/innertube/pages/SearchSummaryPage.kt`
- [Synced lyrics](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/lyrics/LyricsHelper.kt): `app/src/main/kotlin/com/beatwave/music/lyrics/LyricsHelper.kt`

### Playback and audio

- [Playback service](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt): `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`
- [Offline downloads](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/ExoDownloadService.kt): `app/src/main/kotlin/com/beatwave/music/playback/ExoDownloadService.kt`
- [Audio processing](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/audio/DjFilterAudioProcessor.kt): `app/src/main/kotlin/com/beatwave/music/playback/audio/DjFilterAudioProcessor.kt`
- [DJ transitions](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/playback/dj/DjEngine.kt): `app/src/main/kotlin/com/beatwave/music/playback/dj/DjEngine.kt`
- [Equalizer](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/eq/EqualizerService.kt): `app/src/main/kotlin/com/beatwave/music/eq/EqualizerService.kt`

### Social and recognition

- [Listen Together](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/listentogether/ListenTogetherClient.kt): `app/src/main/kotlin/com/beatwave/music/listentogether/ListenTogetherClient.kt`
- [Room service](https://github.com/vortexapps67/beatwave/blob/main/listen-together-server/src/index.ts): `listen-together-server/src/index.ts`
- [Music recognition](https://github.com/vortexapps67/beatwave/blob/main/app/src/main/kotlin/com/beatwave/music/recognition/MusicRecognitionService.kt): `app/src/main/kotlin/com/beatwave/music/recognition/MusicRecognitionService.kt`

### External integrations

- [Discord presence](https://github.com/vortexapps67/beatwave/blob/main/kizzy/src/main/kotlin/com/my/kizzy/rpc/KizzyRPC.kt): `kizzy/src/main/kotlin/com/my/kizzy/rpc/KizzyRPC.kt`
- [In-app updater](https://github.com/vortexapps67/beatwave/tree/main/app/src/main/kotlin/com/beatwave/music): `app/src/main/kotlin/com/beatwave/music`

### Other components

- **Listener**

## Connections

- Listener → Compose app UI: uses (evidence: `README.md`)
- Compose app UI → Liquid Glass UI: renders (evidence: `README.md`)
- Compose app UI → YouTube Music API: browses catalog (evidence: `README.md`)
- YouTube Music API → Playback service: supplies streams
- Compose app UI → Playback service: controls playback (evidence: `README.md`)
- Playback service → Local library: persists locally (evidence: `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`)
- Playback service → Offline downloads: downloads tracks
- Playback service → Audio processing: processes audio (evidence: `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`)
- Playback service → Equalizer: applies EQ (evidence: `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`)
- Playback service → DJ transitions: plans transitions (evidence: `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`)
- Playback service → Synced lyrics: loads lyrics (evidence: `app/src/main/kotlin/com/beatwave/music/playback/MusicService.kt`)
- Compose app UI → Listen Together: offers sync (evidence: `README.md`)
- Listen Together → Room service: syncs rooms
- Compose app UI → Music recognition: starts recognition
- Playback service → Discord presence: updates presence
- Compose app UI → In-app updater: checks updates (evidence: `README.md`)
