docs
Docs/System Architecture

UNDER THE HOOD

System Architecture

Under the hood: local Electron runtime, hardware media pipelines, and on-device AI.

01

Klamra’s four layers

LayerTech StackResponsibility
UI LayerReact + TypeScriptTimeline, transcript view, editor controls
Local APIExpress (127.0.0.1)Project state, workload queue, settings
Media PipelineFFmpeg + VideoToolbox / Media FoundationHardware decoding, proxies, export rendering
AI EnginesWhisper + MossFormer2 MLX / DPDFNet2On-device transcription and Pure Voice processing on Apple Silicon and Windows x64
02

Resource queue & throttling

All heavy workloads (transcription, proxy generation, voice enhancement, and export) pass through a single prioritized queue, ensuring the timeline remains fluid and responsive.

011 · Interactive editing
022 · Final export
033 · A/B audition
044 · Background Pure Voice processing
03

Project state & non-destructive cuts

Your edits are stored as non-destructive JSON state deltas. The source media remains untouched, allowing instant reversion of cuts or changes at any time.

04

Security boundaries

  • Local server listens exclusively on loopback 127.0.0.1.
  • Ephemeral random token generated on each app launch.
  • Signed and notarized with Apple Developer ID, alongside verified Windows packages.