Revideo — Code-Driven Video Editor
Create and edit videos with code. MIT-licensed alternative to Remotion with API-driven rendering and dynamic inputs. Forked from Motion Canvas.
What it is
Revideo is an open-source framework for creating videos programmatically using TypeScript. It is a fork of Motion Canvas, designed for developers who want to define scenes, animations, and transitions in code rather than in a GUI timeline editor. Revideo supports API-driven rendering, dynamic inputs, and a local preview server.
This tool targets developers and content teams who produce videos at scale: product demos, explainer animations, data visualizations, or automated social media clips. If your video content follows repeatable patterns and needs dynamic data, Revideo eliminates manual editing.
How it saves time or tokens
This workflow provides the project scaffold and startup commands. Instead of configuring a video rendering pipeline from scratch, you run npm create revideo@latest and get a working project with a local preview server at http://localhost:9000. Changes to your code are reflected in real-time in the preview, and rendering to video files is a single API call.
How to use
- Create a new Revideo project:
npm create revideo@latest
cd my-project
npm start
- Open
http://localhost:9000to see the visual preview of your project.
- Edit scenes in TypeScript. Each scene defines a sequence of animations:
import { makeScene2D, Txt, all } from '@revideo/2d';
import { createRef, waitFor } from '@revideo/core';
export default makeScene2D(function* (view) {
const title = createRef<Txt>();
view.add(<Txt ref={title} text='Hello Revideo' fontSize={72} />);
yield* all(
title().opacity(1, 0.5),
title().y(-100, 0.8)
);
yield* waitFor(1);
});
- Render the final video via the CLI or API.
Example
// Dynamic data-driven scene
import { makeScene2D, Rect, Txt } from '@revideo/2d';
export default makeScene2D(function* (view) {
const data = [40, 70, 55, 90, 65];
const bars = data.map((val, i) =>
<Rect
x={-200 + i * 100}
y={200 - val}
width={60}
height={val * 2}
fill='#3b82f6'
/>
);
view.add(...bars);
for (const bar of bars) {
yield* bar.opacity(0).opacity(1, 0.3);
}
});
Related on TokRepo
- Video tools -- Other video creation and editing tools for developers
- Automation tools -- Automate repetitive content production workflows
Common pitfalls
- Revideo uses generator functions (function) for animation sequencing. Forgetting the yield keyword causes animations to run instantly instead of being sequenced.
- The local preview server requires Node.js 18+. Older Node versions cause startup errors.
- Rendering performance depends on scene complexity. Scenes with many animated elements benefit from reducing resolution during preview and only rendering at full resolution for final output.
Frequently Asked Questions
Both let you create videos with code. Revideo is MIT-licensed and forked from Motion Canvas, using generator functions for animation sequencing. Remotion uses React components and is licensed under the Remotion License. Choose based on your preferred programming model and licensing needs.
Revideo renders to MP4 by default using FFmpeg. It supports configurable resolution, frame rate, and codec settings. You need FFmpeg installed on your system for rendering.
Yes. Revideo's API-driven rendering accepts dynamic inputs, so you can feed data from a database or API to generate unique videos programmatically. This is ideal for personalized content or data visualization videos at scale.
Yes. You can add audio tracks to your scenes and synchronize them with visual animations. Audio files are loaded as assets and timed using the same generator-based sequencing system.
Revideo is a fork of Motion Canvas with added features for API-driven rendering and production use cases. Motion Canvas focuses on educational and explanatory animations, while Revideo extends it for programmatic video generation workflows.
Citations (3)
- Revideo GitHub— Revideo is a fork of Motion Canvas for programmatic video creation
- Revideo Documentation— MIT-licensed open-source video framework
- Revideo Rendering API— API-driven rendering with dynamic inputs
Related on TokRepo
Source & Thanks
Created by redotvideo. Licensed under MIT. revideo — ⭐ 3,700+
Discussion
Related Assets
Moodle — Open-Source Learning Management System
The most widely used open-source learning platform, providing course management, assessments, and collaboration tools for educators and organizations worldwide.
Sylius — Headless E-Commerce Framework on Symfony
An open-source headless e-commerce platform built on Symfony and API Platform, designed for developers who need a customizable and API-first commerce solution.
Akaunting — Free Self-Hosted Accounting Software
A free, open-source online accounting application built on Laravel for small businesses and freelancers to manage invoices, expenses, and financial reports.