# homelab-00/transcriptionsuite architecture

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

- Interactive diagram: https://gitdiagram.com/homelab-00/transcriptionsuite
- Repository: https://github.com/homelab-00/transcriptionsuite

## Overview

TranscriptionSuite is a local-first desktop transcription product: users record audio or import files, receive transcripts with speaker labels, and can review or export results. The Electron dashboard manages a Python server, which exposes transcription and related capabilities; model-family and hardware choices are documented in the README. The graph preserves those documented feature branches, while omitting uncertain internal dispatch and persistence links because the sampled excerpts do not show them.

Main entry points: [`dashboard/src/api/client.ts`](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/api/client.ts) (API client), [`server/backend/api/main.py`](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/main.py) (Backend API), [`dashboard/components/views/NotebookView.tsx`](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/components/views/NotebookView.tsx) (Audio notebook), [`server/backend/core/stt/engine.py`](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/stt/engine.py) (Speech-to-text engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop dashboard"]
  node_session["Record and import<br/>[SessionView.tsx]"]
  node_notebook["Audio notebook<br/>[NotebookView.tsx]"]
  node_live["Live mode<br/>[useLiveMode.ts]"]
  node_dashboard["Dashboard shell<br/>[App.tsx]"]
  node_api_client["API client<br/>[client.ts]"]
  node_config["Connection settings<br/>[store.ts]"]
  node_server_manager["Server lifecycle<br/>[dockerManager.ts]"]
  node_native_manager["Apple Silicon server"]
end

subgraph group_server["Server API"]
  node_api["Backend API<br/>[main.py]"]
  node_transcription_routes["Transcription endpoints<br/>[transcription.py]"]
  node_live_routes["Live endpoints<br/>[live.py]"]
  node_notebook_routes["Notebook endpoints<br/>[notebook.py]"]
  node_llm_routes["Assistant endpoints<br/>[llm.py]"]
end

subgraph group_speech["Speech processing"]
  node_stt["Speech-to-text engine<br/>[engine.py]"]
  node_backends["Model backends"]
  node_live_engine["Live transcription engine<br/>[live_engine.py]"]
  node_diarization["Speaker diarization"]
end

subgraph group_features["Transcript features"]
  node_notebook_store[("Recording storage<br/>[database.py]")]
  node_search["Transcript search<br/>[search.py]"]
  node_exports["Transcript exports"]
  node_webhooks["Outgoing webhooks<br/>[webhook_worker.py]"]
end

node_user(("User"))
node_openai_provider["OpenAI-compatible provider"]

node_user -->|"records or imports"| node_session
node_user -->|"dictates live"| node_live
node_dashboard -->|"manages server"| node_server_manager
node_dashboard -->|"uses native server"| node_native_manager
node_session -.->|"requests transcription"| node_api_client
node_live -->|"streams audio"| node_api_client
node_api_client -->|"reads connection settings"| node_config
node_api_client -->|"calls server API"| node_api
node_api -.->|"routes requests"| node_transcription_routes
node_api -.->|"routes live requests"| node_live_routes
node_api -.->|"routes notebook requests"| node_notebook_routes
node_transcription_routes -.->|"transcribes audio"| node_stt
node_live_routes -.->|"transcribes stream"| node_live_engine
node_stt -->|"supports model families"| node_backends
node_stt -.->|"adds speaker labels"| node_diarization
node_notebook -.->|"uses server API"| node_api_client
node_notebook_routes -.->|"stores recordings"| node_notebook_store
node_notebook -->|"searches transcripts"| node_search
node_user -->|"exports transcript"| node_exports
node_notebook -->|"chats about notes"| node_llm_routes
node_llm_routes -.->|"queries provider"| node_openai_provider
node_user -->|"configures notifications"| node_webhooks

click node_session "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/components/views/SessionView.tsx"
click node_notebook "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/components/views/NotebookView.tsx"
click node_live "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/hooks/useLiveMode.ts"
click node_dashboard "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/App.tsx"
click node_api_client "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/api/client.ts"
click node_config "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/config/store.ts"
click node_server_manager "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/electron/dockerManager.ts"
click node_native_manager "https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/electron/mlxServerManager.ts"
click node_api "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/main.py"
click node_transcription_routes "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/transcription.py"
click node_live_routes "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/live.py"
click node_notebook_routes "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/notebook.py"
click node_llm_routes "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/llm.py"
click node_stt "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/stt/engine.py"
click node_backends "https://github.com/homelab-00/transcriptionsuite/tree/main/server/backend/core/stt/backends"
click node_live_engine "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/live_engine.py"
click node_diarization "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/diarization_engine.py"
click node_notebook_store "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/database/database.py"
click node_search "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/search.py"
click node_exports "https://github.com/homelab-00/transcriptionsuite/tree/main/server/backend/core"
click node_webhooks "https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/services/webhook_worker.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_session,node_notebook,node_live,node_dashboard,node_api_client,node_config,node_server_manager,node_native_manager,node_user toneBlue
class node_api,node_transcription_routes,node_live_routes,node_notebook_routes,node_llm_routes toneAmber
class node_stt,node_backends,node_live_engine,node_diarization toneMint
class node_notebook_store,node_search,node_exports,node_webhooks toneRose
class node_openai_provider toneIndigo
```

## Components

### Desktop dashboard

- [Record and import](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/components/views/SessionView.tsx): `dashboard/components/views/SessionView.tsx`
- [Audio notebook](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/components/views/NotebookView.tsx): `dashboard/components/views/NotebookView.tsx`
- [Live mode](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/hooks/useLiveMode.ts): `dashboard/src/hooks/useLiveMode.ts`
- [Dashboard shell](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/App.tsx): `dashboard/App.tsx`
- [API client](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/api/client.ts): `dashboard/src/api/client.ts`
- [Connection settings](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/src/config/store.ts): `dashboard/src/config/store.ts`
- [Server lifecycle](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/electron/dockerManager.ts): `dashboard/electron/dockerManager.ts`
- [Apple Silicon server](https://github.com/homelab-00/transcriptionsuite/blob/main/dashboard/electron/mlxServerManager.ts): `dashboard/electron/mlxServerManager.ts`

### Server API

- [Backend API](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/main.py): `server/backend/api/main.py`
- [Transcription endpoints](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/transcription.py): `server/backend/api/routes/transcription.py`
- [Live endpoints](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/live.py): `server/backend/api/routes/live.py`
- [Notebook endpoints](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/notebook.py): `server/backend/api/routes/notebook.py`
- [Assistant endpoints](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/llm.py): `server/backend/api/routes/llm.py`

### Speech processing

- [Speech-to-text engine](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/stt/engine.py): `server/backend/core/stt/engine.py`
- [Model backends](https://github.com/homelab-00/transcriptionsuite/tree/main/server/backend/core/stt/backends): `server/backend/core/stt/backends`
- [Live transcription engine](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/live_engine.py): `server/backend/core/live_engine.py`
- [Speaker diarization](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/core/diarization_engine.py): `server/backend/core/diarization_engine.py`

### Transcript features

- [Recording storage](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/database/database.py): `server/backend/database/database.py`
- [Transcript search](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/api/routes/search.py): `server/backend/api/routes/search.py`
- [Transcript exports](https://github.com/homelab-00/transcriptionsuite/tree/main/server/backend/core): `server/backend/core`
- [Outgoing webhooks](https://github.com/homelab-00/transcriptionsuite/blob/main/server/backend/services/webhook_worker.py): `server/backend/services/webhook_worker.py`

### Other components

- **User**
- **OpenAI-compatible provider**

## Connections

- User → Record and import: records or imports
- User → Live mode: dictates live
- Dashboard shell → Server lifecycle: manages server
- Dashboard shell → Apple Silicon server: uses native server
- Record and import → API client: requests transcription (evidence: `dashboard/components/views/SessionView.tsx`)
- Live mode → API client: streams audio (evidence: `dashboard/src/hooks/useLiveMode.ts`)
- API client → Connection settings: reads connection settings (evidence: `dashboard/src/api/client.ts`)
- API client → Backend API: calls server API
- Backend API → Transcription endpoints: routes requests
- Backend API → Live endpoints: routes live requests
- Backend API → Notebook endpoints: routes notebook requests
- Transcription endpoints → Speech-to-text engine: transcribes audio
- Live endpoints → Live transcription engine: transcribes stream
- Speech-to-text engine → Model backends: supports model families
- Speech-to-text engine → Speaker diarization: adds speaker labels
- Audio notebook → API client: uses server API
- Notebook endpoints → Recording storage: stores recordings
- Audio notebook → Transcript search: searches transcripts
- User → Transcript exports: exports transcript
- Audio notebook → Assistant endpoints: chats about notes
- Assistant endpoints → OpenAI-compatible provider: queries provider
- User → Outgoing webhooks: configures notifications
