How khanh02-vin/alts works
Local-first AI Video Studio turns imported media into an edited vertical MP4, with the desktop app as its primary workflow: manage a project, analyze/transcribe locally, review highlights, edit a render plan, and render. The README also documents link-based imports, speaker/diarization and face-aware reframing, provider settings, and a RAG sidecar. The graph preserves those product branches; edges are limited to README statements and source-index references or shown calls, so some unsampled command wiring is omitted.
Main entry points: index.ts Analysis orchestration · Studio.svelte Studio UI · main.rs Tauri commands · engine.rs FFmpeg renderer
Components 24
Desktop workflow
- Studio UI
apps/web/src/lib/pages/Studio.svelte - Tauri commands
apps/desktop/src-tauri/src/main.rs - Project storage
apps/desktop/src-tauri/src/project_store.rs - Runtime services
apps/desktop/src-tauri/src/runtime.rs - Media import and probe
apps/desktop/src-tauri/src/youtube.rs
Analysis and AI
- Analysis orchestration
services/ai-pipeline/index.ts - Whisper transcription
adapters/local/chunked-whisper.ts - Transcript contracts
packages/contracts/transcript.ts - Highlight selection
services/ai-pipeline/highlight-scoring.ts - Speaker diarization
apps/desktop/src-tauri/src/diarization.rs - AI providers
apps/desktop/src-tauri/src/providers.rs - Highlight contracts
packages/contracts/highlight.ts
Editing and rendering
- Render-plan editing
packages/editor-core/index.ts - Render-plan contract
packages/contracts/render-plan.ts - Render commands
apps/desktop/src-tauri/src/render.rs - FFmpeg renderer
apps/desktop/src-tauri/crates/render-engine/src/engine.rs - Probe and reframe
packages/media-engine/reframe/index.ts
Web and discovery
- RAG sidecar
apps/web/src/routes/api/rag/+server.ts - Related video search
packages/media-engine/related-videos/index.ts - RAG document store
apps/web/src/routes/api/rag/+server.ts
Other components
- Creator
- FFmpeg
- Video platforms
- Local filesystem and SQLite
Connections 25
- Creator → Studio UI: imports and edits
README.md - Studio UI → Tauri commands: invokes
README.md - Tauri commands → Project storage: manages projects
apps/desktop/src-tauri/src/main.rs - Project storage → Local filesystem and SQLite: reads and writes
- Tauri commands → Runtime services: dispatches analysis
apps/desktop/src-tauri/src/main.rs - Tauri commands → Media import and probe: dispatches import
apps/desktop/src-tauri/src/main.rs - Media import and probe → Video platforms: fetches link media
README.md - Runtime services → Analysis orchestration: runs analysis
- Analysis orchestration → Whisper transcription: transcribes audio
services/ai-pipeline/index.ts - Whisper transcription → Transcript contracts: produces transcript
adapters/local/chunked-whisper.ts - Analysis orchestration → Highlight selection: selects highlights
services/ai-pipeline/index.ts - Analysis orchestration → Highlight contracts: validates highlights
services/ai-pipeline/index.ts - Analysis orchestration → Speaker diarization: adds speakers
- Analysis orchestration → AI providers: uses configured models
- Studio UI → Render-plan editing: edits selected cuts
apps/web/src/lib/pages/Studio.svelte - Render-plan editing → Render-plan contract: validates plan
packages/editor-core/index.ts - Tauri commands → Render commands: dispatches render
apps/desktop/src-tauri/src/main.rs - Render commands → FFmpeg renderer: renders plan
README.md - FFmpeg renderer → FFmpeg: encodes video
README.md - FFmpeg renderer → Local filesystem and SQLite: writes MP4
README.md - Studio UI → Probe and reframe: uses media tools
- Studio UI → Related video search: searches related videos
apps/web/src/lib/pages/Studio.svelte - Related video search → Video platforms: queries videos
- RAG sidecar → RAG document store: reads and writes
apps/web/src/routes/api/rag/+server.ts - RAG sidecar → Related video search: supports discovery
apps/web/src/routes/api/rag/+server.ts