# ryoaonetsuki/yogurt architecture

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

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

## Overview

Yogurt is a private, local-first meeting recorder and AI notes app. A user records microphone and call audio; the desktop app transcribes it, saves meeting data, and uses a local model to summarize or answer questions with sources. The README documents these product stages and capabilities; sampled source confirms key orchestration and helper boundaries. The graph also includes documented search, exports, MCP access, and the phone companion. Some subsystem links are documented at product level because their implementation files were not sampled.

Main entry points: [`app/src/main/store.ts`](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/store.ts) (Meeting store), [`app/src/main/capture.ts`](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/capture.ts) (Audio capture), [`app/src/main/asr/pipeline.ts`](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/asr/pipeline.ts) (Transcription pipeline), [`app/src/main/mcp/server.ts`](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/mcp/server.ts) (Local MCP server)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop meeting workflow"]
  node_recording["Audio capture<br/>[capture.ts]"]
  node_transcription["Transcription pipeline<br/>[pipeline.ts]"]
  node_transcribe["Speech recognition<br/>[transcribe.ts]"]
  node_meeting_store[("Meeting store<br/>[store.ts]")]
  node_desktop_ui["Desktop interface<br/>[App.tsx]"]
end

subgraph group_intelligence["Local AI and retrieval"]
  node_notes["Notes and summaries<br/>[index.ts]"]
  node_local_engine["Local model engine<br/>[engine.ts]"]
  node_engine_worker["Model worker protocol<br/>[engine-protocol.ts]"]
  node_ask_agent["Meeting Q&amp;A<br/>[agent.ts]"]
  node_retrieval["Search and retrieval<br/>[retrieve.ts]"]
end

subgraph group_access["Meeting access"]
  node_mcp["Local MCP server<br/>[server.ts]"]
  node_export["Copy and export<br/>[exportNotes.ts]"]
  node_calendar["Calendar details<br/>[calendar.ts]"]
end

subgraph group_companion["Phone companion"]
  node_companion_server["Desktop companion<br/>[server.ts]"]
  node_phone_recorder["Phone recording<br/>[Recorder.swift]"]
  node_phone_sync["Phone sync<br/>[SyncEngine.swift]"]
  node_phone_store[("Phone meeting store<br/>[Store.swift]")]
  node_phone_ask["Phone local Q&amp;A<br/>[LocalAsk.swift]"]
end

subgraph group_native["Native platform services"]
  node_mac_audio["macOS recorder<br/>[main.swift]"]
  node_linux_audio["Linux recorder<br/>[main.rs]"]
  node_linux_join["Linux audio join<br/>[join.rs]"]
  node_windows_audio["Windows recorder<br/>[main.rs]"]
  node_windows_join["Windows audio join<br/>[join.rs]"]
  node_call_detection["Call detection<br/>[main.rs]"]
end

node_user(("Meeting user"))

node_user -->|"starts recording"| node_recording
node_recording -->|"provides audio"| node_transcription
node_transcription -->|"transcribes speech"| node_transcribe
node_transcription -->|"saves transcript"| node_meeting_store
node_recording -->|"saves audio"| node_meeting_store
node_meeting_store -.->|"supplies meetings"| node_notes
node_notes -.->|"requests generation"| node_local_engine
node_local_engine -->|"uses protocol"| node_engine_worker
node_meeting_store -.->|"searches meetings"| node_retrieval
node_retrieval -.->|"provides sources"| node_ask_agent
node_ask_agent -->|"requests answers"| node_local_engine
node_user -->|"views meetings"| node_desktop_ui
node_desktop_ui -.->|"browses meetings"| node_meeting_store
node_user -->|"enables access"| node_mcp
node_mcp -->|"reads meetings"| node_meeting_store
node_mcp -->|"reads calendar details"| node_calendar
node_meeting_store -.->|"exports notes"| node_export
node_call_detection -.->|"offers recording"| node_recording
node_recording -.->|"captures on macOS"| node_mac_audio
node_recording -.->|"captures on Linux"| node_linux_audio
node_recording -.->|"captures on Windows"| node_windows_audio
node_linux_audio -->|"stitches parts"| node_linux_join
node_windows_audio -->|"stitches parts"| node_windows_join
node_user -.->|"records on phone"| node_phone_recorder
node_phone_recorder -.->|"stores recordings"| node_phone_store
node_phone_store -->|"supplies passages"| node_phone_ask
node_phone_sync -->|"syncs records"| node_phone_store
node_companion_server -.->|"pairs phone"| node_phone_sync
node_phone_sync -.->|"syncs with desktop"| node_meeting_store

