Local web app and Python API
FrameFusion: an AI video studio that runs on your own computer
A local app where one AI orchestrator plans a short vertical video with you, hands each stage to a specialist, checks every result and renders a 9:16 MP4.
- Role
- Sole developer
- Status
- Open source on GitHub. Runs locally; there is no hosted version.
- Built with
- Python, Django REST Framework, TypeScript, SQLite
Specialists
- Research
- Script
- Visuals
- Ideas, music on request
Services, no model
- Narration
- Music bed
- Timeline render
- Quality check
- Brief
- Research
- Script
- Visuals + narration
- Music
- Render
- Quality check
Each stage hashes its inputs. Verified stages are reused; a changed stage invalidates everything after it.
What it is
A short video needs research, a script, images, narration and a render. Those usually live in separate tools, each with its own account and API key.
FrameFusion puts that pipeline in one app on your own machine. You talk an idea through with a single orchestrator, and it delivers a finished 1080×1920 MP4 with an honest list of what it could not do.
What I built
- An orchestrator with two personalities, Director and Creative Partner, that change only its voice. Tests check that both get the same tools and the same system prompt prefix.
- Specialists for research, script and visuals that report only to the orchestrator; they cannot call each other.
- A scene-image pipeline that writes a visual brief per scene, searches licensed sources (Pexels, Pixabay, Wikimedia Commons, Openverse), inspects candidates with a vision model, and records a gap rather than using an image that doesn’t fit.
- Narration through Edge TTS or ElevenLabs, a timeline renderer, and a quality check that reopens the finished video to verify resolution, duration, audio and scene images.
- A Django REST API on SQLite and a vanilla TypeScript and Vite web app with a step-by-step setup guide. Provider keys are encrypted at rest and never sent back to the browser.
The decision: make every production stage resumable
A production runs as stored stages: brief, research, script, visuals, narration, music, render and quality check. Each stage hashes its inputs. A verified stage with the same hash is reused instead of run again, and when a stage produces something different, everything downstream is invalidated.
Retrying a failed or cancelled production therefore picks up where it stopped. A failed quality check fails the job instead of reporting success.
The trade-off
It means more state to manage: every stage needs a status, stored artifacts and invalidation rules, all persisted by the API. In return, a retry only spends time and API credits on the stages that actually changed.
Evidence
The API has no login, so by default it listens only on 127.0.0.1 and accepts only localhost origins.
Developed and tested on Windows; CI runs on Linux.