
CutCraft
Make videos in React code, with a timeline that writes back to the source
At a glance
CutCraft is an MIT-licensed React library for making videos from TSX code, with a browser player and a command line export.
- MITOpen source license
- MP4Command line export
- Code-first videos, with a timeline that writes edits back to the source
- Timing by words and shots, so cuts follow the speech
- Checks a cut through inspection and contact sheets, without playing it
Works with Reactthree.jsMotionNode.jsnpm
- Pricing
- Open source
- Platforms
- CLI
- Category
- Developer Tools
- Website
- github.com/prefix-tree
- Last checked

What it does
CutCraft is an open-source React library for making videos. A video is a TSX file that lists its tracks, clips, captions and graphics, so the same source can be previewed in a browser player and exported from the command line. It is MIT licensed, with no paid tier and no watermark.
Timing is set by words and shots instead of seconds. A title can appear on the word that names a feature, and a clip can start at a given shot of the source. Graphics from three.js or Motion run on the video's clock, so scrubbing and export show the same frame. Editing in a timeline changes the file itself, and undo and redo work on the source.
How it works
- Write the video as a TSX file with tracks, clips, captions, effects and transitions.
- Preview it in the browser player, or run the command line tool to export an MP4.
- Check the cut with contact sheets and layout checks, without playing the whole file.
Good to know
- Videos are written as code, so the library suits developers and people who build editors on top of it.
- Running it needs Node.js 22.19 or later, and a React project to build from.
- A coding agent can write and check a cut, because the project also ships an Agent Skill.
Who it's for
React developers who make videos or build video editors in code
Typical uses
- Turn a product launch or data story into a short video from code
- Build a video editor with timeline editing on top of a code source
- Let a coding agent write and check a video cut
Features
- Multitrack video composed as React code in TSX files
- Captions, audio, transitions and effects on one timeline
- Timing by words and shots instead of seconds
- Three.js and Motion graphics that run on the video's clock
- Browser player and a command line export to MP4
- Contact sheets and layout checks to review a cut
- Timeline edits that write back to the source with undo and redo
Pricing
Open source
Free and MIT licensed, with no paid tier and no watermark. Running it needs Node.js 22.19 or later.
Limitations
- Videos are written as React and TSX code, so non-developers need an editor built on top
- Needs Node.js 22.19 or later
FAQ
Is CutCraft free?
Yes. It is MIT licensed, with no paid tier and no watermark.
Can I export an MP4 from the command line?
Yes. The command line tool exports a TSX video file to an MP4 with an output flag.
What do I need to install it?
Node.js 22.19 or later. You install the cutcraft package from npm with the kit and React packages.