click node_recording "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/capture.ts"
click node_mac_audio "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio/main.swift"
click node_linux_audio "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-linux/src/main.rs"
click node_linux_join "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-linux/src/join.rs"
click node_windows_audio "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-win/src/main.rs"
click node_windows_join "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-win/src/join.rs"
click node_call_detection "https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-system/src/main.rs"
click node_transcription "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/asr/pipeline.ts"
click node_transcribe "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/asr/transcribe.ts"
click node_meeting_store "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/store.ts"
click node_desktop_ui "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/renderer/src/App.tsx"
click node_notes "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/notes/index.ts"
click node_local_engine "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/engine.ts"
click node_engine_worker "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/shared/engine-protocol.ts"
click node_ask_agent "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/library/agent.ts"
click node_retrieval "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/library/retrieve.ts"
click node_mcp "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/mcp/server.ts"
click node_export "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/shared/exportNotes.ts"
click node_calendar "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/calendar.ts"
click node_companion_server "https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/companion/server.ts"
click node_phone_recorder "https://github.com/ryoaonetsuki/yogurt/blob/main/ios/Yogurt/Recording/Recorder.swift"
click node_phone_sync "https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Sync/SyncEngine.swift"
click node_phone_store "https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Store/Store.swift"
click node_phone_ask "https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Ask/LocalAsk.swift"

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_recording,node_transcription,node_transcribe,node_meeting_store,node_desktop_ui,node_user toneBlue
class node_notes,node_local_engine,node_engine_worker,node_ask_agent,node_retrieval toneAmber
class node_mcp,node_export,node_calendar toneMint
class node_companion_server,node_phone_recorder,node_phone_sync,node_phone_store,node_phone_ask toneRose
class node_mac_audio,node_linux_audio,node_linux_join,node_windows_audio,node_windows_join,node_call_detection toneIndigo
```

## Components

### Desktop meeting workflow

- [Audio capture](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/capture.ts): `app/src/main/capture.ts`
- [Transcription pipeline](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/asr/pipeline.ts): `app/src/main/asr/pipeline.ts`
- [Speech recognition](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/asr/transcribe.ts): `app/src/main/asr/transcribe.ts`
- [Meeting store](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/store.ts): `app/src/main/store.ts`
- [Desktop interface](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/renderer/src/App.tsx): `app/src/renderer/src/App.tsx`

### Local AI and retrieval

- [Notes and summaries](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/notes/index.ts): `app/src/main/notes/index.ts`
- [Local model engine](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/engine.ts): `app/src/main/engine.ts`
- [Model worker protocol](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/shared/engine-protocol.ts): `app/src/shared/engine-protocol.ts`
- [Meeting Q&A](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/library/agent.ts): `app/src/main/library/agent.ts`
- [Search and retrieval](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/library/retrieve.ts): `app/src/main/library/retrieve.ts`

### Meeting access

- [Local MCP server](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/mcp/server.ts): `app/src/main/mcp/server.ts`
- [Copy and export](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/shared/exportNotes.ts): `app/src/shared/exportNotes.ts`
- [Calendar details](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/calendar.ts): `app/src/main/calendar.ts`

### Phone companion

- [Desktop companion](https://github.com/ryoaonetsuki/yogurt/blob/main/app/src/main/companion/server.ts): `app/src/main/companion/server.ts`
- [Phone recording](https://github.com/ryoaonetsuki/yogurt/blob/main/ios/Yogurt/Recording/Recorder.swift): `ios/Yogurt/Recording/Recorder.swift`
- [Phone sync](https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Sync/SyncEngine.swift): `ios/YogurtKit/Sources/YogurtKit/Sync/SyncEngine.swift`
- [Phone meeting store](https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Store/Store.swift): `ios/YogurtKit/Sources/YogurtKit/Store/Store.swift`
- [Phone local Q&A](https://github.com/ryoaonetsuki/yogurt/blob/main/ios/YogurtKit/Sources/YogurtKit/Ask/LocalAsk.swift): `ios/YogurtKit/Sources/YogurtKit/Ask/LocalAsk.swift`

### Native platform services

- [macOS recorder](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio/main.swift): `app/native/yogurt-audio/main.swift`
- [Linux recorder](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-linux/src/main.rs): `app/native/yogurt-audio-linux/src/main.rs`
- [Linux audio join](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-linux/src/join.rs): `app/native/yogurt-audio-linux/src/join.rs`
- [Windows recorder](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-win/src/main.rs): `app/native/yogurt-audio-win/src/main.rs`
- [Windows audio join](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-audio-win/src/join.rs): `app/native/yogurt-audio-win/src/join.rs`
- [Call detection](https://github.com/ryoaonetsuki/yogurt/blob/main/app/native/yogurt-system/src/main.rs): `app/native/yogurt-system/src/main.rs`

### Other components

- **Meeting user**

## Connections

- Meeting user → Audio capture: starts recording (evidence: `README.md`)
- Audio capture → Transcription pipeline: provides audio (evidence: `app/src/main/asr/pipeline.ts`)
- Transcription pipeline → Speech recognition: transcribes speech (evidence: `app/src/main/asr/pipeline.ts`)
- Transcription pipeline → Meeting store: saves transcript (evidence: `app/src/main/asr/pipeline.ts`)
- Audio capture → Meeting store: saves audio (evidence: `README.md`)
- Meeting store → Notes and summaries: supplies meetings
- Notes and summaries → Local model engine: requests generation
- Local model engine → Model worker protocol: uses protocol (evidence: `app/src/shared/engine-protocol.ts`)
- Meeting store → Search and retrieval: searches meetings
- Search and retrieval → Meeting Q&A: provides sources
- Meeting Q&A → Local model engine: requests answers (evidence: `app/src/main/engine.ts`)
- Meeting user → Desktop interface: views meetings (evidence: `README.md`)
- Desktop interface → Meeting store: browses meetings
- Meeting user → Local MCP server: enables access (evidence: `README.md`)
- Local MCP server → Meeting store: reads meetings (evidence: `app/src/main/mcp/server.ts`)
- Local MCP server → Calendar details: reads calendar details (evidence: `app/src/main/mcp/server.ts`)
- Meeting store → Copy and export: exports notes
- Call detection → Audio capture: offers recording
- Audio capture → macOS recorder: captures on macOS
- Audio capture → Linux recorder: captures on Linux
- Audio capture → Windows recorder: captures on Windows
- Linux recorder → Linux audio join: stitches parts (evidence: `app/native/yogurt-audio-linux/src/main.rs`)
- Windows recorder → Windows audio join: stitches parts (evidence: `app/native/yogurt-audio-win/src/main.rs`)
- Meeting user → Phone recording: records on phone
- Phone recording → Phone meeting store: stores recordings
- Phone meeting store → Phone local Q&A: supplies passages (evidence: `ios/Yogurt/PreviewSyncEngine.swift`)
- Phone sync → Phone meeting store: syncs records (evidence: `ios/YogurtKit/Sources/YogurtKit/Sync/SyncEngine.swift`)
- Desktop companion → Phone sync: pairs phone
- Phone sync → Meeting store: syncs with desktop
