How vincentsch/explainroo works
explainroo turns an agent-authored narration script and JavaScript scenes into locally rendered explainer videos. The main workflow validates a project, synthesizes narration, aligns word timing, prepares a browser session, renders scenes and sound, then emits video and companion files; checks and product-demo capture are distinct capabilities. The graph follows documented behavior and SOURCE INDEX references; unsampled subsystems are represented only where the README or index supports them.
Main entry points: cli.js CLI commands · pipeline.js Render preparation · runtime.js Browser engine · voice.js Voice synthesis
Components 23
Project authoring
- CLI commands
src/cli.js - Project loader
src/project.js - Narration script
src/script.js
Voice and timing
- Voice synthesis
src/voice.js - Local speech models
src/models.js - Word alignment
src/align.js - ElevenLabs voice
src/elevenlabs.js
Scene and audio engine
- Scene API
engine/stage.js - Browser engine
engine/runtime.js - Visual themes
engine/themes.js - Camera direction
engine/director.js - Music and effects
engine/audio/soundtrack.js - Audio synthesis core
engine/audio/synth.js
Rendering and delivery
- Render preparation
src/pipeline.js - Headless browser
src/browser.js - Project HTTP server
src/server.js - Video rendering
src/render.js - Media outputs
src/ffmpeg.js - Subtitles and chapters
src/subtitles.js
Checks and capture
- Video checks
src/qa.js - Product capture
src/capture.js
Other components
- Coding agent
- OpenRouter images
Connections 24
- Coding agent → CLI commands: runs commands
README.md - CLI commands → Project loader: loads project
src/cli.js - Project loader → Narration script: parses narration
src/project.js - CLI commands → Render preparation: prepares render
src/cli.js - Render preparation → Voice synthesis: synthesizes speech
src/pipeline.js - Voice synthesis → Local speech models: uses local models
src/voice.js - Voice synthesis → Word alignment: aligns words
src/voice.js - Render preparation → Project HTTP server: starts server
src/pipeline.js - Render preparation → Headless browser: opens engine
src/pipeline.js - CLI commands → Video rendering: renders video
src/cli.js - Video rendering → Render preparation: prepares project
- Video rendering → Media outputs: encodes output
README.md - Video rendering → Subtitles and chapters: writes subtitles
README.md - Headless browser → Browser engine: loads engine
README.md - Browser engine → Scene API: runs scene functions
engine/runtime.js - Browser engine → Visual themes: loads theme
engine/runtime.js - Browser engine → Camera direction: directs camera
engine/runtime.js - Browser engine → Music and effects: builds soundtrack
engine/runtime.js - Music and effects → Audio synthesis core: synthesizes audio
engine/audio/soundtrack.js - CLI commands → Video checks: checks video
src/cli.js - Video checks → Render preparation: reuses preparation
src/qa.js - CLI commands → Product capture: captures product
src/cli.js - Voice synthesis → ElevenLabs voice: supports alternate voice
README.md - Coding agent → OpenRouter images: may request images
README.md