xeronsh/KomaSlate
KomaSlate — 本地优先、非破坏性开源 AI 分镜工作台 | Local-first, non-destructive AI storyboarding workspace with shot retake, version diff & FCPXML export
KomaSlate — What It Is
KomaSlate (name from Japanese Koma = storyboard panel + Slate = film clapperboard) is an open-source, local-first AI storyboarding workspace for creators and indie developers. It's built around a core promise: non-destructive editing — you can change one shot without re-running your entire film.
The Problem It Solves
Closed-source cloud AI video tools typically work like a black box: you spend credits, and if you change one detail, you re-run the whole pipeline. KomaSlate flips that model:
- Everything lives on your machine — in a single-file SQLite database and a React Flow canvas.
- You approve shots at 6 checkpoints — once a shot is locked (
LOCKED), it's protected from accidental re-generation. - You can re-shoot just one shot — add a director's note, add/remove characters, and re-run only that shot. Every write keeps a history snapshot.
- You can compare versions side-by-side (image vs. image, video vs. video) and roll back with one click (CAS optimistic locking — restores the image, prompt, and character bindings together).
What It Does
1. 15-Stage Deterministic Workflow
A fixed pipeline: Outline → Characters → Storyboard → Character Art → Storyboard Keyframes → Video Clips → Final Film. Each stage follows a strict contract. You can run it in step-by-step confirm mode or auto-confirm mode. If your connection drops, it resumes from where it stopped (SQLite lease + event table).
2. Character Binding with Consistency Checks
You can add or remove character tags per shot in the inspector. For close-ups or empty shots, you can unbind characters and approve without forcing unrelated people into frame. Two layers of consistency checking:
- Vision Critique — visual review
- InsightFace — local face-feature cosine evaluation to catch character distortion
3. Dual-Track Delivery
Track A — One-click final film:
- Multi-voice TTS narration
- Burned-in subtitles
- Background music with auto-ducking (FFmpeg)
- Output as MP4, A4 comic PDF, or Webtoon long image
Track B — Standard editing asset package (FCPXML v1.9):
- A ZIP containing: keyframes named by shot number, video clips, separate TTS dry vocals, character art, SRT subtitles, and a
timeline.fcpxml(frame-aligned at 100/2400s) - Drag it into DaVinci Resolve, Final Cut Pro, Premiere Pro, or CapCut Pro for fine editing
4. Local-First + BYOK (Bring Your Own Key)
- All project data and generated media stay on your disk — no platform credit skimming
- Built-in preset cards for mainstream text, image, video, vision-review, voiceover, and BGM providers (domestic and international)
- Zero-cost connectivity probes (no charges for testing)
- Fake mode — run the entire pipeline with fake providers at zero cost to learn the flow
5. Controlled Chat Assistant
A built-in project assistant (based on pi-agent-core) that can check status, polish scripts, or trigger local re-generation. All billing and write operations require a human confirmation card — the assistant cannot approve shots on your behalf; only you can pass approval gates.
Architecture
Three main parts sharing one TypeScript engine and one local SQLite file:
frontend/ (React 18 + React Flow) ──HTTP/WS──▶ backend/ (FastAPI gateway) ──loopback──▶ engine/ (Workflow + Agent)
└────── 共享 SQLite(WAL)+ /static 本地媒体 ──────┘
- Frontend — React 18 + React Flow canvas (light and dark themes)
- Backend — FastAPI serving HTTP/WebSocket contracts, CAS version rollback, FCPXML packaging, engine gateway, reference-image compositing, TTS/BGM mixing, and InsightFace feature vectors
- Engine — TypeScript: 15-stage pipeline (contract-driven) + controlled agent loop; auto-starts as a sidecar on
127.0.0.1:18766when first generation is triggered
Quick Start
Option 1 — Docker Compose:
cp backend/.env.example backend/.env # default Fake mode = zero-cost full experience
docker compose up -d
Then open http://localhost:15173 and add your own model API keys in Settings to switch to real generation.
Option 2 — Local source (no containers):
Requirements: Python 3.10+ with uv, Node.js 22.19+ with pnpm, system ffmpeg.
cp backend/.env.example backend/.env
cd engine && pnpm install && cd ..
cd backend && uv sync && uv run uvicorn app.main:app --reload --host 127.0.0.1 --port 18765
# in another terminal:
cd frontend && pnpm install && pnpm dev
Frontend: http://localhost:15173 · API docs: http://localhost:18765/docs
Tech Stack (from README badges)
| Component | Version |
|---|---|
| Python | 3.10+ |
| FastAPI | 0.115+ |
| Node.js | 22+ |
| React | 18 |
| SQLite | Local-first (WAL) |
| FCPXML | v1.9 |
| License | MIT |
Roadmap Status
Done:
- 15-stage pipeline, 6 approval gates, SQLite lease recovery
- Locked-shot protection, targeted re-shoots with director notes, side-by-side diff, CAS rollback
- Character binding visualization + empty-shot approval
- FCPXML v1.9 export package
- BYOK presets, connectivity probes, final-film composition (TTS/subtitles/BGM/PDF/Webtoon)
- Branding + dual themes
Planned:
- Multi-candidate Take matrix (horizontal test bench) with timecode frame-level annotations
- OpenTimelineIO (
.otio) exchange format + more NLE presets
Notes
- The README includes a sponsor section (Bloome) and mentions that paid sponsorship slots for AI video/image API gateways are available via GitHub Issue.
- Credits: Linux.do community is acknowledged.
- License: MIT.
Related
- Project
- Project
- Project
- Project