fframes: videos written as Rust functions that return SVG, with a CLI built for agents that cannot watch them
programmatic video rendering framework that is actually fast
At a glance
- What is it?
- A Rust framework where each frame is an SVG tree built with the svgr! macro and drawn by Skia on the GPU. Its inspect, strip and onion commands exist so a coding agent can check video it can neither see nor hear.
- Who is it for?
- Choose fframes if you write Rust, want video as code, and are happy to let an agent or yourself produce verbose frame functions. Avoid it if you need a timeline editor for non-programmers or cannot install ffmpeg libraries and a Rust toolchain.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 11 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- dmtrKovalenko/fframes3,148 ★ · +525
| Repository | 2026-10-11 | 2026-11-25 |
|---|---|---|
| dmtrKovalenko/fframes | 2.6k | 3.1k |
525 Stars in the last 45 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Every frame is a Rust function that returns an svgr! tree
A video in fframes is a struct that implements the Video trait. The hello-world example sets `const FPS: usize = 30`, `const WIDTH: usize = 1920` and `const HEIGHT: usize = 1080`, returns a duration from `duration()`, an audio map from `audio()`, and builds each frame in `render_frame(&self, frame: Frame, ctx: &FFramesContext)`. Inside, the `fframes::svgr!` macro takes an `<svg>` element whose attributes can hold Rust expressions in braces, such as `width={ctx.current_video_size.width}`.
The project states plainly that its API is explicit and verbose and that this is why it stayed unreleased for years. That verbosity is the price of having a typed, compiled description of every frame. Hand-writing it for a thirty second clip is tedious, which explains why the project leans on agents to do the typing.
Static parts of a frame are hashed at compile time and drawn once
Speed claims in the project come as a list of mechanisms. Parts of a frame without `{expressions}` are hashed at compile time, so the renderers draw them once and reuse them. The Skia backend draws on the GPU, with Metal on macOS and Vulkan on Linux and Windows, and the project puts it at about 10x faster than the built-in CPU backend. fframes links ffmpeg's libav libraries rather than piping frames to a separate ffmpeg process.
When SVG cannot express an effect, SkSL or pasted Shadertoy GLSL runs as a layer on any frame. The repository includes shader-mode, shaders, svg-in-3d and neon-triangle examples for this, and a fframes-three-d crate sits in the workspace. The only measured result the project gives for a whole video is the launch clip: 128 seconds, vibed in 48 minutes and rendered in 36 seconds.
The CLI exists because an agent cannot play a soundtrack
The project is built around a limitation of coding agents: they cannot play a video or listen to audio. So every generated project ships a command line that converts the video into PNGs and text, and it runs as `cargo run --release -- <command>` inside the project.
`timeline` lists scenes with frame and second ranges plus every audio track and its mix settings. `inspect` checks a frame every 0.25 seconds and the first and last frame of every scene without rendering pixels. It reports missing fonts or images, text cut off by the canvas, invalid SVG and panics, each tied to a time and a scene, and it exits with code 2 on errors. `strip <scene> -n 12` writes `strip.png`, a labelled contact sheet. `onion` blends frames to show the path and easing of a movement. `frame <scene>@end,<scene>@50%` writes full-size PNGs into `frames/`.
Add `--json` to any of them when a script is reading the output. Times accept `120` for a frame, `3.2s`, `50%`, `<scene>@1.2s` and ranges such as `<scene>@0..<scene>@1s`.
Audio gets a loudness report, not a listening pass
For sound, `audio analyze` reports loudness in LUFS, true peak, clipping and silence per scene. Adding `--waveform w.png` also writes a waveform image with scene lines and cue ticks drawn on it.
This is a numeric check. It tells an agent that a scene clips or goes silent. It cannot say whether a track suits the picture or whether a cue lands where it feels right, and nothing in the project claims otherwise. The fframes-intro example places everything on the beat grid of its soundtrack, which is one way to make timing checkable by code, but the choice of music and mix remains a human decision. Plan to listen to the render yourself before shipping it.
Humans get preview, an editor in WebAssembly and a draft render
The same project has a path for the person at the keyboard. `preview` opens a GPU window with sound where you can play, pause, seek and step frame by frame. The editor runs the video compiled to WebAssembly in the browser with a timeline to scrub. `render` writes the final file, and `render --draft` encodes one scene at half size in about a second.
From the repository root, `just run podcast` opens an example in the editor with live reload, and `just render podcast` writes it to a file. The justfile shows what that involves: `run` starts a `cargo watch` that rebuilds the example's editor-bridge with `wasm-pack build --target web --dev`, runs `pnpm dev` for the example's editor, and starts the main editor watcher. A game of three background jobs is the cost of live reload, and the justfile's trap kills them all when one exits.
Setup pulls in Rust, pnpm and ffmpeg before the first frame
The README's agent route is one command:
npx skills add https://fframes.studioAfter that the skill walks the agent from an empty folder to a rendered `.mp4`: install fframes, create a project, design the motion, place the sound and check the result. The skill's guides are plain Markdown in the repository: the workflow in skills/fframes-video/SKILL.md, an API cheat sheet, and notes on design and sound. Full API docs are on docs.rs/fframes.
Working on the repository itself is heavier. The `init-repo` recipe in the justfile checks `ffmpeg -version`, `rustc --version` and `pnpm --version`, then runs `cargo build`, `pnpm install` and a ReScript build and bundle inside fframes-editor. The `play` recipe opens the output with vlc, iina, mpv or ffplay, whichever it finds first, and exits with a message if none is installed. Windows is listed as a Vulkan platform, but the project does not describe a Windows setup path.
A young crate with fast releases and a workspace that carries unfinished parts
The repository is MIT licensed, not archived, and was last pushed on 2026-10-25. Releases are close together: v1.1.0 on 2026-09-30, v1.2.0 on 2026-10-03 and v1.3.0 on 2026-10-20. Quick cadence suggests the API is still moving, so pin the version you start with.
The root Cargo.toml has a comment, "maybe clean this up?", above the commented-out `fframes-lyon-renderer` member, and the crate directory is still in the tree. The `examples/marketing/editor/editor-bridge` member appears twice in the list. There are about twenty examples, from a podcast and a TikTok format to a lottie and an anamorphic video. Several are the authors' own announce and marketing videos, so they show what is possible but not what a first project looks like. The smallest starting point is examples/hello-world.
Editorial conclusion
Choose fframes if you write Rust, want video as code, and are happy to let an agent or yourself produce verbose frame functions. Avoid it if you need a timeline editor for non-programmers or cannot install ffmpeg libraries and a Rust toolchain. Before committing, run `just run podcast` on your own machine, because the GPU backends are Metal on macOS and Vulkan elsewhere and your hardware decides how fast it feels.
Frequently asked questions
What does fframes render video with?
Each frame is an SVG tree written with the svgr! macro in Rust, drawn by the Skia backend on the GPU. That means Metal on macOS and Vulkan on Linux and Windows.
How does a coding agent check an fframes video?
It runs commands such as inspect, strip, onion, frame and audio analyze, which turn the video into PNGs and text. inspect exits with code 2 when it finds errors.
Is fframes free to use?
Yes, it is released under the MIT license. The crate is on crates.io and the API docs are on docs.rs/fframes.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/dmtrkovalenko-fframes)Star history chart for your README
[](https://hysenlabs.com/projects/dmtrkovalenko-fframes)Was this useful?