How samyak17jain/donnafinal works
Donna is an Electron desktop copilot that captures microphone and system audio, transcribes conversation, combines the rolling transcript with screen and personal context, and streams tailored assistance into a discreet overlay. The graph preserves both cloud and local transcription, profile/interview preparation, meeting notes, and the overlay’s privacy features. README architecture and feature descriptions support the main product flows; source excerpts confirm selected module responsibilities, but several renderer-to-main and storage interactions were not shown, so those links are omitted or marked unverified.
Main entry points: main.js Electron coordinator · llm.js Streaming LLM · vad.js Adaptive VAD · renderer.js Copilot interface
Components 28
Audio and transcription
- Microphone audio
- System audio
- Adaptive VAD
src/vad.js - Utterance segmenter
src/utterance-segmenter.js - Streaming STT
src/stt-streaming.js - Cloud STT
src/stt.js - PCM and WAV
src/wav.js - Local transcriber
src/local-whisper-transcriber.js - Whisper model catalog
src/whisper-model-catalog.js - Whisper model manager
src/whisper-model-manager.js - Whisper runtime
src/whisper-runtime.js - Whisper server session
src/whisper-server-session.js - Live transcript
main.js
Context and preparation
- Screen capture
src/screen.js - Interview context
src/interview-context.js - Profile context
src/profile-context.js - Resume parsing
src/resume.js
Assistance and providers
- Mode prompts
src/prompts.js - Streaming LLM
src/llm.js - Compatible endpoints
src/openai-compatible.js - LLM providers
Desktop experience and records
- Copilot interface
renderer/renderer.js - Electron coordinator
main.js - Meeting history
src/meetings.js - Meeting notes
src/notes.js - Local settings store
src/store.js - OS content protection
Other components
- User
Connections 34
- User → Copilot interface: uses
README.md - Microphone audio → Adaptive VAD: captures speech
README.md - System audio → Adaptive VAD: captures speech
README.md - Adaptive VAD → Streaming STT: segments audio
README.md - Adaptive VAD → Local transcriber: segments audio
- Streaming STT → Live transcript: produces transcript
README.md - Cloud STT → Live transcript: produces transcript
README.md - Local transcriber → Live transcript: produces transcript
README.md - Utterance segmenter → Adaptive VAD: uses detection
src/utterance-segmenter.js - Streaming STT → PCM and WAV: uses audio format
src/stt-streaming.js - Cloud STT → PCM and WAV: encodes audio
src/stt.js - Local transcriber → Whisper server session: uses session
src/local-whisper-transcriber.js - Whisper server session → PCM and WAV: encodes audio
src/whisper-server-session.js - Whisper model manager → Whisper model catalog: loads catalog
src/whisper-model-manager.js - Electron coordinator → Whisper model manager: manages models
main.js - Electron coordinator → Whisper runtime: starts local runtime
main.js - Whisper runtime → Whisper server session: starts server
- Copilot interface → Electron coordinator: requests assistance
- Electron coordinator → Screen capture: captures screen
README.md - Live transcript → Interview context: classifies questions
README.md - Profile context → Interview context: grounds answers
README.md - Resume parsing → Profile context: supplies background
- Interview context → Mode prompts: provides context
README.md - Mode prompts → Streaming LLM: builds request
README.md - Screen capture → Streaming LLM: provides image
README.md - Streaming LLM → LLM providers: streams to
README.md - Streaming LLM → Compatible endpoints: uses adapter
src/llm.js - Streaming LLM → Copilot interface: streams response
README.md - Electron coordinator → Mode prompts: selects mode
main.js - Electron coordinator → Streaming LLM: creates client
main.js - Copilot interface → Meeting history: views history
- Meeting history → Meeting notes: summarizes meetings
- Electron coordinator → Local settings store: uses settings
main.js - Electron coordinator → OS content protection: protects overlay
README.md