Show HN: CutCraft – an MIT library for making and editing videos in TSX github.c...

@show

Show HN: CutCraft – an MIT library for making and editing videos in TSX github.com · 3 points · 0 comments · HN thread

TL;DR CutCraft is an MIT-licensed open-source library and CLI for describing, previewing, editing and exporting videos as TSX files. The file names timeline positions by meaning (a word of the transcript, a camera shot) so that an LLM or a person can write it without doing frame arithmetic, and the library resolves the timing and renders through a player run in headless Chrome. The Show HN post has 3 points and no comments yet.

  • Videos are written as React/TSX files with Composition, Track, Clip, Title, Transition, Captions, Audio and Layer elements, and in/out points can reference words (word:12) or shots (shot:1).
  • The timeline uses literal element ids so that an editor gesture changes one value in the file; the project says 119 editor actions with undo write edits back as the smallest text change.
  • Export runs the same player in headless Chrome frame by frame, producing MP4 (H.264 or AV1), WebM, MP3, WAV, PNG or JPEG.
  • Built-in tools include cutcraft inspect (prints the timeline without starting a browser), cutcraft look (contact sheet of frames), a lint, and a layout check for safe zones and overlays covering captions or the subject.
  • Three.js and Motion scenes run on the video clock via and , and arbitrary React, CSS or canvas can go in a .
  • The authors chose MIT and wrote it from scratch to avoid Remotion's paid company tier and Diffusion Studio's watermark; Mediabunny (MPL-2.0) is a dependency.
  • Listed status: editing, transitions, keyframes and export are marked as working; twelve transitions, thirty-three effects and nine title presets are marked partial; a faster GPU-less export and a footage-in-code hook are planned.

Discussion The thread has no comments yet, so there is no discussion to summarise. The post has 3 points and has not drawn any reaction on Hacker News at the time of this digest.

#videoEditing #typescript #react #llm #opensource #showHN