fablecut 1.21.0 → 1.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +54 -3
- package/README.md +9 -3
- package/app.js +224 -103
- package/clips.js +207 -0
- package/doc-guard.js +97 -0
- package/index.html +2 -0
- package/manifest.json +2 -1
- package/mcp-server.js +46 -1
- package/package.json +1 -1
- package/project-ops.js +2 -1
package/CLAUDE.md
CHANGED
|
@@ -54,6 +54,9 @@ Every Claude Code session then has these tools:
|
|
|
54
54
|
on that canvas whose shots follow the subject. See "Sequences" below.
|
|
55
55
|
- `fablecut_highlights` — the best moments of long footage cut into a short edit, in a new
|
|
56
56
|
sequence. See "Sequences" below.
|
|
57
|
+
- `fablecut_clips` — a long video (podcast, interview, talk, stream) into short clips in one
|
|
58
|
+
call: each part you pick becomes its own 9:16 sequence, framed on the subject, with a hook
|
|
59
|
+
title and captions, and can be exported. See "Sequences" below.
|
|
57
60
|
- `fablecut_music` — find openly licensed music and sound effects (Openverse), each with
|
|
58
61
|
its licence, import one into the project, and list the credits the edit needs. See
|
|
59
62
|
"Music" below.
|
|
@@ -449,7 +452,7 @@ These are quick looks. For real grading use `props.grade` (see "Color" below).
|
|
|
449
452
|
| `bold` / `weight` | true / 0 | `weight` (300–900) overrides `bold` when non-zero |
|
|
450
453
|
| `italic` `uppercase` | false | |
|
|
451
454
|
| `align` | "center" | left · center · right · **justify** (inserts spaces between words to fill the text box width, or ~85% of the canvas when no box) |
|
|
452
|
-
| `boxW` `boxH` | 0 | px text box; **0 = hug content**. When both > 0, corner handles resize the box (not `scale`). Default: fixed `fontSize`, word-wrap inside the box. |
|
|
455
|
+
| `boxW` `boxH` | 0 | px text box; **0 = hug content**. When both > 0, corner handles resize the box (not `scale`). Default: fixed `fontSize`, word-wrap inside the box. The background fills the box only with `bgShape:"box"`. |
|
|
453
456
|
| `boxFit` | false | when a box is set: `false` = wrap at fixed font size; `true` = scale font down (up to `fontSize`) so the whole text fits |
|
|
454
457
|
| `vAlign` | "middle" | top · middle · bottom — vertical alignment of the text block inside the box |
|
|
455
458
|
| `direction` | "auto" | auto · ltr · rtl — `auto` detects per line (Hebrew/Arabic → RTL); all `textAnim` modes honor reading direction (wipe, typewriter reveal, word/letter layout) |
|
|
@@ -459,7 +462,8 @@ These are quick looks. For real grading use `props.grade` (see "Color" below).
|
|
|
459
462
|
| `glow` | 0 | neon glow strength (0–100); replaces the drop shadow |
|
|
460
463
|
| `glowColor` | "" | glow color ("" = use the text color) |
|
|
461
464
|
| `strokeWidth` `strokeColor` | 0, "#000" | text outline |
|
|
462
|
-
| `bgColor` `bgOpacity` | "#000", 0 |
|
|
465
|
+
| `bgColor` `bgOpacity` | "#000", 0 | text background, drawn when `bgOpacity` > 0 (shape set by `bgShape`) |
|
|
466
|
+
| `bgShape` | "lines" | **lines** = a rounded pill hugging each line; wrapped lines that would overlap meet halfway instead, as one shape · **box** = one rounded box: the `boxW`×`boxH` text box when the clip has one (a brand box or lower-third taller than its text), else the whole text block plus padding. The background *is* the box only in `box`; in `lines` the pills follow the lines, which a text box still shapes (`boxFit` sets the font size, `vAlign` moves them, the box clips them) |
|
|
463
467
|
| `textAnim` | "none" | typewriter · word-pop · word-slide · karaoke · **highlight** (every word shown; the one being said in `highlightColor`) · **letter-pop** (per-character entrance; Arabic/Indic auto-fallback to per-word clusters so joined letters shape correctly) · **wave** (looping per-character ride; same shaping fallback) · **bounce** (looping per-word hop) · **shake** (looping jitter) · **clip-reveal** (wipe-mask sweep, per line) · **zoom-in** (scale + opacity settle) · **font-cut** (rhythmically swaps typeface, then settles — see `fontCutSet`) · **rise-mask** (line rises from behind its baseline, lower-third reveal) |
|
|
464
468
|
| `wordRate` | 0.15 | seconds per word (typewriter: /4, letter-pop: /3 per character); also staggers `clip-reveal`/`zoom-in`/`rise-mask` per line |
|
|
465
469
|
| `wordTimes` | — | `[[start, end], …]`, one pair per word (seconds from the clip's start): word-pop, word-slide, karaoke and highlight follow these instead of `wordRate` — a caption timed to speech. If the text is edited to another number of words they are spread over the clip. See "Captions" |
|
|
@@ -2161,7 +2165,44 @@ is kept first. In the editor: the sequence menu's **Highlights…** (15, 30, 60
|
|
|
2161
2165
|
reads the selected video clips, else every video clip on the timeline, with
|
|
2162
2166
|
progress and **Cancel**.
|
|
2163
2167
|
|
|
2164
|
-
|
|
2168
|
+
**Clips** — `fablecut_clips {clips:[{from, to, name?, title?}], aspect?, captions?, reframe?, title?, export?}`
|
|
2169
|
+
turns a long video into short clips in one call: the clipper's job. The agent
|
|
2170
|
+
picks the parts (read the talk with `fablecut_transcribe` first: a tip, an
|
|
2171
|
+
answer, a story, each usually 20–60 s, starting and ending on a full sentence)
|
|
2172
|
+
as timeline seconds of the open sequence, up to 10 at a time, each 3–180 s.
|
|
2173
|
+
For each one, in order:
|
|
2174
|
+
|
|
2175
|
+
1. a new sequence named after it, on the clip's canvas (`aspect`, default
|
|
2176
|
+
`9:16`; the project's shorter side is kept, so 1920×1080 → 1080×1920),
|
|
2177
|
+
holding only `from` → `to` of the open timeline: a copy of it with the rest
|
|
2178
|
+
extracted on every lane, so linked sound stays in step and the source
|
|
2179
|
+
sequence is left as it was;
|
|
2180
|
+
2. on another shape, each shot framed on the subject, as `fablecut_reframe {}`
|
|
2181
|
+
does (`reframe:false` only letterboxes);
|
|
2182
|
+
3. when the clip has a `title`, a hook title for its first 3 s: big outlined
|
|
2183
|
+
words in the top third that pop in word by word, on the top video lane
|
|
2184
|
+
when it is free (else left out, and the reply says so; `title:false`
|
|
2185
|
+
leaves every title out);
|
|
2186
|
+
4. captions timed to the words, as `fablecut_captions {style}` does (`captions`:
|
|
2187
|
+
`pop` by default, `highlight`, `karaoke`, `subtitle`, or `false`); the
|
|
2188
|
+
speech is transcribed the first time, once per file;
|
|
2189
|
+
5. with `export:"tiktok"` (or any delivery preset), rendered to `exports/`,
|
|
2190
|
+
named after the clip (`Tip 1` → `tip-1.mp4`).
|
|
2191
|
+
|
|
2192
|
+
A step that fails is reported on its clip, and the rest go on. Each export
|
|
2193
|
+
gets 3 minutes, or 6 s per second of the clip if longer: one still running
|
|
2194
|
+
then is stopped and reported as not exported. A timeline with locked clips or
|
|
2195
|
+
lanes refuses the call (each clip is cut out of a copy, and locked material
|
|
2196
|
+
can't be cut): unlock them only if the user agrees. The reply
|
|
2197
|
+
lists each clip (its sequence id, length, what was done, the file); the first
|
|
2198
|
+
clip is opened. A version is kept first. Check a clip with
|
|
2199
|
+
`openSequence` and `fablecut_frame {time}`; its title and captions are
|
|
2200
|
+
ordinary text clips, restyled with `updateClip` inside `inSequence`.
|
|
2201
|
+
|
|
2202
|
+
Recipes: **clips from a talk or podcast** — `fablecut_transcribe {}`, pick the
|
|
2203
|
+
3–5 parts that stand on their own, then `fablecut_clips {clips:[{from:43.2, to:88.0,
|
|
2204
|
+
name:"Tip 1 - comfort zone", title:"Start a little out of your comfort zone"}, …],
|
|
2205
|
+
export:"tiktok"}`; **vertical cut of a finished edit** — `fablecut_reframe {aspect:"9:16"}`,
|
|
2165
2206
|
then check the titles with `fablecut_frame`; by hand, `addSequence {name:"Reel 9:16",
|
|
2166
2207
|
from:"open", width:1080, height:1920}`, then `inSequence` ops to re-position
|
|
2167
2208
|
or re-scale the shots and `setProject {delivery:"instagram-reels"}` in it;
|
|
@@ -2173,6 +2214,16 @@ user drops favourite takes on, cut into the edit from the Source monitor.
|
|
|
2173
2214
|
|
|
2174
2215
|
### Semantics
|
|
2175
2216
|
|
|
2217
|
+
- **Values are checked on load.** Kinds, option names and other values that aren't written
|
|
2218
|
+
text never need quotes, angle brackets or backticks: the editor takes those characters out
|
|
2219
|
+
as it reads a project. A key written with one of them is dropped with its value, and so is
|
|
2220
|
+
a colour that isn't written as one (`#` and hex digits, `rgb()` / `hsl()`, or a single
|
|
2221
|
+
word). A `width`, `height` or `fps` given as text becomes the number it
|
|
2222
|
+
starts with, or is dropped when it starts with none. In an id those characters (and `&`,
|
|
2223
|
+
`\`) each become another character instead, in every reference to it too: keep ids to
|
|
2224
|
+
letters, digits, `_` and `-` and they never change. Written text (names, titles, notes,
|
|
2225
|
+
tags, credits, `src`) is kept as it is.
|
|
2226
|
+
|
|
2176
2227
|
- Rendering order: V1 is drawn first, then V2, V3, … on top. SVG/image/text clips
|
|
2177
2228
|
go on any V track (higher V lanes are handy overlay lanes). Add lanes with the
|
|
2178
2229
|
timeline **+V** / **+A** buttons (or by listing them in `tracks`); up to 16 per kind.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
</div>
|
|
22
22
|
|
|
23
|
-
[](https://youtu.be/z7pV3ERCmTw)
|
|
24
24
|
|
|
25
25
|
FableCut is a Premiere-style non-linear video editor that runs entirely in your
|
|
26
26
|
browser — and exposes its whole timeline as one JSON document. Edit it by hand,
|
|
@@ -140,6 +140,10 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
140
140
|
clear picture) cut into a short edit in a new sequence, in story order and
|
|
141
141
|
never across a cut. From the sequence menu's **Highlights…**; agents use
|
|
142
142
|
`fablecut_highlights`.
|
|
143
|
+
- **Clips** — a long video (a podcast, an interview, a talk) into short
|
|
144
|
+
vertical clips in one ask: each part becomes its own 9:16 sequence, framed
|
|
145
|
+
on the speaker, with a hook title and word-timed captions, and can be
|
|
146
|
+
exported for TikTok, Shorts or Reels. Agents use `fablecut_clips`.
|
|
143
147
|
- **Silence removal** — the inspector's **Silence** section (or right-click →
|
|
144
148
|
**Find silences**) listens to a take and marks every pause on the timeline;
|
|
145
149
|
**Cut** extracts them all in one undo step, keeping a little quiet beside
|
|
@@ -313,7 +317,9 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
313
317
|
locks aspect). Inside a box, text wraps at the fixed font size by default;
|
|
314
318
|
enable **Scale to fit** to shrink the font so the whole block fits. **V-align**
|
|
315
319
|
(top / middle / bottom) places the text block vertically in the box. Set Box
|
|
316
|
-
W/H to `0` to return to hug-content sizing.
|
|
320
|
+
W/H to `0` to return to hug-content sizing. **Bg shape** (`bgShape`):
|
|
321
|
+
`lines` puts a pill behind each line (pills that would overlap join into one shape),
|
|
322
|
+
`box` one rounded box filling the text box, or the whole block without one.
|
|
317
323
|
|
|
318
324
|
**Animated SVG clips**
|
|
319
325
|
|
|
@@ -495,7 +501,7 @@ Three equivalent control surfaces:
|
|
|
495
501
|
`fablecut_get_project`, `fablecut_set_project`, `fablecut_patch_project`,
|
|
496
502
|
`fablecut_import_media`, `fablecut_files`, `fablecut_analyze_reference`, `fablecut_frame`,
|
|
497
503
|
`fablecut_encode_profiles`, `fablecut_normalize_audio`, `fablecut_auto_duck`,
|
|
498
|
-
`fablecut_denoise`, `fablecut_silence`, `fablecut_beats`, `fablecut_reframe`, `fablecut_highlights`, `fablecut_transcribe`, `fablecut_captions`, `fablecut_export`, `fablecut_scopes`, `fablecut_track`.
|
|
504
|
+
`fablecut_denoise`, `fablecut_silence`, `fablecut_beats`, `fablecut_reframe`, `fablecut_highlights`, `fablecut_clips`, `fablecut_transcribe`, `fablecut_captions`, `fablecut_export`, `fablecut_scopes`, `fablecut_track`.
|
|
499
505
|
|
|
500
506
|
FableCut is also published on the **official MCP registry** as
|
|
501
507
|
[`io.github.ronak-create/fablecut`](https://registry.modelcontextprotocol.io/v0/servers?search=fablecut)
|