CutCraft
Open-source React library that turns a TSX file of words and shots into videos, with a browser player, timeline editing and CLI export to MP4.
At a Glance
Free and open source under the MIT licence, with no paid tier and no watermark.
Engagement
Available On
Alternatives
Listed Nov 2026
About CutCraft
CutCraft is an open-source (MIT) React library from prefix-tree for making videos as code and building editors around them. A video is a single TSX file covering multitrack composition, captions, audio, transitions, effects and custom graphics. An AI agent can write the file, and a person can preview and adjust it on a timeline. It exports to MP4, WebM and stills.
What It Is
CutCraft treats a video as a React file. Clips, titles, captions, audio and effects are elements inside a Composition and its Tracks. The project's rationale is that LLMs write code well and math badly, so a model writes a file of words and shots and CutCraft handles the timing arithmetic, plays it in the browser, edits it and exports it.
The repository is split into packages: a CLI (cutcraft), @cutcraft/kit for elements, timing and editor actions, @cutcraft/player for the browser player and React <Player>, @cutcraft/render for export as a library, and @cutcraft/graphics for three.js and Motion on the video's clock.
How Editing Works
Clips can be cut on transcript words and shots (for example word:12 to word:23.end) instead of seconds. Dragging or trimming in the timeline is an undoable action that is written back to the source file as the smallest text change. Titles and overlays anchor to words, so they stay in place when cuts move.
Effects, Captions and Free Code
- Captions follow the words, with karaoke, word-by-word or typewriter animation, or import from SRT, VTT or Whisper.
- The site lists 45 effects and transitions, such as exposure, white balance, curves, LUTs, color keying, glow, iris and film burn, run as shaders in preview and export. Custom effects can be written in GLSL.
- Ready-made components include lower thirds, callouts and counters.
- Any React, CSS or WebGL can go in a Layer, and three.js and Motion run on the video's clock, so scrubbing and export show the exact frame.
Agent Workflow and Checks
The CLI can inspect a video file (npx cutcraft inspect) to print the timeline, and produce a contact sheet of key frames (npx cutcraft look) plus layout checks, so a model can verify a cut without watching it. An Agent Skill plugin is available for coding agents. Setup is npm install cutcraft @cutcraft/kit react zod, and the README lists Node 22.19 or later.
Community Discussions
Be the first to start a conversation about CutCraft
Share your experience with CutCraft, ask questions, or help others learn from your insights.
Pricing
Open Source (MIT)
Free and open source under the MIT licence, with no paid tier and no watermark.
- MIT license
- No watermark
- Exports MP4, WebM and stills
- Browser player and CLI export
- Multitrack composition, captions, audio, transitions and effects
Capabilities
Key Features
- Video as a single TSX/React file
- Multitrack composition
- Cuts and anchors on words and shots
- Captions with karaoke, word-by-word and typewriter animation
- SRT, VTT and Whisper caption import
- 45 effects and transitions
- Shader-based colour grading and keying with custom GLSL
- three.js and Motion graphics on the video clock
- Browser player and React Player component
- Undoable timeline edits written back to source
- CLI export to MP4, WebM and stills
- Timeline inspection, contact sheets and layout checks
- Agent Skill for coding agents
