# mrabookah/waveflow architecture

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

- Interactive diagram: https://gitdiagram.com/mrabookah/waveflow
- Repository: https://github.com/mrabookah/waveflow

## Overview

WaveFlow is a private, cross-platform voice-dictation app: the user holds a hotkey, speaks, and the app streams speech for transcription, then types committed words into the focused field. The app also supports local or remote engines, guided server setup, connection and appearance settings, and cleanup on uninstall. The graph follows documented workflows and relationships visible in the provided source index; unsampled implementation details and uncertain links are omitted.

Main entry points: [`app/waveflow.py`](https://github.com/mrabookah/waveflow/blob/main/app/waveflow.py) (Dictation App), [`app/wizard.py`](https://github.com/mrabookah/waveflow/blob/main/app/wizard.py) (Setup Wizard), [`app/osbridge/__init__.py`](https://github.com/mrabookah/waveflow/blob/main/app/osbridge/__init__.py) (OS Bridge), [`server/parakeet_server.py`](https://github.com/mrabookah/waveflow/blob/main/server/parakeet_server.py) (Speech Server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_dictation["Dictation Client"]
  node_app["Dictation App<br/>[waveflow.py]"]
  node_audio["Microphone Capture<br/>[audio.py]"]
  node_overlay["Live Overlay<br/>[waveflow.py]"]
  node_typing["Text Injection<br/>[stt.py]"]
end

subgraph group_platform["Desktop Platform"]
  node_osbridge["OS Bridge<br/>[__init__.py]"]
  node_mac["macOS Backend<br/>[mac.py]"]
  node_windows["Windows Backend<br/>[win.py]"]
end

subgraph group_engines["Speech Engines"]
  node_localengine["Local Engine Manager<br/>[local_engine.py]"]
  node_server["Speech Server<br/>[parakeet_server.py]"]
  node_vocab["Vocabulary<br/>[vocab.py]"]
  node_itn["Text Normalization<br/>[itn.py]"]
end

subgraph group_provisioning["Setup &amp; Provisioning"]
  node_wizard["Setup Wizard<br/>[wizard.py]"]
  node_wizardui["Wizard Widgets<br/>[wizard_ui.py]"]
  node_setup["Setup Logic<br/>[setup_logic.py]"]
  node_remote["Remote Installer<br/>[remote_install.py]"]
end

subgraph group_management["App Management"]
  node_settings["Settings Window<br/>[settings.py]"]
  node_panels["Shared Panels<br/>[panels.py]"]
  node_uninstall["Uninstaller<br/>[uninstall.py]"]
end

node_user(("User"))

node_user -->|"holds hotkey"| node_app
node_app -->|"captures speech"| node_audio
node_app -->|"shows controls"| node_overlay
node_app -->|"injects text"| node_typing
node_audio -->|"uses device APIs"| node_osbridge
node_app -->|"uses platform APIs"| node_osbridge
node_osbridge -->|"routes on macOS"| node_mac
node_osbridge -->|"routes on Windows"| node_windows
node_app -->|"starts engine"| node_localengine
node_localengine -->|"launches process"| node_server
node_app -->|"streams audio"| node_server
node_server -->|"loads vocabulary"| node_vocab
node_server -->|"normalizes text"| node_itn
node_app -->|"opens setup"| node_wizard
node_wizard -->|"builds setup plans"| node_setup
node_wizard -->|"renders widgets"| node_wizardui
node_wizard -->|"requests server install"| node_remote
node_remote -->|"uses setup rules"| node_setup
node_app -->|"opens settings"| node_settings
node_settings -->|"embeds shared panels"| node_panels
node_settings -->|"runs connection checks"| node_setup
node_panels -->|"shows uninstall options"| node_uninstall
node_app -->|"supports cleanup"| node_uninstall

click node_app "https://github.com/mrabookah/waveflow/blob/main/app/waveflow.py"
click node_audio "https://github.com/mrabookah/waveflow/blob/main/app/audio.py"
click node_overlay "https://github.com/mrabookah/waveflow/blob/main/app/waveflow.py"
click node_typing "https://github.com/mrabookah/waveflow/blob/main/app/stt.py"
click node_osbridge "https://github.com/mrabookah/waveflow/blob/main/app/osbridge/__init__.py"
click node_mac "https://github.com/mrabookah/waveflow/blob/main/app/osbridge/mac.py"
click node_windows "https://github.com/mrabookah/waveflow/blob/main/app/osbridge/win.py"
click node_localengine "https://github.com/mrabookah/waveflow/blob/main/app/local_engine.py"
click node_server "https://github.com/mrabookah/waveflow/blob/main/server/parakeet_server.py"
click node_vocab "https://github.com/mrabookah/waveflow/blob/main/server/vocab.py"
click node_itn "https://github.com/mrabookah/waveflow/blob/main/server/itn.py"
click node_wizard "https://github.com/mrabookah/waveflow/blob/main/app/wizard.py"
click node_wizardui "https://github.com/mrabookah/waveflow/blob/main/app/wizard_ui.py"
click node_setup "https://github.com/mrabookah/waveflow/blob/main/app/setup_logic.py"
click node_remote "https://github.com/mrabookah/waveflow/blob/main/app/remote_install.py"
click node_settings "https://github.com/mrabookah/waveflow/blob/main/app/settings.py"
click node_panels "https://github.com/mrabookah/waveflow/blob/main/app/panels.py"
click node_uninstall "https://github.com/mrabookah/waveflow/blob/main/app/uninstall.py"

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,node_audio,node_overlay,node_typing,node_user toneBlue
class node_osbridge,node_mac,node_windows toneAmber
class node_localengine,node_server,node_vocab,node_itn toneMint
class node_wizard,node_wizardui,node_setup,node_remote toneRose
class node_settings,node_panels,node_uninstall toneIndigo
```

## Components

### Dictation Client

- [Dictation App](https://github.com/mrabookah/waveflow/blob/main/app/waveflow.py): `app/waveflow.py`
- [Microphone Capture](https://github.com/mrabookah/waveflow/blob/main/app/audio.py): `app/audio.py`
- [Live Overlay](https://github.com/mrabookah/waveflow/blob/main/app/waveflow.py): `app/waveflow.py`
- [Text Injection](https://github.com/mrabookah/waveflow/blob/main/app/stt.py): `app/stt.py`

### Desktop Platform

- [OS Bridge](https://github.com/mrabookah/waveflow/blob/main/app/osbridge/__init__.py): `app/osbridge/__init__.py`
- [macOS Backend](https://github.com/mrabookah/waveflow/blob/main/app/osbridge/mac.py): `app/osbridge/mac.py`
- [Windows Backend](https://github.com/mrabookah/waveflow/blob/main/app/osbridge/win.py): `app/osbridge/win.py`

### Speech Engines

- [Local Engine Manager](https://github.com/mrabookah/waveflow/blob/main/app/local_engine.py): `app/local_engine.py`
- [Speech Server](https://github.com/mrabookah/waveflow/blob/main/server/parakeet_server.py): `server/parakeet_server.py`
- [Vocabulary](https://github.com/mrabookah/waveflow/blob/main/server/vocab.py): `server/vocab.py`
- [Text Normalization](https://github.com/mrabookah/waveflow/blob/main/server/itn.py): `server/itn.py`

### Setup & Provisioning

- [Setup Wizard](https://github.com/mrabookah/waveflow/blob/main/app/wizard.py): `app/wizard.py`
- [Wizard Widgets](https://github.com/mrabookah/waveflow/blob/main/app/wizard_ui.py): `app/wizard_ui.py`
- [Setup Logic](https://github.com/mrabookah/waveflow/blob/main/app/setup_logic.py): `app/setup_logic.py`
- [Remote Installer](https://github.com/mrabookah/waveflow/blob/main/app/remote_install.py): `app/remote_install.py`

### App Management

- [Settings Window](https://github.com/mrabookah/waveflow/blob/main/app/settings.py): `app/settings.py`
- [Shared Panels](https://github.com/mrabookah/waveflow/blob/main/app/panels.py): `app/panels.py`
- [Uninstaller](https://github.com/mrabookah/waveflow/blob/main/app/uninstall.py): `app/uninstall.py`

### Other components

- **User**

## Connections

- User → Dictation App: holds hotkey (evidence: `README.md`)
- Dictation App → Microphone Capture: captures speech (evidence: `app/waveflow.py`)
- Dictation App → Live Overlay: shows controls (evidence: `README.md`)
- Dictation App → Text Injection: injects text (evidence: `app/waveflow.py`)
- Microphone Capture → OS Bridge: uses device APIs (evidence: `app/audio.py`)
- Dictation App → OS Bridge: uses platform APIs (evidence: `app/waveflow.py`)
- OS Bridge → macOS Backend: routes on macOS (evidence: `app/osbridge/__init__.py`)
- OS Bridge → Windows Backend: routes on Windows (evidence: `app/osbridge/__init__.py`)
- Dictation App → Local Engine Manager: starts engine (evidence: `app/waveflow.py`)
- Local Engine Manager → Speech Server: launches process (evidence: `README.md`)
- Dictation App → Speech Server: streams audio (evidence: `README.md`)
- Speech Server → Vocabulary: loads vocabulary (evidence: `server/parakeet_server.py`)
- Speech Server → Text Normalization: normalizes text (evidence: `server/parakeet_server.py`)
- Dictation App → Setup Wizard: opens setup (evidence: `app/waveflow.py`)
- Setup Wizard → Setup Logic: builds setup plans (evidence: `app/wizard.py`)
- Setup Wizard → Wizard Widgets: renders widgets (evidence: `app/wizard.py`)
- Setup Wizard → Remote Installer: requests server install (evidence: `app/wizard.py`)
- Remote Installer → Setup Logic: uses setup rules (evidence: `app/remote_install.py`)
- Dictation App → Settings Window: opens settings (evidence: `app/settings.py`)
- Settings Window → Shared Panels: embeds shared panels (evidence: `app/settings.py`)
- Settings Window → Setup Logic: runs connection checks (evidence: `app/settings.py`)
- Shared Panels → Uninstaller: shows uninstall options (evidence: `app/panels.py`)
- Dictation App → Uninstaller: supports cleanup (evidence: `README.md`)
