fframes: Video vibe coding framework that is actually fast.
What problem it solves
Writing a video can require thousands of lines of code, which makes iteration difficult. fframes is designed to support quick iteration, real-time preview, and efficient rendering for AI agents and their users.
Key features
Code-based video composition — Each frame is represented as an SVG tree returned by a Rust function and composed with the `svgr!` macro.
Source: README, svgr-macro
Timeline-driven animation — Video implementations define their dimensions, frame rate, duration, audio, and frame rendering behavior through Rust code.
Source: README, examples/hello-world
Interactive native preview — The native preview provides a filmstrip for scrubbing, scene markers, frame stepping, playback controls, and an expandable timeline.
Source: README, fframes-native-player
Project scaffolding and templates — The CLI can create a video project with single-scene or multi-scene templates, several aspect ratios, configurable frame rate, and a selectable backend.
Source: README, cargo-fframes
Multiple rendering backends — The project includes renderer crates for CPU, Skia, and other rendering paths, with examples covering SVG, 3D, and GPU shader composition.
Source: fframes-skia-renderer, fframes-lyon-renderer, README
Quick start
Copied verbatim from the project's README.
cargo install --locked cargo-fframes
cargo fframes new my-video
cd my-video && cargo run --release -- previewimpl Video for HelloWorldVideo<'_> {
const FPS: usize = 30;
const WIDTH: usize = 1920;
const HEIGHT: usize = 1080;
fn duration(&self) -> fframes::Duration<'_> {
fframes::Duration::Seconds(30.)
}
fn audio(&self) -> AudioMap<'_> {
AudioMap::none()
}
fn render_frame(&self, frame: Frame, ctx: &FFramesContext) -> fframes::Svgr<'_> {
fframes::svgr!(
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 1920 1080"
width={ctx.current_video_size.width}
height={ctx.current_video_size.height}
>
<rect
x="400"
y="400"
width="200"
height="200"
fill="blue"
transform={frame.animate(fframes::timeline!(
at 0., animate Transform::translate(0, 0) => Transform::translate(200, 480), Easing::Linear,
at 2. => 6.0, animate Transform::translate(200, 480) => Transform::translate(750, -400), Easing::Linear,
at 6.0 => 10.0, animate Transform::translate(750, -400) => Transform::translate(1310, 480), Easing::Linear,
))}
/>
<text
x="100"
y="440"
font-family="JetBrains Mono"
font-size="74"
font-weight="500"
fill="#3b5563"
>
{format!("This frame index: {}, second: {:.2}", frame.index, frame.seconds())}
</text>
</svg>
)
}
}Who it may suit
This may suit developers who want to create videos programmatically in Rust, especially those using AI agents to iterate on motion graphics.
Topics to discuss
Which types of video workflows would benefit most from composing frames as SVG trees?
What preview and timeline controls are most useful when iterating on code-generated videos?
How should codec, platform, and backend requirements be documented for new contributors?
Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.
Read the original README https://github.com/dmtrKovalenko/fframes#readme
ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.
Comments
…