# easydong19/meeting-recorder architecture

> Architecture diagram of the GitHub repository easydong19/meeting-recorder, 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/easydong19/meeting-recorder
- Repository: https://github.com/easydong19/meeting-recorder

## Overview

Meeting Recorder is a desktop app that captures microphone audio locally, transcribes it with Whisper when the user saves, and stores timestamped Markdown meeting notes. The main flow runs from the React recording controls through Tauri commands, audio capture, transcription, Markdown generation, and file storage; settings also support choosing a save folder and downloading models. The README documents these capabilities, but unsampled command details and some UI-to-command wiring are not expanded beyond relationships visible in excerpts or explicitly documented.

Main entry points: [`src-tauri/src/commands.rs`](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/commands.rs) (Tauri commands), [`src/App.tsx`](https://github.com/easydong19/meeting-recorder/blob/main/src/App.tsx) (App flow), [`src/api.ts`](https://github.com/easydong19/meeting-recorder/blob/main/src/api.ts) (Tauri API), [`src-tauri/src/transcribe.rs`](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/transcribe.rs) (Whisper transcription)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_frontend["Desktop interface"]
  node_app["App flow<br/>[App.tsx]"]
  node_recording_view["Recording controls<br/>[RecordingView.tsx]"]
  node_recording_state["Recording state"]
  node_settings_view["Settings<br/>[SettingsModal.tsx]"]
  node_sidebar["Meeting list<br/>[Sidebar.tsx]"]
  node_viewer["Note viewer<br/>[Viewer.tsx]"]
  node_api["Tauri API<br/>[api.ts]"]
end

subgraph group_backend["Native services"]
  node_commands["Tauri commands<br/>[commands.rs]"]
  node_audio["Audio capture<br/>[audio.rs]"]
  node_transcribe["Whisper transcription<br/>[transcribe.rs]"]
end

subgraph group_content["Meeting records"]
  node_settings_storage["Settings and notes<br/>[storage.rs]"]
  node_markdown["Markdown formatter<br/>[markdown.rs]"]
  node_note_files[("Markdown files")]
end

subgraph group_models["Whisper models"]
  node_model_manager["Model manager<br/>[model.rs]"]
  node_model_files[("Local model files")]
end

node_user(("Meeting user"))
node_model_host(("Model download host"))
node_microphone(("Microphone"))

node_user -->|"uses"| node_app
node_app -->|"renders"| node_recording_view
node_app -->|"renders"| node_settings_view
node_app -->|"renders"| node_sidebar
node_app -->|"renders"| node_viewer
node_app -->|"reduces events"| node_recording_state
node_recording_view -->|"uses state"| node_recording_state
node_app -->|"invokes and listens"| node_api
node_settings_view -->|"invokes and listens"| node_api
node_sidebar -->|"reads meetings"| node_api
node_viewer -->|"reads note"| node_api
node_api -->|"invokes commands"| node_commands
node_microphone -->|"provides audio"| node_audio
node_commands -->|"starts capture"| node_audio
node_commands -->|"transcribes WAV"| node_transcribe
node_transcribe -->|"resamples audio"| node_audio
node_commands -->|"downloads model"| node_model_manager
node_commands -->|"loads and saves settings"| node_settings_storage
node_commands -->|"reads notes"| node_settings_storage
node_commands -->|"formats transcript"| node_markdown
node_commands -->|"writes note"| node_note_files
node_settings_storage -->|"lists and reads"| node_note_files
node_markdown -->|"produces Markdown"| node_note_files
node_model_manager -->|"downloads and checks"| node_model_files
node_model_manager -->|"downloads over HTTP"| node_model_host
node_transcribe -->|"loads model"| node_model_files

click node_app "https://github.com/easydong19/meeting-recorder/blob/main/src/App.tsx"
click node_recording_view "https://github.com/easydong19/meeting-recorder/blob/main/src/components/RecordingView.tsx"
click node_recording_state "https://github.com/easydong19/meeting-recorder/blob/main/src/state/recordingMachine.ts"
click node_settings_view "https://github.com/easydong19/meeting-recorder/blob/main/src/components/SettingsModal.tsx"
click node_sidebar "https://github.com/easydong19/meeting-recorder/blob/main/src/components/Sidebar.tsx"
click node_viewer "https://github.com/easydong19/meeting-recorder/blob/main/src/components/Viewer.tsx"
click node_api "https://github.com/easydong19/meeting-recorder/blob/main/src/api.ts"
click node_commands "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/commands.rs"
click node_audio "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/audio.rs"
click node_transcribe "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/transcribe.rs"
click node_settings_storage "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/storage.rs"
click node_markdown "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/markdown.rs"
click node_model_manager "https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/model.rs"

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_recording_view,node_recording_state,node_settings_view,node_sidebar,node_viewer,node_api,node_user toneBlue
class node_commands,node_audio,node_transcribe toneAmber
class node_settings_storage,node_markdown,node_note_files toneMint
class node_model_manager,node_model_files toneRose
class node_model_host,node_microphone toneIndigo
```

## Components

### Desktop interface

- [App flow](https://github.com/easydong19/meeting-recorder/blob/main/src/App.tsx): `src/App.tsx`
- [Recording controls](https://github.com/easydong19/meeting-recorder/blob/main/src/components/RecordingView.tsx): `src/components/RecordingView.tsx`
- [Recording state](https://github.com/easydong19/meeting-recorder/blob/main/src/state/recordingMachine.ts): `src/state/recordingMachine.ts`
- [Settings](https://github.com/easydong19/meeting-recorder/blob/main/src/components/SettingsModal.tsx): `src/components/SettingsModal.tsx`
- [Meeting list](https://github.com/easydong19/meeting-recorder/blob/main/src/components/Sidebar.tsx): `src/components/Sidebar.tsx`
- [Note viewer](https://github.com/easydong19/meeting-recorder/blob/main/src/components/Viewer.tsx): `src/components/Viewer.tsx`
- [Tauri API](https://github.com/easydong19/meeting-recorder/blob/main/src/api.ts): `src/api.ts`

### Native services

- [Tauri commands](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/commands.rs): `src-tauri/src/commands.rs`
- [Audio capture](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/audio.rs): `src-tauri/src/audio.rs`
- [Whisper transcription](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/transcribe.rs): `src-tauri/src/transcribe.rs`

### Meeting records

- [Settings and notes](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/storage.rs): `src-tauri/src/storage.rs`
- [Markdown formatter](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/markdown.rs): `src-tauri/src/markdown.rs`
- **Markdown files**

### Whisper models

- [Model manager](https://github.com/easydong19/meeting-recorder/blob/main/src-tauri/src/model.rs): `src-tauri/src/model.rs`
- **Local model files**

### Other components

- **Meeting user**
- **Model download host**
- **Microphone**

## Connections

- Meeting user → App flow: uses (evidence: `README.md`)
- App flow → Recording controls: renders (evidence: `src/App.tsx`)
- App flow → Settings: renders (evidence: `src/App.tsx`)
- App flow → Meeting list: renders (evidence: `src/App.tsx`)
- App flow → Note viewer: renders (evidence: `src/App.tsx`)
- App flow → Recording state: reduces events (evidence: `src/App.tsx`)
- Recording controls → Recording state: uses state (evidence: `src/components/RecordingView.tsx`)
- App flow → Tauri API: invokes and listens (evidence: `src/App.tsx`)
- Settings → Tauri API: invokes and listens (evidence: `src/components/SettingsModal.tsx`)
- Meeting list → Tauri API: reads meetings (evidence: `src/components/Sidebar.tsx`)
- Note viewer → Tauri API: reads note (evidence: `src/components/Viewer.tsx`)
- Tauri API → Tauri commands: invokes commands (evidence: `src/api.ts`)
- Microphone → Audio capture: provides audio (evidence: `README.md`)
- Tauri commands → Audio capture: starts capture (evidence: `src-tauri/src/commands.rs`)
- Tauri commands → Whisper transcription: transcribes WAV (evidence: `src-tauri/src/commands.rs`)
- Whisper transcription → Audio capture: resamples audio (evidence: `src-tauri/src/transcribe.rs`)
- Tauri commands → Model manager: downloads model (evidence: `src-tauri/src/commands.rs`)
- Tauri commands → Settings and notes: loads and saves settings (evidence: `src-tauri/src/commands.rs`)
- Tauri commands → Settings and notes: reads notes (evidence: `src-tauri/src/commands.rs`)
- Tauri commands → Markdown formatter: formats transcript (evidence: `src-tauri/src/commands.rs`)
- Tauri commands → Markdown files: writes note (evidence: `src-tauri/src/commands.rs`)
- Settings and notes → Markdown files: lists and reads (evidence: `src-tauri/src/storage.rs`)
- Markdown formatter → Markdown files: produces Markdown
- Model manager → Local model files: downloads and checks (evidence: `src-tauri/src/model.rs`)
- Model manager → Model download host: downloads over HTTP (evidence: `src-tauri/src/model.rs`)
- Whisper transcription → Local model files: loads model (evidence: `src-tauri/src/transcribe.rs`)
