How doziben/showrunner works
Showrunner is a local-first AI UGC production app. A creator configures provider keys, creates a project from a script, receives a director-style avatar/b-roll storyboard, then generates voiceover, consistent avatar imagery, and lipsynced clips per scene; failed scenes can be retried and completed assets exported for an editor. Project, avatar, configuration, and usage data are documented as browser-local. The README documents the broad workflow and capabilities; some UI, export, server-provider, and persistence connections are represented at subsystem level because their implementations were not sampled.
Main entry points: orchestrator.ts Scene orchestrator · +page.svelte Storyboard editor · storyboard.ts Storyboard agent · avatar-image.ts Avatar imagery
Components 27
Creator experience
- Provider setup
src/routes/onboarding/+page.svelte - Project workflow
src/routes/projects/new/+page.svelte - Storyboard editor
src/routes/projects/[id]/storyboard/+page.svelte - Scene retry
src/lib/components/SceneCard.svelte - Usage dashboard
src/routes/usage/+page.svelte
Production pipeline
- Storyboard agent
src/lib/server/storyboard.ts - Scene orchestrator
src/lib/pipeline/orchestrator.ts - Director prompts
src/lib/pipeline/prompts.ts - Voiceover generation
src/lib/pipeline/voiceover.ts - Avatar imagery
src/lib/pipeline/avatar-image.ts - Lipsync dispatcher
src/lib/pipeline/lipsync.ts - Lipsync catalog
src/lib/pipeline/lipsync-models.ts - Bundle export
src/lib/pipeline/export.ts
Provider integrations
- Storyboard endpoint
src/routes/api/storyboard/+server.ts - Avatar endpoints
src/routes/api/avatars/scene-shot/+server.ts - Voice endpoint
src/routes/api/voiceover/+server.ts - Lipsync endpoint
src/routes/api/lipsync/+server.ts
Local state and usage
- IndexedDB
src/lib/db/index.ts - Project state
src/lib/stores/projects.ts - Spend records
src/lib/stores/transactions.ts - Cost estimates
src/lib/helpers/cost.ts - Spend analytics
src/lib/helpers/transactions.ts
Other components
- Creator
- Claude / AI Gateway
- Replicate
- ElevenLabs
- fal.ai
Connections 32
- Creator → Provider setup: configures keys
- Creator → Project workflow: submits script
README.md - Project workflow → Storyboard agent: requests storyboard
- Storyboard agent → Director prompts: uses prompts
- Storyboard agent → Storyboard endpoint: routes request
- Storyboard endpoint → Claude / AI Gateway: generates shots
- Storyboard agent → Storyboard editor: returns scenes
- Storyboard editor → Cost estimates: estimates spend
- Storyboard editor → Scene orchestrator: starts generation
- Scene retry → Scene orchestrator: retries scene
src/lib/pipeline/orchestrator.ts - Scene orchestrator → Voiceover generation: generates speech
src/lib/pipeline/orchestrator.ts - Scene orchestrator → Avatar imagery: generates shot
src/lib/pipeline/orchestrator.ts - Scene orchestrator → Lipsync dispatcher: creates clip
src/lib/pipeline/orchestrator.ts - Scene orchestrator → Project state: patches progress
src/lib/pipeline/orchestrator.ts - Scene orchestrator → IndexedDB: reads project
src/lib/pipeline/orchestrator.ts - Scene orchestrator → Spend records: records costs
src/lib/pipeline/orchestrator.ts - Avatar imagery → Director prompts: builds image prompt
src/lib/pipeline/avatar-image.ts - Avatar imagery → Avatar endpoints: posts scene shot
src/lib/pipeline/avatar-image.ts - Avatar endpoints → Replicate: generates images
- Voiceover generation → Voice endpoint: requests speech
- Voice endpoint → ElevenLabs: synthesizes audio
- Lipsync dispatcher → Lipsync catalog: selects model
- Lipsync dispatcher → Lipsync endpoint: requests lipsync
- Lipsync endpoint → Replicate: runs P-Video
- Lipsync endpoint → fal.ai: runs hosted models
- Project state → IndexedDB: persists projects
- Spend records → IndexedDB: persists spend
- Spend records → Spend analytics: supplies records
- Spend analytics → Cost estimates: uses pricing
src/lib/helpers/transactions.ts - Usage dashboard → Spend analytics: summarizes spend
- Storyboard editor → Bundle export: exports bundle
- Bundle export → Creator: delivers editor assets