Repository navigation
Releases
LEEBKIT v1.6 — hardening + speed
LEEBKIT v1.6 — hardening + speed release
No new caption kinds this time — v1.6 makes the engine harder to break and twice as fast to run.
What's new for users
- Faster renders. The
--finishaudio pass now parallelizes across all cores instead of forcing a single worker. Measured on a 34-second showcase reel (1020 frames @ 1080x1920): wall time 35s -> 10s. Output is byte-identical to before the speedup (verified by SHA-256). - Clearer errors. Malformed projects now fail fast with friendly messages (missing shot data, oversized caption lists, wrong value types) instead of deep engine tracebacks. Limits are enforced before rendering starts.
- Consistent licensing. Every Python file in the repo now carries the
AGPL-3.0-onlySPDX header, with a CI test that keeps it true forever. - UI input hardening. Numeric and option fields in the editor (bars/width/Y fine, preset/music/voice pickers) are properly escaped — no more raw-value injection paths.
- New showcase draft:
drafts/masterclass_v16.json— an 8-shot reel demonstrating the full v1.5 kinetic caption surface (steps ease, color_wave idle, glitch fx, per-caption exits).
Quality gates at this tag
- Smoke suite: 62 checks PASS
- Golden corpus: 1314 frames byte-match PASS (Linux + Windows)
- Determinism: release MP4 SHA-256 identical across job counts and before/after the perf fix
v1.51 — UI exposes all v1.5 engine features
Patch release: the web UI now exposes every v1.5 engine capability that was previously JSON-only.
What's new in the UI
- Full caption-kind picker — all 24 animation kinds now addable from the Add-box dropdown (kicker, burst, pump, wipe, split, slam, trackin, typewriter, flashpop, maskline, slam v2, rule draw, EQ bars, mid panel, and more).
- Per-caption motion controls — Exit (fade up / reverse wipe / shrink), Ease (expo / elastic / steps), FX (glitch slice / tracking collapse), Idle breathing checkbox, vertical Band + exact-Y fine tune, per-word Colors, and EQ bar count/width — straight from the caption editor.
- Tempo (BPM) control — pin a BPM for beat-synced visuals or leave it auto from the music bed, with a live hint showing which tempo is active.
- Dropdown option lists are served by the server from the engine's own tables, so the UI can never offer something the renderer would reject.
Hardening
- XSS: caption-kind interpolations now escaped; new static-analysis gates in tests/.
No render-engine changes — outputs are byte-identical to v1.5 unless you use a newly-exposed control.
LEEBKIT v1.5 — Kinetic Depth
LEEBKIT v1.5 — Kinetic Depth
Everything since v1.41, plus the placement model this line was missing: captions
no longer live where the preset says they live — they go where you put them.
Eleven capability additions in total, all opt-in, default path byte-identical
(1314-frame golden corpus green).
New in v1.5
Placement (C9.1)
place/yon kinetic captions —"place": "top" | "middle" | "bottom", or
an explicit"y": 0.42fraction of frame height. Hosts on the band-anchored kinds
(burst, slam/slam_v2, pump, flashpop, wipe, trackin, accent_word, split, maskline,
big_number, small, cta, kicker, terminal); plate-geometry kinds (panel_*, cap_lines,
chips, handle, title_block) reject it at save time. The pre-render checker and the
renderer agree on it (metrics/checker parity), so a placed line can never silently
overflow.
Kinetic kinds & motion
slam_v2— heavier two-stage slam with overshoot settle.accent_word— one word in the line carries its own color.rule_draw— a rule that draws itself on (post-fit anchored).eq_bars— live equalizer bars that ride the REAL audio bed
(VO + music envelope), not a fake sine.- Opt-in per-caption motion fields:
exit:(rise|wipe|scale),idle:boolean
shapes,ease:(expo|elastic|steps) andfx:(glitch|track_collapse) — all
whitelisted per kind, gated at save time.
Timing
- Shared beat clock — one tempo table drives both picture pulses and the beds;
transitions land on beats. - File-bed BPM ledger — your own MP3/WAV beds carry a known tempo (
music/BPM.json)
so beat visuals stay locked to them too:"music": { "mode": "file", "bed": "..." }.
Audio
- Real music beds, not synths — the release video runs on a CC0 track
(bed_one_cool_minute.mp3, loudness-matched to the mix), provenance in
music/ATTRIBUTIONS.md. Procedural beds remain available as the zero-asset path.
Pipeline
render_cli.py --finish— assembles the audio mix FIRST, wires it into
the engine, then renders frames on it, soeq_barsand beat-reactive visuals
react to the actual final mix for ANY project. Costs one extra frame pass;
the default path stays byte-identical.
Release video
47s, 1080×1920 @30fps, fully voiced + music, all real photos (zero generated
backgrounds): samples/release_v15.json -> output/release_v15.mp4. One command:
python render_cli.py samples/release_v15.json --media samples/media --out output/release_v15.mp4 --finish
Quality gates at this tag
- smoke suite: 60 checks (incl. placement field tests) — green
- golden frames: PASS, 1314 hashed frames (re-baselined exactly for the C9.1
corpus drift: 12 shot-9 keys; everything else untouched) - release render ffprobe gate: video and audio both exactly 47.00s
LEEBKIT v1.41 — audit hotfix pass
LEEBKIT v1.41 — audit hotfix pass
Eight commits, one per fix, each test-first (RED before the fix) with the golden-frame
baseline and smoke gate green at every step. No baseline regeneration was needed:
every pixel output is unchanged except where a bug's visible symptom was the fix target.
Bug fixes
- voice_speed now reaches the final mix — the VO plan carried the speed for duration math but the mix loop re-synthesized without it, so a sped-up VO played at 1.0x in the output. The plan now carries the synthesized wav path itself (40f2d4b).
- README no longer claims "incremental render" — that feature does not exist; the sentence is removed and true incremental rendering is parked for v1.5 (509f4d2).
Security hardening
- Host allowlist + WebSocket Origin gate — loopback binding alone wasn't a trust boundary: a DNS-rebinding page could reach 127.0.0.1 with a foreign Host header.
TrustedHostMiddlewarenow rejects foreign hosts (400) and the WS handshake refuses foreign browser Origins before accepting (3b7a80f). Live-verified against a spare-port server: foreign Host/Origin refused, ours served. - UI escaping hardened —
esc()covered only<and"; it now escapes all five HTML-significant characters (& first), and every interpolation site in the UI templates (image src, data attributes, output links, flags, strip URLs) goes through it (e0e1ca6). - Music beds confined to
music/— an absolute path in project JSON could read any audio file on disk. Every bed now resolves by basename inside the shipped music folder and anything escaping it is rejected (47be295).
Performance
- Transitions render the outgoing layer once — inside a transition window HEAD built the full outgoing layer twice per frame and discarded the first result (~12 wasted renders per fade boundary). One build now, pixel-identity proven by hashing every frame of a transition-bearing render before and after (00b388e).
- PNG intermediates at compress_level=1 — the three intermediate-save sites were deflating at max level for files deleted seconds after ffmpeg reads them. Measured 48-frame A/B: 11.4s → 7.7s (~33% faster frame leg), still lossless (d6d9621).
Small guards
- Upload routes return a clean 400 when a multipart part has no filename (was a 500 on
None.lower());_sniff_audiono longer indexes a 1-byte head; logger renamedreelkit→leebkit;/api/style_previewresponse echoes the frames it actually renders;/api/metagained an identity sentinel andstart.batprobes it before opening the browser — a foreign service squatting port 8735 now gets a warning instead of a browser pointed at it; README Python note corrected (app 3.11–3.14, Piper VO 3.11–3.13) (cd67745).
Gate trail
GOLDEN PASS (1314 frames, baseline intact) · SMOKE PASS 52 checks · CLI render ffprobe: 90/90 frames at 1080×1920@30fps · Linux CI on this tag.
LEEBKIT v1.4 — Kinetic Typography Release
Kinetic promo videos, fully offline. No cloud, no API, no subscription.
What's new in v1.4
- 8 kinetic caption kinds — kicker (rule + tracked caps stagger), burst (scale-punch word, per-word color), wipe, split, slam, trackin, flashpop, maskline — all with metrics/checker parity
- Composition layer — per-shot layout overrides (
layout: {frac}) and caption-levelalign: left|center - 7 presets — leebdark, neonlight, volt, signal, chrome, onyx + variants;
drafts/ships working showcase projects for every kind - Template flow — loading a draft gives per-scene photo slots (drag-drop or click-to-pick)
- Music picker — friendly CC0 bed names, audition toggle (click again to stop), upload-your-own MP3 (sniffed/capped like image uploads)
- Share teasers —
--gif(640px/6s/12fps cap) and--webpstraight from the CLI - UX fixes from live testing — recent-projects dropdown (mtime-sorted, load-from-folder),
start.batopens the browser only once the port answers + safe venv self-heal - Quality gates — golden corpus now 1314 hashed frames; smoke + sampled golden on every push (Linux), full corpus weekly (Windows)
Assets
promo_v14.mp4— 20s ONYX promo (voiced, music bed)promo_v14.gif— looped share teasermoodboard_v14.png— 8x3 preset/kind moodboard
Reproduce the demo: python render_cli.py samples/promo_v12.json --media samples/media --out output/promo.mp4 --jobs 8 (~17s wall-clock, CPU-only).
v1.31 — audit fix pass (no new features)
Reliability and correctness fixes from the November 11 double audit. No new features, no behavior changes you'd notice in existing renders — except app jobs and CLI renders are now encoded identically (crf 18/slow everywhere).
Caption math (checker vs renderer drift)
- cap_lines: stagger clock clamped so every line's animation is actually reachable at any line count; the draw path now wraps lines exactly like the pre-render checker (long multi-line captions no longer render unclipped/unsynced)
- panel done_at formula now matches what checks.py measures (pre-render flags agree with the engine again)
- terminal: single source for default rows + row font parity between checker and renderer
- save/submit now rejects unknown caption kinds (were silently skipped at render time) and out-of-shot overlay timings
App
- Gallery tile prewarm no longer blocks the whole server for ~12s on first open
- Queue renders use the same encoder as CLI (one code path, one output)
Hardening / docs
- Custom music beds confined to the music/ folder (absolute paths rejected)
- Media scan skips internal component folders
- README security note: app is LAN-reachable by default with no auth — run it on your own machine
- Both full audit reports committed under docs/
Already installed? git pull, then run start.bat — it self-heals the venv. No update script needed.
Verified: math unit tests green, golden-frame harness 1260/1260 frames unchanged, smoke suite green (37 checks), CLI render ffprobe gate exact (h264 1080x1920, 360 frames, 12.000s), linux CI green on this tag's SHA.
v1.3 — the reliability release
v1.3 — the reliability release
Everything since v1.2, hardened by a golden-frame test harness and two rounds
of live testing on a real Windows machine.
Engine
- Golden-frame harness: scripted fixture renders + per-OS perceptual
baselines (tests/golden_baselines/); 37 smoke checks green, including a
headless-browser pass of the whole UI. - Single source of truth: storyboard checks and the renderer now share the
caption kind-dispatch (core/captions.py) — the "storyboard says OK, render
throws" bug class is gone. - Fit/wrap metrics cached per Engine (no behavior change; golden tests prove
frame-identical output).
Queue (v1.3 live-test, this release)
- Upload paths are media-dir-relative end to end — fixes the "outside media
dir" render abort and corrupted upload previews. - Worker probe falls back to threads when
mp.Poolchildren are blocked by
restricted sessions; pool disabled by default on Windows (WinError 87). - Queue cap raised 4 -> 20.
UI
- Animations pane (v1.35): CapCut-style left ANIMATIONS column — 270
animated webp tiles rendered through the real engine path, click to apply
transitions/camera moves to a shot. - Project load dropdown (v1.36): pick any saved project in the queue pane.
- Per-job cancel + visible queue depth.
- Progress bar tracks the running job; outputs list newest-first by file
mtime. - Shot thumbnails fixed (media-relative src), gallery paints at boot.
Docs
- README re-measured honestly (warm full-corpus end-to-end ~17s, no inflated
speed claims); flagship promo re-rendered aspromo_v13.mp4with an
ffprobe gate (h264 1080x1920 30fps, exact frame count, aac audio).
LEEBKIT v1.2 — three formats, harder edges, real benchmarks
What's new
- Three formats — 9:16, 1:1 and 16:9 per project, chosen in the UI (preset-driven layouts via core/layout.py).
- Sub-line auto-wrap — small caption/sub lines now measure and word-wrap to safe width, like titles always did. Long text can no longer clip off-frame.
- One-click installer —
LEEBKIT-setup.bat: checks Python, fetches portable ffmpeg if missing, launches the app. - Hardening (A2) — project image paths confined to
media/(absolute and..rejected), 32MB upload cap + magic-byte sniff, missing shot images abort with a clear error instead of rendering black frames. - Benchmark block in README — measured, not invented: 12s promo (360 frames + VO + music) renders in 8.3s wall-clock on a CPU-only Windows 11 laptop.
Breaking convention (one-time)
Project JSON image paths are now relative to media/ (e.g. "uploads/x.png", not "media/uploads/x.png"). Existing projects in the repo were migrated; if you hand-edited old JSON, drop the leading media/.
Promo
The 12s promo at the top of the README was rendered by LEEBKIT itself — its full project JSON ships as samples/promo_v12.json and the 4 input stills ship in samples/media/; reproduce with:
python render_cli.py samples/promo_v12.json --media samples/media --out output/promo.mp4 --jobs 8
Verified
Pre-release smoke suite green (render, ffprobe gates, path-confinement regressions, wrap check, UI JS parse). Piper VO rendered via local voices.
LEEBKIT v1.1
Free-typing engine + QA fixes.
Engine adapts to what you type (no more red flags for normal text)
- panel_top / panel_mid and raw-text kinds now word-wrap automatically — long lines reflow inside the card instead of flagging or overflowing
- checks measure the same wrapped lines the engine renders, so warnings only fire for genuinely unfixable cases (e.g. a monster word wider than the card, or too many words to stagger in under 1s)
Fixes
- 'Small note' chip: fixed clipped rect + render error; long notes now wrap above the bar
- Status toast fires once per job and auto-hides after 5s (was stuck forever)
- Outputs panel: new 'clear all' button hides entries from the list — MP4 files on disk are never deleted
- Transition overlap: outgoing captions now freeze and fade out with their shot during cut/fade windows, so they're gone before the next shot's lines draw their own
- CTA text clamped inside frame; completion clock now includes caption fade-out tail
LEEBKIT v1.0
Kinetic promo videos. No cloud. No API. No subscription.
Demo rendered entirely by LEEBKIT on a laptop: https://github.com/user-attachments/assets/a43f0081-0f48-bd6e-adb6-688649257680 (also attached below as demo.mp4)