fablecut 1.18.0 → 1.19.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 +82 -7
- package/README.md +17 -16
- package/app.js +577 -72
- package/command-search.js +79 -0
- package/export-jobs.js +4 -2
- package/index.html +31 -0
- package/mcp-server.js +71 -4
- package/media-files.js +271 -0
- package/package.json +2 -2
- package/server.js +210 -4
- package/style.css +73 -0
- package/transcripts.js +10 -0
package/CLAUDE.md
CHANGED
|
@@ -24,6 +24,8 @@ Every Claude Code session then has these tools:
|
|
|
24
24
|
set project fields, add and open sequences) without round-tripping the document. **Prefer this for edits.**
|
|
25
25
|
- `fablecut_import_media` — copy a local file (or download an `https://` URL)
|
|
26
26
|
into `./media/` and register it. The stored `src` is always `/media/…`.
|
|
27
|
+
- `fablecut_files` — the real folders in `./media/`: list one, make folders, move or rename
|
|
28
|
+
files and folders, trash and restore (nothing is deleted). See "Media management" below.
|
|
27
29
|
- `fablecut_analyze_reference` — turn a reference video into an edit blueprint
|
|
28
30
|
(shots, beats, BPM, energy, drop) + extract its music. See "Remake a reference video".
|
|
29
31
|
- `fablecut_frame` — **look at** a moment and get back an actual image.
|
|
@@ -475,10 +477,22 @@ dropdown + Shuffle), or reproduce it from an agent by writing the same props:
|
|
|
475
477
|
| `subtitle` | Roboto | small, bottom, bg pill, `karaoke` |
|
|
476
478
|
| `boldRise` | Archivo Black | uppercase, lower third, `rise-mask` |
|
|
477
479
|
| `luxury` | Cinzel | uppercase, cream→gold gradient, wide `letterSpacing`, `clip-reveal` |
|
|
480
|
+
| `popOutline` | Montserrat 900 | uppercase, gold with a dark outline, `letter-pop` |
|
|
481
|
+
| `boxed` | Inter 800 | dark text on a white box, lower third, `word-slide` |
|
|
482
|
+
| `headline` | Montserrat 900 | uppercase, outlined, the word being said in pink (`highlight`) |
|
|
483
|
+
| `comic` | Bangers | yellow with a thick outline, tilted −3°, `bounce` |
|
|
484
|
+
| `typewriter` | Special Elite | cream, lower-left, `typewriter` |
|
|
485
|
+
| `minimal` | Inter 300 | uppercase, very wide `letterSpacing`, no shadow, `rise-mask` |
|
|
486
|
+
| `script` | Great Vibes | white→blush gradient, `clip-reveal` |
|
|
487
|
+
| `retro` | Monoton | uppercase, pink `glow`, `letter-pop` |
|
|
488
|
+
| `sticker` | Fredoka 700 | white on a violet box, tilted −2°, lower third, `word-pop` |
|
|
489
|
+
| `glitch` | Russo One | uppercase, red `glow`, `shake` |
|
|
490
|
+
| `cinematic` | Cormorant Garamond 500 | uppercase, wide `letterSpacing`, `rise-mask` |
|
|
478
491
|
|
|
479
492
|
**Rule for agents: vary the font per title — never reuse one font across a whole
|
|
480
|
-
edit.** Any Google Font name auto-loads;
|
|
481
|
-
`library/fonts/`.
|
|
493
|
+
edit.** Any Google Font name auto-loads; some display faces ship in
|
|
494
|
+
`library/fonts/`. The font picker lists about sixty Google fonts by look
|
|
495
|
+
(Display, Sans, Serif, Script & hand, Retro & mono) and loads one on first use. Placement props (`x`/`y`) are canvas-aware in the styles
|
|
482
496
|
(lower third ≈ `y: height*0.30`).
|
|
483
497
|
|
|
484
498
|
Switching the style on an **existing** title (inspector dropdown/Shuffle) only
|
|
@@ -718,9 +732,14 @@ edit. Find matches whole words and ignores case, accents, punctuation and spacin
|
|
|
718
732
|
|
|
719
733
|
In the editor, the **Transcript** tab beside the Inspector:
|
|
720
734
|
|
|
721
|
-
- **Transcribe** works on the selected clips' files
|
|
722
|
-
|
|
723
|
-
|
|
735
|
+
- **Transcribe** works on the selected clips' files (a selection with no speech,
|
|
736
|
+
such as a title, transcribes nothing), else on every file on the timeline that
|
|
737
|
+
has no transcript yet; once every file has one (an agent may
|
|
738
|
+
have made them), it reads **Transcribe again** and redoes them all. The model
|
|
739
|
+
and the language are beside it. Progress shows below (the first time, the
|
|
740
|
+
model download), with **Cancel**. A line above the words says which model and
|
|
741
|
+
language made them: when the words look wrong, pick the language spoken and
|
|
742
|
+
the Small model, then Transcribe again.
|
|
724
743
|
- The timeline's words, in paragraphs with timecodes. Click a word to go there;
|
|
725
744
|
the word under the playhead is underlined and followed while playing. ⇧-click or
|
|
726
745
|
drag to select a run of words, then press **Delete** (or **Cut**) to extract it.
|
|
@@ -1579,8 +1598,9 @@ it in every project; **titles that arrive and leave the same way** —
|
|
|
1579
1598
|
### Media management
|
|
1580
1599
|
|
|
1581
1600
|
The Project bin knows each file's details and helps find, group and track
|
|
1582
|
-
footage.
|
|
1583
|
-
exports
|
|
1601
|
+
footage. The bin's organizing (details, favorites, tags, collections, search)
|
|
1602
|
+
changes nothing that plays or exports; moving and trashing the files themselves
|
|
1603
|
+
("Files on disk" below) does what it says.
|
|
1584
1604
|
|
|
1585
1605
|
**Metadata.** The editor reads every file in `media/` and `library/` with
|
|
1586
1606
|
ffprobe (via `GET /api/media-info`) and writes what it finds onto the media
|
|
@@ -1710,6 +1730,39 @@ proxy only changes how smoothly the preview runs, never the result.
|
|
|
1710
1730
|
be an existing file under `/media/` or `/library/` of the same kind (an
|
|
1711
1731
|
audio entry may use a video container).
|
|
1712
1732
|
|
|
1733
|
+
**Files on disk.** The bin's folders (`folders`, `folderId`) only organize
|
|
1734
|
+
entries in `project.json`; the files themselves sit in `media/` and may live
|
|
1735
|
+
in subfolders. `fablecut_files` works on those (or `POST /api/files`):
|
|
1736
|
+
|
|
1737
|
+
- `{action:"list", dir?}` (an empty call to the MCP tool lists too) lists one folder: its subfolders and files with
|
|
1738
|
+
sizes and srcs. Dot-folders (`media/.trash/`) are left out.
|
|
1739
|
+
- `{action:"mkdir", dir:"b-roll/day 1"}` makes a folder (and its parents).
|
|
1740
|
+
- `{action:"move", from, to}` moves a file or folder into an existing folder,
|
|
1741
|
+
or to a new path (a rename); `to` is required (`"/media/"` is the top of
|
|
1742
|
+
`media/`). Every project's media entries that point at a moved file are repointed (the open project gets a new revision, so the editor
|
|
1743
|
+
reloads), a media name that was the old file name follows it, and the file's
|
|
1744
|
+
transcript goes with it (a `warning` says when one couldn't be). The move is
|
|
1745
|
+
refused while a project can't be read (`force:true` moves anyway, and the file
|
|
1746
|
+
goes offline there), and a project edited meanwhile stops it (CONFLICT, try
|
|
1747
|
+
again). If a project can't be written, the move is undone; if undoing fails
|
|
1748
|
+
too, the error says where the files are and which project couldn't be put
|
|
1749
|
+
back: check them there and relink. A name that is taken (also one taken while
|
|
1750
|
+
the move runs), and links inside `media/`, are refused, never replaced.
|
|
1751
|
+
- `{action:"trash", paths:[…]}` moves files or folders into `media/.trash/<id>/files/`
|
|
1752
|
+
with a note of where they were; nothing is deleted. A file a project still
|
|
1753
|
+
uses is refused (the reply names the project and how many clips place it):
|
|
1754
|
+
`removeMedia` it first, or `force:true` to trash it anyway, and it shows as
|
|
1755
|
+
offline there until it is restored. A project whose `project.json` can't be
|
|
1756
|
+
read counts as possibly using it, so the same applies. One call can't list a
|
|
1757
|
+
folder and something inside it. When one of several fails, the reply lists the
|
|
1758
|
+
ones already trashed, with their ids, and the path it stopped at.
|
|
1759
|
+
`{action:"trash-list"}` lists the trash, `{action:"restore", id}` puts one back
|
|
1760
|
+
where it was (refused while something else has that name; a `warning` says
|
|
1761
|
+
when its trash entry couldn't be cleaned up).
|
|
1762
|
+
- Move, rename and trash only when the user asked: they change the user's
|
|
1763
|
+
folder. Versions keep the paths they were saved with, so restoring an old
|
|
1764
|
+
version after a move may need **Relink**.
|
|
1765
|
+
|
|
1713
1766
|
### Projects
|
|
1714
1767
|
|
|
1715
1768
|
One FableCut keeps any number of projects. **`./project.json` is always the
|
|
@@ -2197,6 +2250,13 @@ obvious cuts were missed, raise it if motion is being misread as cuts.
|
|
|
2197
2250
|
name?, note?, final?}` → `{version}` · `delete {version}` → `{deleted}`. `GET /api/versions/file?project=&version=`
|
|
2198
2251
|
is that version's document; `GET /api/projects/backup?id=` a project with all its versions (import it with
|
|
2199
2252
|
`POST /api/projects {action:"import", project:<the backup>}`). SSE event `versions` (`{project, action}`). See "Versions".
|
|
2253
|
+
- `POST /api/files {action, …}` — the files in `media/`: `list {dir?}` → `{dir, folders, files:[{name, src, size}]}` ·
|
|
2254
|
+
`mkdir {dir}` · `move {from, to, force?}` → `{from, to, moved:[{from, to}], repointed:[{project, open, media}], warning?}`
|
|
2255
|
+
(`from` / `to` are the item itself; `moved` lists each file in it, so it is empty for an empty folder or a no-op;
|
|
2256
|
+
409 while a project can't be read, unless `force:true`) ·
|
|
2257
|
+
`trash {paths, force?}` → `{trashed:[{id, src}], offline}` (409 while a project uses one or can't be read, unless `force:true`;
|
|
2258
|
+
a batch that stops part-way answers 400 with `trashed` and `failed`; `stillThere` lists uses whose file is still in place) ·
|
|
2259
|
+
`trash-list` → `{items}` · `restore {id}`. See "Media management".
|
|
2200
2260
|
- `GET /api/library?dir=sfx|elements|svg|fonts|presets|templates` — list library assets
|
|
2201
2261
|
- `GET /api/presets` · `GET /api/templates` — the saved presets / templates, validated (bad files skipped);
|
|
2202
2262
|
`POST /api/presets {preset}` · `POST /api/templates {template}` — validate one and save it as
|
|
@@ -2513,6 +2573,16 @@ cannot produce a one-frame black file.
|
|
|
2513
2573
|
3. IN–OUT, OUT only → from the start to `outPoint`
|
|
2514
2574
|
4. IN–OUT, both → the range between them
|
|
2515
2575
|
|
|
2576
|
+
**Save as** at the top of the dialog names the file. It starts as the name the
|
|
2577
|
+
export would get (the preset's filename pattern, `{project}_…`); type over it
|
|
2578
|
+
and that name is used for this export (blank goes back to the default). Fast and
|
|
2579
|
+
WebCodecs exports add a number when the name is taken in `exports/`; a Realtime
|
|
2580
|
+
export is a browser download, which the browser names. Enter renders. **Don't ask
|
|
2581
|
+
again** beside the buttons makes the Export button render straight away with the
|
|
2582
|
+
last engine and preset under the default name (the dialog opens instead when one
|
|
2583
|
+
of them is gone or the range is empty); **Settings → Ask before exporting** brings the
|
|
2584
|
+
dialog back (stored in this browser).
|
|
2585
|
+
|
|
2516
2586
|
**Agents export with `fablecut_export`** (or `POST /api/export/request`). It is
|
|
2517
2587
|
the same Fast export as the button — same compositor, audio mix and encoding
|
|
2518
2588
|
profile — so it needs ffmpeg on PATH. The job goes to an open editor tab (the
|
|
@@ -2528,6 +2598,11 @@ agent last wrote, so an export right after a patch includes that patch.
|
|
|
2528
2598
|
settings (`{preset:"youtube", delivery:{fps:60, video:{rate:"vbr", bitrate:16000}}}`).
|
|
2529
2599
|
`profile:"hq"` picks a raw encoding profile instead. With neither, `project.delivery`
|
|
2530
2600
|
is used when set, else `project.encodeProfile`, else the server's default profile.
|
|
2601
|
+
- `name:"salon-promo-15s"` names the file (no extension), the answer the Export dialog asks
|
|
2602
|
+
the user for. Without it the preset's pattern starts with the project's name, so name the
|
|
2603
|
+
file after what it is whenever the project holds more than this one video. Only the name
|
|
2604
|
+
changes — the preset, delivery or encoding profile the export uses stays the same; not with
|
|
2605
|
+
`outputs` (each output has its own `filename`).
|
|
2531
2606
|
- `outputs:true` exports the project's checked batch outputs; `outputs:[{preset:"master"},
|
|
2532
2607
|
{preset:"youtube"}, {preset:"instagram-reels"}, …]` exports a list. One render per
|
|
2533
2608
|
frame rate; the reply lists every file (or why one failed).
|
package/README.md
CHANGED
|
@@ -32,13 +32,6 @@ Zero npm dependencies. One `node server.js`. That's it.
|
|
|
32
32
|
|
|
33
33
|

|
|
34
34
|
|
|
35
|
-
## Sponsors
|
|
36
|
-
|
|
37
|
-
<a href="https://fluxionai.space/register?source=github&campaign=github-sidrune-fablecut&promo=SDRFABLECUT" target="_blank" rel="noopener noreferrer sponsored">
|
|
38
|
-
<img src="docs/sponsors/sidrune-ai-banner.png" alt="Sidrune AI — one API for GPT, Claude and other leading AI models" width="640">
|
|
39
|
-
</a>
|
|
40
|
-
|
|
41
|
-
**[Sidrune AI](https://fluxionai.space/register?source=github&campaign=github-sidrune-fablecut&promo=SDRFABLECUT)** — One API for GPT, Claude, and other leading AI models. Sign up and get $3 in API credit.
|
|
42
35
|
|
|
43
36
|
## Why it's interesting
|
|
44
37
|
|
|
@@ -65,6 +58,9 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
65
58
|
- Video + audio tracks (default 3+4; add more with **+V** / **+A** in the track
|
|
66
59
|
header; right-click an empty header → **Remove track**), drag/trim/split/snap,
|
|
67
60
|
undo/redo
|
|
61
|
+
- **Search** (**Ctrl/Cmd+K**, or the magnifier in the top bar) — one box that finds
|
|
62
|
+
toolbar actions, panels, Settings, the selected clip's Inspector sections, media,
|
|
63
|
+
clips and keyboard shortcuts; Enter runs the one you picked
|
|
68
64
|
- **Settings** (cog in the top bar) — optional prefs stored in this browser via
|
|
69
65
|
`localStorage`. Enable **Link timeline and Project bin selection** so picking a
|
|
70
66
|
timeline clip highlights its media in Project, and clicking a Project item
|
|
@@ -296,9 +292,10 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
296
292
|
|
|
297
293
|
**Text**
|
|
298
294
|
|
|
299
|
-
- **Title styles** — one-tap cohesive looks (Impact, Elegant, Kinetic cut, Neon,
|
|
300
|
-
|
|
301
|
-
automatically instead of defaulting to one flat style
|
|
295
|
+
- **Title styles** — twenty one-tap cohesive looks (Impact, Elegant, Kinetic cut, Neon,
|
|
296
|
+
Luxury, Comic, Typewriter, Sticker, Cinematic, and more); new titles vary the font,
|
|
297
|
+
placement and animation automatically instead of defaulting to one flat style. The
|
|
298
|
+
font picker groups about sixty Google fonts by look, and any other loads by name
|
|
302
299
|
- Kinetic captions: typewriter, word-pop, word-slide, karaoke, **letter-pop**,
|
|
303
300
|
**wave**, **bounce**, **shake**, **clip-reveal**, **zoom-in**, **font-cut**
|
|
304
301
|
(rhythmic typeface cuts), **rise-mask**
|
|
@@ -382,8 +379,12 @@ big operation (cutting silences, snapping to the beat, reframing), and every
|
|
|
382
379
|
- Realtime MediaRecorder fallback when ffmpeg or WebCodecs isn't available
|
|
383
380
|
- Agents export too: `fablecut_export` runs the Fast export in the open editor,
|
|
384
381
|
or in a headless Chrome / Edge the server starts, and returns the file path;
|
|
385
|
-
`preset` and `delivery` pick and adjust a delivery preset; `
|
|
386
|
-
|
|
382
|
+
`preset` and `delivery` pick and adjust a delivery preset; `name` names the
|
|
383
|
+
file (only the name changes; not with `outputs`); `outputs` makes several
|
|
384
|
+
files in one go
|
|
385
|
+
- **Save as** at the top of the Export dialog names the file; **Don't ask again**
|
|
386
|
+
makes the Export button render straight away with the last settings
|
|
387
|
+
(Settings → Ask before exporting brings the dialog back)
|
|
387
388
|
- Export **Range** dropdown: Entire timeline or IN–OUT (defaults to IN–OUT when
|
|
388
389
|
markers are set). Effective IN/OUT export bounds are clamped to `projDur()`.
|
|
389
390
|
|
|
@@ -401,7 +402,7 @@ cd FableCut
|
|
|
401
402
|
node server.js # → http://localhost:7777
|
|
402
403
|
```
|
|
403
404
|
|
|
404
|
-
Requirements: **Node
|
|
405
|
+
Requirements: **Node 22+** and a Chromium-based browser. **ffmpeg on PATH** is
|
|
405
406
|
optional but recommended (fast export + upload remuxing). AI background
|
|
406
407
|
removal fetches its model from a CDN on first use.
|
|
407
408
|
|
|
@@ -424,7 +425,7 @@ you choose. Leave it unset and everything stays in the repo, exactly as before.
|
|
|
424
425
|
|
|
425
426
|
That registers the MCP server for you and adds three skills — `edit-video`,
|
|
426
427
|
`remake-reel` and `motion-graphics`. Your timeline and footage live in the plugin's own data
|
|
427
|
-
directory, so an update never touches them. Node
|
|
428
|
+
directory, so an update never touches them. Node 22+ and (optionally) ffmpeg
|
|
428
429
|
still need to be on your machine.
|
|
429
430
|
|
|
430
431
|
## Driving it with an AI agent
|
|
@@ -486,11 +487,11 @@ Three equivalent control surfaces:
|
|
|
486
487
|
|
|
487
488
|
The server is intentionally client-neutral. It speaks MCP over stdio and
|
|
488
489
|
does not require Claude-specific environment variables. With a clone, keep
|
|
489
|
-
the path absolute. Node
|
|
490
|
+
the path absolute. Node 22 or newer either way.
|
|
490
491
|
|
|
491
492
|
Tools: `fablecut_status` (auto-starts the editor), `fablecut_docs`,
|
|
492
493
|
`fablecut_get_project`, `fablecut_set_project`, `fablecut_patch_project`,
|
|
493
|
-
`fablecut_import_media`, `fablecut_analyze_reference`, `fablecut_frame`,
|
|
494
|
+
`fablecut_import_media`, `fablecut_files`, `fablecut_analyze_reference`, `fablecut_frame`,
|
|
494
495
|
`fablecut_encode_profiles`, `fablecut_normalize_audio`, `fablecut_auto_duck`,
|
|
495
496
|
`fablecut_denoise`, `fablecut_silence`, `fablecut_beats`, `fablecut_reframe`, `fablecut_highlights`, `fablecut_transcribe`, `fablecut_captions`, `fablecut_export`, `fablecut_scopes`, `fablecut_track`.
|
|
496
497
|
|