# ben-slates/discord-voice-notes architecture

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

- Interactive diagram: https://gitdiagram.com/ben-slates/discord-voice-notes
- Repository: https://github.com/ben-slates/discord-voice-notes

## Overview

Discord Voice Notes is a Vencord add-on for recording, previewing, and sending Discord voice messages, with documented bundled plugins and themes. The principal workflow starts at Discord’s composer or attachment menu, opens the recording panel, captures audio and waveform metadata, then uploads and dispatches a voice message or normal attachment. The graph also preserves README-documented add-on capabilities whose implementation was not sampled; those links cite the README rather than implying source inspection.

Main entry points: [`src/components/VoicePanel.tsx`](https://github.com/ben-slates/discord-voice-notes/blob/main/src/components/VoicePanel.tsx) (Recording panel), [`src/plugin/VoiceBarButton.tsx`](https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/VoiceBarButton.tsx) (Composer button), [`src/plugin/index.ts`](https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/index.ts) (Plugin registration), [`src/discord/uploader.ts`](https://github.com/ben-slates/discord-voice-notes/blob/main/src/discord/uploader.ts) (Upload and dispatch)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Discord Entry"]
  node_voice_plugin["Plugin registration<br/>[index.ts]"]
  node_composer_button["Composer button<br/>[VoiceBarButton.tsx]"]
end

subgraph group_voice["Voice Composer"]
  node_voice_panel["Recording panel<br/>[VoicePanel.tsx]"]
  node_audio_recorder["Audio recorder<br/>[recorder.ts]"]
  node_waveform["Waveform analysis<br/>[waveform.ts]"]
  node_voice_icons["Voice controls<br/>[Icons.tsx]"]
end

subgraph group_delivery["Message Delivery"]
  node_voice_protocol["Voice message protocol<br/>[types.ts]"]
  node_uploader["Upload and dispatch<br/>[uploader.ts]"]
end

subgraph group_extensions["Bundled Extensions"]
  node_split_messages["Long-message splitting"]
  node_catbox_upload["Catbox large uploads"]
  node_fake_nitro["FakeNitro features"]
  node_profile_themes["Profile themes"]
  node_custom_themes["Custom themes"]
  node_theme_search["Theme search"]
end

node_discord_user(("Discord user"))
node_discord_client["Discord client"]
node_discord_upload["Discord upload and API"]

node_discord_user -->|"uses"| node_discord_client
node_discord_client -->|"loads plugin"| node_voice_plugin
node_voice_plugin -->|"registers button"| node_composer_button
node_discord_user -->|"opens recorder"| node_composer_button
node_composer_button -->|"renders"| node_voice_panel
node_voice_plugin -->|"opens from menu"| node_voice_panel
node_voice_panel -->|"controls recording"| node_audio_recorder
node_audio_recorder -->|"generates metadata"| node_waveform
node_voice_panel -->|"decodes display"| node_waveform
node_voice_panel -->|"renders controls"| node_voice_icons
node_composer_button -->|"sends recording"| node_uploader
node_uploader -->|"builds payload"| node_voice_protocol
node_uploader -->|"uploads and posts"| node_discord_upload
node_discord_client -->|"splits long messages"| node_split_messages
node_discord_client -->|"offers large uploads"| node_catbox_upload
node_discord_client -.->|"enables optional features"| node_fake_nitro
node_discord_client -.->|"enables optional themes"| node_profile_themes
node_discord_client -->|"loads themes"| node_custom_themes
node_discord_client -->|"filters themes"| node_theme_search

click node_voice_plugin "https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/index.ts"
click node_composer_button "https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/VoiceBarButton.tsx"
click node_voice_panel "https://github.com/ben-slates/discord-voice-notes/blob/main/src/components/VoicePanel.tsx"
click node_audio_recorder "https://github.com/ben-slates/discord-voice-notes/blob/main/src/audio/recorder.ts"
click node_waveform "https://github.com/ben-slates/discord-voice-notes/blob/main/src/audio/waveform.ts"
click node_voice_icons "https://github.com/ben-slates/discord-voice-notes/blob/main/src/components/Icons.tsx"
click node_voice_protocol "https://github.com/ben-slates/discord-voice-notes/blob/main/src/discord/types.ts"
click node_uploader "https://github.com/ben-slates/discord-voice-notes/blob/main/src/discord/uploader.ts"
click node_split_messages "https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist"
click node_catbox_upload "https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist"
click node_fake_nitro "https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist"
click node_profile_themes "https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist"
click node_custom_themes "https://github.com/ben-slates/discord-voice-notes/tree/main/themes"
click node_theme_search "https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist"

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_voice_plugin,node_composer_button,node_discord_user,node_discord_client toneBlue
class node_voice_panel,node_audio_recorder,node_waveform,node_voice_icons toneAmber
class node_voice_protocol,node_uploader,node_discord_upload toneMint
class node_split_messages,node_catbox_upload,node_fake_nitro,node_profile_themes,node_custom_themes,node_theme_search toneRose
```

## Components

### Discord Entry

- [Plugin registration](https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/index.ts): `src/plugin/index.ts`
- [Composer button](https://github.com/ben-slates/discord-voice-notes/blob/main/src/plugin/VoiceBarButton.tsx): `src/plugin/VoiceBarButton.tsx`

### Voice Composer

- [Recording panel](https://github.com/ben-slates/discord-voice-notes/blob/main/src/components/VoicePanel.tsx): `src/components/VoicePanel.tsx`
- [Audio recorder](https://github.com/ben-slates/discord-voice-notes/blob/main/src/audio/recorder.ts): `src/audio/recorder.ts`
- [Waveform analysis](https://github.com/ben-slates/discord-voice-notes/blob/main/src/audio/waveform.ts): `src/audio/waveform.ts`
- [Voice controls](https://github.com/ben-slates/discord-voice-notes/blob/main/src/components/Icons.tsx): `src/components/Icons.tsx`

### Message Delivery

- [Voice message protocol](https://github.com/ben-slates/discord-voice-notes/blob/main/src/discord/types.ts): `src/discord/types.ts`
- [Upload and dispatch](https://github.com/ben-slates/discord-voice-notes/blob/main/src/discord/uploader.ts): `src/discord/uploader.ts`

### Bundled Extensions

- [Long-message splitting](https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist): `vencord/dist`
- [Catbox large uploads](https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist): `vencord/dist`
- [FakeNitro features](https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist): `vencord/dist`
- [Profile themes](https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist): `vencord/dist`
- [Custom themes](https://github.com/ben-slates/discord-voice-notes/tree/main/themes): `themes`
- [Theme search](https://github.com/ben-slates/discord-voice-notes/tree/main/vencord/dist): `vencord/dist`

### Other components

- **Discord user**
- **Discord client**
- **Discord upload and API**

## Connections

- Discord user → Discord client: uses (evidence: `README.md`)
- Discord client → Plugin registration: loads plugin (evidence: `README.md`)
- Plugin registration → Composer button: registers button (evidence: `src/plugin/index.ts`)
- Discord user → Composer button: opens recorder (evidence: `README.md`)
- Composer button → Recording panel: renders (evidence: `src/plugin/VoiceBarButton.tsx`)
- Plugin registration → Recording panel: opens from menu (evidence: `src/plugin/index.ts`)
- Recording panel → Audio recorder: controls recording (evidence: `src/components/VoicePanel.tsx`)
- Audio recorder → Waveform analysis: generates metadata (evidence: `src/audio/recorder.ts`)
- Recording panel → Waveform analysis: decodes display (evidence: `src/components/VoicePanel.tsx`)
- Recording panel → Voice controls: renders controls (evidence: `src/components/VoicePanel.tsx`)
- Composer button → Upload and dispatch: sends recording (evidence: `src/plugin/VoiceBarButton.tsx`)
- Upload and dispatch → Voice message protocol: builds payload (evidence: `src/discord/uploader.ts`)
- Upload and dispatch → Discord upload and API: uploads and posts (evidence: `src/discord/uploader.ts`)
- Discord client → Long-message splitting: splits long messages (evidence: `README.md`)
- Discord client → Catbox large uploads: offers large uploads (evidence: `README.md`)
- Discord client → FakeNitro features: enables optional features (evidence: `README.md`)
- Discord client → Profile themes: enables optional themes (evidence: `README.md`)
- Discord client → Custom themes: loads themes (evidence: `README.md`)
- Discord client → Theme search: filters themes (evidence: `README.md`)
