# clintwine/yogurt architecture

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

- Interactive diagram: https://gitdiagram.com/clintwine/yogurt
- Repository: https://github.com/clintwine/yogurt

## Overview

Yogurt is a desktop app for private, local AI meeting notes. The main workflow is recording microphone and system audio, transcribing speech live, saving meeting data, generating notes, and letting users search or ask questions across meetings with cited sources. Separate capabilities include speaker naming, call-end detection and reminders, audio-file import, calendar links, and optional read-only MCP access. The graph follows documented behavior and visible source references; several subsystems are represented by their source directories because their implementation was not sampled.

Main entry points: [`app/src/main/store.ts`](https://github.com/clintwine/yogurt/blob/main/app/src/main/store.ts) (Meeting store), [`app/src/main/capture.ts`](https://github.com/clintwine/yogurt/blob/main/app/src/main/capture.ts) (Capture service), [`app/src/main/asr/pipeline.ts`](https://github.com/clintwine/yogurt/blob/main/app/src/main/asr/pipeline.ts) (Live transcription), [`app/src/renderer/src/App.tsx`](https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/App.tsx) (Desktop UI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Desktop experience"]
  node_desktop["Desktop UI<br/>[App.tsx]"]
  node_note_view["Meeting view<br/>[Note.tsx]"]
  node_icons["UI icons<br/>[Icons.tsx]"]
end

subgraph group_capture["Recording and transcription"]
  node_capture_service["Capture service<br/>[capture.ts]"]
  node_native_audio["Native audio<br/>[main.rs]"]
  node_win_audio["Windows audio<br/>[main.rs]"]
  node_mac_audio["Mac audio<br/>[main.swift]"]
  node_asr_pipeline["Live transcription<br/>[pipeline.ts]"]
  node_echo_filter["Echo filtering<br/>[echo.ts]"]
  node_live_words["Live words<br/>[liveWords.ts]"]
  node_audio_upload["Audio import<br/>[audioUpload.ts]"]
end

subgraph group_intelligence["Local AI"]
  node_notes_engine["Notes engine<br/>[engine.ts]"]
  node_engine_worker["Model worker<br/>[worker.ts]"]
  node_engine_runtime["LLM runtime<br/>[llm.ts]"]
  node_protocol["Engine protocol<br/>[engine-protocol.ts]"]
  node_library_ai["Retrieval and notes"]
  node_model_picker["Model selection<br/>[pick.ts]"]
end

subgraph group_library["Meeting library"]
  node_meeting_store[("Meeting store<br/>[store.ts]")]
  node_search_query["Search parsing<br/>[searchQuery.ts]"]
  node_search_people["People search<br/>[searchPeople.ts]"]
end

subgraph group_integrations["Platform and integrations"]
  node_call_detection["Call detection<br/>[main.rs]"]
  node_calendar["Calendar links<br/>[calendar.ts]"]
  node_mcp_server["Local MCP server<br/>[server.ts]"]
end

node_user(("User"))
node_external_models["Model downloads"]

node_user -->|"uses"| node_desktop
node_desktop -->|"opens"| node_note_view
node_note_view -.->|"renders"| node_icons
node_desktop -.->|"starts recording"| node_capture_service
node_capture_service -.->|"records audio"| node_native_audio
node_capture_service -.->|"records audio"| node_win_audio
node_capture_service -.->|"records audio"| node_mac_audio
node_capture_service -->|"supplies tracks"| node_asr_pipeline
node_asr_pipeline -->|"filters echo"| node_echo_filter
node_asr_pipeline -->|"joins words"| node_live_words
node_asr_pipeline -.->|"saves transcript"| node_meeting_store
node_call_detection -.->|"detects calls"| node_capture_service
node_desktop -.->|"reads meetings"| node_meeting_store
node_meeting_store -->|"uses event IDs"| node_calendar
node_meeting_store -->|"matches people"| node_search_people
node_meeting_store -->|"parses queries"| node_search_query
node_notes_engine -->|"exchanges messages"| node_protocol
node_notes_engine -.->|"starts worker"| node_engine_worker
node_engine_worker -.->|"runs inference"| node_engine_runtime
node_library_ai -.->|"retrieves meetings"| node_meeting_store
node_library_ai -.->|"requests generation"| node_notes_engine
node_mcp_server -->|"reads meeting data"| node_meeting_store
node_mcp_server -->|"reads calendar"| node_calendar
node_audio_upload -.->|"transcribes import"| node_asr_pipeline
node_model_picker -.->|"selects models"| node_external_models
node_user -->|"imports recording"| node_audio_upload
node_user -->|"enables access"| node_mcp_server
node_user -->|"sets up models"| node_model_picker

click node_desktop "https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/App.tsx"
click node_note_view "https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/screens/Note.tsx"
click node_icons "https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/components/Icons.tsx"
click node_capture_service "https://github.com/clintwine/yogurt/blob/main/app/src/main/capture.ts"
click node_native_audio "https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio-linux/src/main.rs"
click node_win_audio "https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio-win/src/main.rs"
click node_mac_audio "https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio/main.swift"
click node_asr_pipeline "https://github.com/clintwine/yogurt/blob/main/app/src/main/asr/pipeline.ts"
click node_echo_filter "https://github.com/clintwine/yogurt/blob/main/app/src/main/asr/echo.ts"
click node_call_detection "https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-system/src/main.rs"
click node_notes_engine "https://github.com/clintwine/yogurt/blob/main/app/src/main/engine.ts"
click node_engine_worker "https://github.com/clintwine/yogurt/blob/main/app/src/engine/worker.ts"
click node_engine_runtime "https://github.com/clintwine/yogurt/blob/main/app/src/engine/llm.ts"
click node_meeting_store "https://github.com/clintwine/yogurt/blob/main/app/src/main/store.ts"
click node_calendar "https://github.com/clintwine/yogurt/blob/main/app/src/main/calendar.ts"
click node_search_query "https://github.com/clintwine/yogurt/blob/main/app/src/shared/searchQuery.ts"
click node_search_people "https://github.com/clintwine/yogurt/blob/main/app/src/shared/searchPeople.ts"
click node_live_words "https://github.com/clintwine/yogurt/blob/main/app/src/shared/liveWords.ts"
click node_protocol "https://github.com/clintwine/yogurt/blob/main/app/src/shared/engine-protocol.ts"
click node_library_ai "https://github.com/clintwine/yogurt/tree/main/app/src/main/library"
click node_mcp_server "https://github.com/clintwine/yogurt/blob/main/app/src/main/mcp/server.ts"
click node_audio_upload "https://github.com/clintwine/yogurt/blob/main/app/src/main/audioUpload.ts"
click node_model_picker "https://github.com/clintwine/yogurt/blob/main/packages/picker/src/pick.ts"

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_desktop,node_note_view,node_icons,node_user toneBlue
class node_capture_service,node_native_audio,node_win_audio,node_mac_audio,node_asr_pipeline,node_echo_filter,node_live_words,node_audio_upload toneAmber
class node_notes_engine,node_engine_worker,node_engine_runtime,node_protocol,node_library_ai,node_model_picker toneMint
class node_meeting_store,node_search_query,node_search_people toneRose
class node_call_detection,node_calendar,node_mcp_server,node_external_models toneIndigo
```

## Components

### Desktop experience

- [Desktop UI](https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/App.tsx): `app/src/renderer/src/App.tsx`
- [Meeting view](https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/screens/Note.tsx): `app/src/renderer/src/screens/Note.tsx`
- [UI icons](https://github.com/clintwine/yogurt/blob/main/app/src/renderer/src/components/Icons.tsx): `app/src/renderer/src/components/Icons.tsx`

### Recording and transcription

- [Capture service](https://github.com/clintwine/yogurt/blob/main/app/src/main/capture.ts): `app/src/main/capture.ts`
- [Native audio](https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio-linux/src/main.rs): `app/native/yogurt-audio-linux/src/main.rs`
- [Windows audio](https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio-win/src/main.rs): `app/native/yogurt-audio-win/src/main.rs`
- [Mac audio](https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-audio/main.swift): `app/native/yogurt-audio/main.swift`
- [Live transcription](https://github.com/clintwine/yogurt/blob/main/app/src/main/asr/pipeline.ts): `app/src/main/asr/pipeline.ts`
- [Echo filtering](https://github.com/clintwine/yogurt/blob/main/app/src/main/asr/echo.ts): `app/src/main/asr/echo.ts`
- [Live words](https://github.com/clintwine/yogurt/blob/main/app/src/shared/liveWords.ts): `app/src/shared/liveWords.ts`
- [Audio import](https://github.com/clintwine/yogurt/blob/main/app/src/main/audioUpload.ts): `app/src/main/audioUpload.ts`

### Local AI

- [Notes engine](https://github.com/clintwine/yogurt/blob/main/app/src/main/engine.ts): `app/src/main/engine.ts`
- [Model worker](https://github.com/clintwine/yogurt/blob/main/app/src/engine/worker.ts): `app/src/engine/worker.ts`
- [LLM runtime](https://github.com/clintwine/yogurt/blob/main/app/src/engine/llm.ts): `app/src/engine/llm.ts`
- [Engine protocol](https://github.com/clintwine/yogurt/blob/main/app/src/shared/engine-protocol.ts): `app/src/shared/engine-protocol.ts`
- [Retrieval and notes](https://github.com/clintwine/yogurt/tree/main/app/src/main/library): `app/src/main/library`
- [Model selection](https://github.com/clintwine/yogurt/blob/main/packages/picker/src/pick.ts): `packages/picker/src/pick.ts`

### Meeting library

- [Meeting store](https://github.com/clintwine/yogurt/blob/main/app/src/main/store.ts): `app/src/main/store.ts`
- [Search parsing](https://github.com/clintwine/yogurt/blob/main/app/src/shared/searchQuery.ts): `app/src/shared/searchQuery.ts`
- [People search](https://github.com/clintwine/yogurt/blob/main/app/src/shared/searchPeople.ts): `app/src/shared/searchPeople.ts`

### Platform and integrations

- [Call detection](https://github.com/clintwine/yogurt/blob/main/app/native/yogurt-system/src/main.rs): `app/native/yogurt-system/src/main.rs`
- [Calendar links](https://github.com/clintwine/yogurt/blob/main/app/src/main/calendar.ts): `app/src/main/calendar.ts`
- [Local MCP server](https://github.com/clintwine/yogurt/blob/main/app/src/main/mcp/server.ts): `app/src/main/mcp/server.ts`

### Other components

- **User**
- **Model downloads**

## Connections

- User → Desktop UI: uses (evidence: `README.md`)
- Desktop UI → Meeting view: opens (evidence: `app/src/renderer/src/App.tsx`)
- Meeting view → UI icons: renders
- Desktop UI → Capture service: starts recording
- Capture service → Native audio: records audio
- Capture service → Windows audio: records audio
- Capture service → Mac audio: records audio
- Capture service → Live transcription: supplies tracks (evidence: `app/src/main/asr/pipeline.ts`)
- Live transcription → Echo filtering: filters echo (evidence: `app/src/main/asr/pipeline.ts`)
- Live transcription → Live words: joins words (evidence: `app/src/main/asr/pipeline.ts`)
- Live transcription → Meeting store: saves transcript (evidence: `app/src/main/asr/pipeline.ts`)
- Call detection → Capture service: detects calls
- Desktop UI → Meeting store: reads meetings
- Meeting store → Calendar links: uses event IDs (evidence: `app/src/main/store.ts`)
- Meeting store → People search: matches people (evidence: `app/src/main/store.ts`)
- Meeting store → Search parsing: parses queries (evidence: `app/src/main/store.ts`)
- Notes engine → Engine protocol: exchanges messages (evidence: `app/src/main/engine.ts`)
- Notes engine → Model worker: starts worker
- Model worker → LLM runtime: runs inference
- Retrieval and notes → Meeting store: retrieves meetings (evidence: `app/src/main/store.ts`)
- Retrieval and notes → Notes engine: requests generation
- Local MCP server → Meeting store: reads meeting data (evidence: `app/src/main/mcp/server.ts`)
- Local MCP server → Calendar links: reads calendar (evidence: `app/src/main/mcp/server.ts`)
- Audio import → Live transcription: transcribes import
- Model selection → Model downloads: selects models
- User → Audio import: imports recording (evidence: `README.md`)
- User → Local MCP server: enables access (evidence: `README.md`)
- User → Model selection: sets up models (evidence: `README.md`)
