fablecut 1.20.0 → 1.22.0
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 +140 -6
- package/README.md +9 -2
- package/app.js +564 -96
- package/clips.js +207 -0
- package/import-url.js +10 -3
- package/index.html +13 -5
- package/manifest.json +3 -1
- package/mcp-server.js +177 -20
- package/music.js +253 -0
- package/package.json +1 -1
- package/project-ops.js +12 -2
- package/server.js +3 -1
- package/style.css +52 -0
package/CLAUDE.md
CHANGED
|
@@ -54,6 +54,12 @@ 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.
|
|
60
|
+
- `fablecut_music` — find openly licensed music and sound effects (Openverse), each with
|
|
61
|
+
its licence, import one into the project, and list the credits the edit needs. See
|
|
62
|
+
"Music" below.
|
|
57
63
|
- `fablecut_transcribe` — turn speech into words with times (Whisper, in the browser),
|
|
58
64
|
read them on the timeline, find a phrase and cut it out. See "Transcripts and
|
|
59
65
|
text-based editing" below.
|
|
@@ -212,11 +218,13 @@ Rules:
|
|
|
212
218
|
|
|
213
219
|
## The asset library (`./library/`) — default media
|
|
214
220
|
|
|
215
|
-
Reusable assets, visible in the editor's left-panel tabs and never copied
|
|
221
|
+
Reusable assets, visible in the editor's left-panel tabs and never copied. The
|
|
222
|
+
bin's tabs are **Project**, **Audio** (Music, SFX) and **Graphics** (Elements,
|
|
223
|
+
SVG, Shapes, Templates); a group remembers the tab last open in it.
|
|
216
224
|
|
|
217
225
|
| Folder | Editor tab | Purpose |
|
|
218
226
|
| ----------- | ------------ | ------- |
|
|
219
|
-
| `library/sfx/` | **
|
|
227
|
+
| `library/sfx/` | **SFX** | whooshes, impacts, risers, UI clicks (the tab also searches sound effects online — see "Music") |
|
|
220
228
|
| `library/elements/` | **Elements** | overlay art: alpha PNGs, light leaks, textures, stickers |
|
|
221
229
|
| `library/svg/` | **SVG** | animated vector graphics **you author** (convention below) |
|
|
222
230
|
| `library/fonts/` | font editor | `.ttf/.otf/.woff/.woff2`, auto-registered, family name = file name; a variable font draws every `weight` |
|
|
@@ -444,7 +452,7 @@ These are quick looks. For real grading use `props.grade` (see "Color" below).
|
|
|
444
452
|
| `bold` / `weight` | true / 0 | `weight` (300–900) overrides `bold` when non-zero |
|
|
445
453
|
| `italic` `uppercase` | false | |
|
|
446
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) |
|
|
447
|
-
| `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"`. |
|
|
448
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 |
|
|
449
457
|
| `vAlign` | "middle" | top · middle · bottom — vertical alignment of the text block inside the box |
|
|
450
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) |
|
|
@@ -454,7 +462,8 @@ These are quick looks. For real grading use `props.grade` (see "Color" below).
|
|
|
454
462
|
| `glow` | 0 | neon glow strength (0–100); replaces the drop shadow |
|
|
455
463
|
| `glowColor` | "" | glow color ("" = use the text color) |
|
|
456
464
|
| `strokeWidth` `strokeColor` | 0, "#000" | text outline |
|
|
457
|
-
| `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) |
|
|
458
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) |
|
|
459
468
|
| `wordRate` | 0.15 | seconds per word (typewriter: /4, letter-pop: /3 per character); also staggers `clip-reveal`/`zoom-in`/`rise-mask` per line |
|
|
460
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" |
|
|
@@ -695,6 +704,93 @@ edits the key under the playhead. Agents:
|
|
|
695
704
|
balance whole lanes (dialogue against the music bed), and a **bus** when
|
|
696
705
|
several lanes need the same processing or one fader.
|
|
697
706
|
|
|
707
|
+
### Music
|
|
708
|
+
|
|
709
|
+
The bin's **Music** tab and `fablecut_music` find music and sound effects that
|
|
710
|
+
may be used in a video: openly licensed tracks from **Openverse**
|
|
711
|
+
(openverse.org), which indexes Jamendo, Freesound, ccMixter, Wikimedia Commons
|
|
712
|
+
and more. Results show every licence, not only the free ones, and each result
|
|
713
|
+
says what its licence allows. FableCut is made with Openverse but isn't endorsed
|
|
714
|
+
or certified by it. The licence is the artist's, and Openverse doesn't check it,
|
|
715
|
+
so the person publishing the video is the one who must respect it.
|
|
716
|
+
|
|
717
|
+
| licence | label | may it go in a video? |
|
|
718
|
+
|---|---|---|
|
|
719
|
+
| `cc0` · `pdm` | free to use | yes, any use; no credit needed |
|
|
720
|
+
| `by` | credit | yes, any use; credit the artist |
|
|
721
|
+
| `by-sa` | credit · share alike | yes; credit, and the video is shared under CC BY-SA too |
|
|
722
|
+
| `by-nc` · `by-nc-sa` | credit · non-commercial | not in ads, sponsored or monetized videos; credit (NC-SA: share alike too) |
|
|
723
|
+
| `by-nd` · `by-nc-nd` | no edits | **no**: Creative Commons counts music set to video as a derivative |
|
|
724
|
+
| `sampling+` | credit · non-commercial · samples only | parts may be sampled and transformed, also commercially (not in ads); the whole track as it is can't be set under a video |
|
|
725
|
+
| `nc-sampling+` | credit · non-commercial · samples only | parts may be sampled and transformed, non-commercially only; the whole track as it is can't be set under a video |
|
|
726
|
+
|
|
727
|
+
Search with words about the music (mood, genre, instrument: "chill lo-fi
|
|
728
|
+
piano"); leave the words out to see the newest tracks. Music comes from the
|
|
729
|
+
`music` category, sound effects from Freesound. Lengths are Openverse's: under
|
|
730
|
+
30 s, 30 s – 2 min, 2 – 10 min, over 10 min. Without an account Openverse
|
|
731
|
+
answers 20 results a page, 240 per search and about 20 searches a minute and 200
|
|
732
|
+
a day per address. The search runs from the editor tab (or the MCP server)
|
|
733
|
+
straight to Openverse, and the file goes through the editor server's URL import
|
|
734
|
+
into `media/`.
|
|
735
|
+
|
|
736
|
+
**An imported track keeps its licence** on its media entry, so the credits can
|
|
737
|
+
be listed later:
|
|
738
|
+
|
|
739
|
+
```jsonc
|
|
740
|
+
{ "id": "m_x", "name": "Cinematic — Jahzzar", "kind": "audio", "src": "/media/Cinematic%20-%20Jahzzar.mp3",
|
|
741
|
+
"license": { "code": "by-sa", "label": "CC BY-SA 3.0", "url": "https://creativecommons.org/licenses/by-sa/3.0/",
|
|
742
|
+
"title": "Cinematic", "creator": "Jahzzar", "page": "https://www.jamendo.com/track/918921",
|
|
743
|
+
"source": "jamendo", "openverse": "c14c7353-…", "attribution": "\"Cinematic\" by Jahzzar is licensed under …" } }
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
The **credits** are every licensed file the edit uses (the open sequence and
|
|
747
|
+
the compositions placed in it; a denoised copy counts as its original), one line each:
|
|
748
|
+
`"Cinematic" by Jahzzar (jamendo) — CC BY-SA 3.0 (https://…) — https://www.jamendo.com/track/918921`,
|
|
749
|
+
with a warning for a licence that limits the video (non-commercial, share
|
|
750
|
+
alike, no derivatives, samples only), and `— changed: noise reduced` when the
|
|
751
|
+
edit plays a denoised copy. They go in the video's description. Replacing a
|
|
752
|
+
file (**Replace file…**, `replaceMedia`) drops the old licence and takes the new
|
|
753
|
+
file's, when another entry imported that file with one; a relink keeps it.
|
|
754
|
+
|
|
755
|
+
In the editor: the bin's **Music** tab has the search box, a length, **OK to
|
|
756
|
+
monetize** (only licences that allow commercial use and edits), and mood chips
|
|
757
|
+
to start from. The **SFX** tab has the same search for sound effects (with
|
|
758
|
+
chips such as whoosh, impact, riser) above the files in `library/sfx/`. Each result shows its artist,
|
|
759
|
+
length, genres, source, a licence badge (green: free to use, blue: credit,
|
|
760
|
+
amber: non-commercial, red: no edits; hover for what it allows, click for the
|
|
761
|
+
licence) and a link to its page. **▶** previews it, **⬇** imports it into the
|
|
762
|
+
Project bin, **+** (or a double-click) imports it and adds it at the playhead.
|
|
763
|
+
**More results** loads the next page. A file's **Media info** shows its licence
|
|
764
|
+
and credit with **Copy credit**, and the **Export** dialog lists the edit's
|
|
765
|
+
music credits with **Copy**. Importing needs the editor server (or Studio).
|
|
766
|
+
|
|
767
|
+
**Agents** use `fablecut_music`:
|
|
768
|
+
|
|
769
|
+
- `{query, kind?:"music"|"sfx", length?:"shortest"|"short"|"medium"|"long", commercial?, edits?, licenses?:[…], page?}`
|
|
770
|
+
searches: 20 tracks a page, each `id "title" — artist · m:ss · licence [flags] · genres · source`.
|
|
771
|
+
`commercial:true` keeps licences that allow commercial use (CC0, public domain, BY,
|
|
772
|
+
BY-SA, BY-ND), `edits:true` those that let a track go under a video as it is (it
|
|
773
|
+
leaves out ND and the Sampling licences); pass both when the video will be
|
|
774
|
+
monetized. With `licenses`, only the ones among them that pass.
|
|
775
|
+
- `{import:"<track id>"}` downloads it into `media/` (named "Title - Artist") and
|
|
776
|
+
registers it with its `license`; the reply gives the licence, the credit, any
|
|
777
|
+
limits, and an `addClip` to place it (not for an ND or Sampling track, which
|
|
778
|
+
can't go under a video as it is). Then `fablecut_beats {clipId}` finds its tempo,
|
|
779
|
+
`retime` cuts to it, and `fablecut_auto_duck` dips it under speech.
|
|
780
|
+
- `{credits:true}` lists the edit's credits and licence warnings. `fablecut_export`
|
|
781
|
+
adds them to its reply when the edit uses licensed music, and says so if the
|
|
782
|
+
timeline's licensed music changed while it exported.
|
|
783
|
+
- Say which licence a track has before the user publishes. Search with `edits:true`
|
|
784
|
+
for music to put under a video, plus `commercial:true` when they plan to monetize. Import what the user
|
|
785
|
+
picked, or the best fit when they asked you to choose. The compact view shows
|
|
786
|
+
an imported file's `licence:"CC BY 3.0"`.
|
|
787
|
+
|
|
788
|
+
Recipes: **music under a reel** — search the mood with `length:"short"`,
|
|
789
|
+
import one, place it on A1, `fablecut_beats {clipId, retime:{every:2}}`;
|
|
790
|
+
**a whoosh on every cut** — `kind:"sfx", query:"whoosh"`, import a CC0 one,
|
|
791
|
+
place it just before each cut; **music for a sponsored video** —
|
|
792
|
+
`commercial:true, edits:true`, and give the user the credits from the reply.
|
|
793
|
+
|
|
698
794
|
### Transcripts and text-based editing
|
|
699
795
|
|
|
700
796
|
FableCut turns the speech in a clip into **words with times**, so an edit can be
|
|
@@ -2069,7 +2165,44 @@ is kept first. In the editor: the sequence menu's **Highlights…** (15, 30, 60
|
|
|
2069
2165
|
reads the selected video clips, else every video clip on the timeline, with
|
|
2070
2166
|
progress and **Cancel**.
|
|
2071
2167
|
|
|
2072
|
-
|
|
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"}`,
|
|
2073
2206
|
then check the titles with `fablecut_frame`; by hand, `addSequence {name:"Reel 9:16",
|
|
2074
2207
|
from:"open", width:1080, height:1920}`, then `inSequence` ops to re-position
|
|
2075
2208
|
or re-scale the shots and `setProject {delivery:"instagram-reels"}` in it;
|
|
@@ -2321,8 +2454,9 @@ obvious cuts were missed, raise it if motion is being misread as cuts.
|
|
|
2321
2454
|
MP4/MOV/M4V uploads are auto-remuxed with `+faststart` (needs ffmpeg on PATH).
|
|
2322
2455
|
Files copied straight into ./media by external tools skip this — remux big ones
|
|
2323
2456
|
yourself (`ffmpeg -i in.mp4 -c copy -movflags +faststart out.mp4`) or playback stalls.
|
|
2324
|
-
- `POST /api/import-url` — body `{url:"https://…"}` downloads the file into
|
|
2457
|
+
- `POST /api/import-url` — body `{url:"https://…", name?}` downloads the file into
|
|
2325
2458
|
`./media/` and returns `{src,name}` (same-origin `/media/…`, like upload).
|
|
2459
|
+
`name` is the file name to save as (its extension follows the download).
|
|
2326
2460
|
HTTPS only; rejects localhost, private/link-local/CGNAT addresses, and
|
|
2327
2461
|
redirects to those. Remote SVG is refused (`/media/*.svg` is served
|
|
2328
2462
|
same-origin as `image/svg+xml` — a scripted SVG opened as a document would
|
package/README.md
CHANGED
|
@@ -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
|
|
@@ -161,6 +165,7 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
161
165
|
- **Projects** — a dashboard of every project with pictures, notes and tags: open, create from a canvas or a saved project template, duplicate, rename, archive and delete, import an old project file; media is shared, so copies cost no footage
|
|
162
166
|
- **Sequences** — several timelines in one project (a 16:9 and a 9:16 cut, cut-downs, alternatives) sharing its media and compositions, each with its own canvas, frame rate, mix and delivery settings; switch from the menu at the left of the timeline toolbar
|
|
163
167
|
- **Versions** — non-destructive history: save a version (Ctrl/Cmd+S), automatic versions every 10 minutes and before an agent edits, compare a version with now, restore (the current state is kept as a version first), mark the final cut; backups carry every version, and an unreadable `project.json` is recovered at startup
|
|
168
|
+
- **Music** — the bin's **Music** tab searches openly licensed music from Openverse (Jamendo, ccMixter…), and the **SFX** tab sound effects (Freesound), every result labelled with what its licence allows (free to use, credit, non-commercial, share alike, no edits); preview, import or add at the playhead, and the Export dialog lists the credits for the video's description (`fablecut_music`)
|
|
164
169
|
- **Workflows** — save a routine you want repeated (a podcast clean-up, the weekly reel) as plain-language steps plus the tool calls that did them, in `library/workflows/`; an agent lists them and follows one on the next project, fitting each step to the new footage (`fablecut_workflows`)
|
|
165
170
|
- **Proxies** — light, frame-accurate H.264 copies of 4K / HEVC / ProRes footage made in the background (ffmpeg); edit on the proxy with the monitor's **Proxy** button, export always renders the originals
|
|
166
171
|
- **Import from URL** — **+ URL** downloads an HTTPS video/audio/image into
|
|
@@ -312,7 +317,9 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
312
317
|
locks aspect). Inside a box, text wraps at the fixed font size by default;
|
|
313
318
|
enable **Scale to fit** to shrink the font so the whole block fits. **V-align**
|
|
314
319
|
(top / middle / bottom) places the text block vertically in the box. Set Box
|
|
315
|
-
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.
|
|
316
323
|
|
|
317
324
|
**Animated SVG clips**
|
|
318
325
|
|
|
@@ -494,7 +501,7 @@ Three equivalent control surfaces:
|
|
|
494
501
|
`fablecut_get_project`, `fablecut_set_project`, `fablecut_patch_project`,
|
|
495
502
|
`fablecut_import_media`, `fablecut_files`, `fablecut_analyze_reference`, `fablecut_frame`,
|
|
496
503
|
`fablecut_encode_profiles`, `fablecut_normalize_audio`, `fablecut_auto_duck`,
|
|
497
|
-
`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`.
|
|
498
505
|
|
|
499
506
|
FableCut is also published on the **official MCP registry** as
|
|
500
507
|
[`io.github.ronak-create/fablecut`](https://registry.modelcontextprotocol.io/v0/servers?search=fablecut)
|