Skip to content
GUIDES#Remotion#video as code#React video

Remotion: Create Videos with React Code, the Complete Guide (2026)

Instead of dragging clips on a timeline, you code the video as React components and render to MP4. Remotion is the framework behind Spotify Wrapped, and as of 2026 Claude Code can write Remotion video components for you.

Yaakov Tzedek
Yaakov Tzedek · AI expert·11 min read
Remotion: creating videos with React code, rendered to MP4
THE BOTTOM LINE
  • What it is: A framework where you define a video as React components, preview it in Remotion Studio, and render it to an MP4 file.
  • Who it's for: React developers, product and technical marketing teams, and AI agent workflows (Claude Code, Cursor).
  • What it costs: Free for individuals and companies with up to 3 employees. Companies with 4 or more employees need a company license (around $25 per month per seat).
51K+GitHub stars
Free for individuals / up to 3 employeesLicense
React + Chrome + FFmpegRender engine
DID YOU KNOW?

Spotify Wrapped and GitHub Unwrapped, the personalized year-in-review videos delivered to millions of users, are both produced with Remotion. In January 2026, Remotion launched Agent Skills, letting Claude Code write your video components from natural language instructions.

Remotion is an open-source framework for creating video with React code. Instead of dragging clips on a timeline, you program the video and render it to MP4. It's the framework behind Spotify Wrapped, and as of 2026 Claude Code can write Remotion video for you. This guide covers what it is, how it works, installation, rendering, pricing, and a comparison with HyperFrames.

In short (TL;DR)

  • What it is: A framework where you define a video as React components, preview it in Remotion Studio, and render it to an MP4 file.
  • Who it's for: React developers, product and technical marketing teams, and AI agent workflows (Claude Code, Cursor).
  • What it costs: Free for individuals and companies with up to 3 employees. Companies with 4 or more employees need a company license (around $25 per month per seat).
  • How to get started: npx create-video@latest, open the Studio in your browser, and render with npx remotion render.

What is Remotion?

Remotion is an open-source framework for creating video and animated graphics with React. As of 2026 it is on version 4 and has accumulated over 51,000 stars on GitHub (GitHub). It was created by Jonny Burger from Zurich, Switzerland.

The idea is called "Video as Code": every frame in a video is a render of a React component at a specific point in time. You control every pixel with the same tools you use to build a website: JSX, CSS, data, and APIs.

Why React for video? Because it enables data-driven video: the same component template can produce thousands of personalized videos, each with a different name, different numbers, or a different language. That is exactly how Spotify Wrapped and GitHub Unwrapped are built.

How does Remotion work?

Remotion plays your React component across a timeline of frames and captures each frame individually. Three core concepts drive the entire system:

  1. Composition: The definition of the video, which component, how many frames, what fps, and what resolution.
  2. useCurrentFrame(): A hook that returns the current frame number. All animation is derived from it.
  3. interpolate() and spring(): Functions that convert the frame number into an animation value (opacity, position, size).

How do you define a video (Composition)?

You define the video once in Root, including duration, frame rate, and dimensions:

// Root.tsx
import { Composition } from "remotion";
import { MyVideo } from "./MyVideo";

export const RemotionRoot = () => (
  <Composition
    id="MyVideo"
    component={MyVideo}
    durationInFrames={150}  // 5 seconds at 30fps
    fps={30}
    width={1920}
    height={1080}
  />
);

How do you animate by frame?

Animation is a pure function of the current frame, which makes rendering deterministic: the same frame always looks the same. Here is a title that fades in over the first 30 frames:

import { useCurrentFrame, interpolate, AbsoluteFill } from "remotion";

export const MyVideo = () => {
  const frame = useCurrentFrame();
  const opacity = interpolate(frame, [0, 30], [0, 1], {
    extrapolateRight: "clamp",
  });

  return (
    <AbsoluteFill style={{ backgroundColor: "#0b0d12", justifyContent: "center", alignItems: "center" }}>
      <h1 style={{ opacity, color: "white", fontSize: 90 }}>Hello from Remotion</h1>
    </AbsoluteFill>
  );
};

Deterministic rendering: Because each frame is computed from the frame number alone (not from a real-time clock), there are no dropped frames, and rendering is well-suited for continuous integration (CI) and data-driven video at scale.

How do you install and get started?

Prerequisites: Node.js installed (FFmpeg ships built-in with Remotion). Three commands take you from nothing to an MP4:

npx create-video@latest      # creates a new Remotion project from a template
npm run dev                  # opens Remotion Studio, a live preview in the browser
npx remotion render MyVideo out.mp4   # renders the composition to an MP4 file

Remotion Studio is the preview environment: a timeline, a player, and real-time props editing, all running in the browser with live reload as you change code.

What are the key core concepts?

A quick-reference table of the API you will encounter most:

ConceptWhat it does
<Composition>Defines a video: component, duration, fps, and dimensions
useCurrentFrame()Returns the current frame number, the foundation of all animation
interpolate()Maps a frame range to a value range (linear)
spring()A physics-based natural spring animation
<Sequence>Schedules a component to appear from a given frame for a given duration
<AbsoluteFill>A full-screen layer for building up layered compositions
<Audio> / <Video> / <Img>Embeds media synchronized to the timeline
staticFile()Loads an asset from the public folder in a render-safe way

How do Remotion and Claude Code work together?

Since January 2026 you can hand off video writing to an AI agent. Remotion released official Agent Skills for Claude Code (GitHub), so you can describe a video in natural language and the agent writes the React components, wires up the animations, and runs the render.

Example prompt: "Using the Remotion skill, create a 6-second product intro: dark background, the logo enters with a spring, and the title fades in after one second."

This is the most interesting intersection: someone who does not write React fluently can still produce programmatic video, because Claude Code translates the request into valid code. These are exactly the kinds of workflows I teach to businesses, from data collection to producing deliverables.

Is Remotion free? What does it cost?

Remotion is free for individuals, companies with up to 3 employees, and non-profit organizations. Companies with 4 or more employees are required to purchase a company license. This is per the official license terms.

As of 2026, the pricing for companies is around $25 per month per seat, with no minimum, a model that founder Jonny Burger introduced to open Remotion up to anyone who wants it (Remotion Pro).

  • Free: An individual, a company with up to 3 people, a non-profit, or evaluation before commercial use.
  • Company license required: A for-profit company with 4 or more people (freelancers and subcontractors count toward the total).
  • Allowed: Creating videos and images (including commercially) and modifying the code for your own needs.
  • Not allowed: Selling, renting, or distributing your own derivative version of Remotion.

Remotion vs. HyperFrames vs. a standard video editor

Three different approaches to video production. The choice depends on who is doing the work: a person writing React, an AI agent, or a manual editor.

AspectRemotionHyperFramesVideo editor (Premiere/CapCut)
Creation modelReact componentsHTML with data attributesDragging clips on a timeline
Build stepRequiredNone-
AI agent compatibilityHigh (via Agent Skills)Very high (LLM "speaks" HTML)Low
Data-driven videoExcellent (React props)GoodManual only
Rendering engineHeadless Chrome + FFmpegHeadless Chrome + FFmpegLocal / GPU
Maturity and ecosystemMature (51K+ stars, Lambda, Player)New and simpleVery mature

For anyone already working in React who wants full control and a rich ecosystem: Remotion. For anyone who wants the simplest path for an AI agent: HyperFrames. For anyone who prefers a visual interface: a classic editor.

Who is Remotion right for, and what are the use cases?

It is right for anyone comfortable with code (or with AI tools that write code), who wants to produce video in a programmatic, repeatable, scalable way.

  • Data-driven video at scale: Personalized year-in-review summaries (like Spotify Wrapped), achievement cards, animated reports. Want to build one? There is a separate guide: How to build your own Spotify Wrapped with Remotion.
  • Marketing automation: Generating hundreds of versions of the same video across languages, products, or audiences from a single template.
  • Dynamic embedding on a website: A live Remotion player on the client side via @remotion/player, changing in response to user input.
  • Less suited for: One-off visual editing, or anyone not comfortable with React and the command line (in which case it is better to let an AI write it, or to choose a standard editor).

How do you render at scale and embed on a website?

Two dedicated packages address two advanced needs:

  • Remotion Lambda: Distributed, parallel rendering on AWS Lambda. Instead of rendering a long video on a single machine, it splits the work across many functions running in parallel, fast and cost-effective at scale.
  • @remotion/player: A <Player> component that plays the composition inside a React application on the user's side, interactively and in real time, without pre-rendering to MP4. I covered this in a separate guide: Remotion Player, interactive video in a React site.

The bottom line

Remotion brings the world of video to anyone who already lives inside code, and with Claude Code, to those who do not. Instead of a drag-and-drop editor, you get data-driven, repeatable, automated video that can produce thousands of versions from a single template. For anyone who wants to turn text, data, or a document into a video, this is one of the most powerful ways to do it in 2026.

Want to learn how to put these tools to work for your business? That is exactly what I teach.

Continue reading: What is Claude Code · Free Claude Code course · HyperFrames, video as code · AI tools for video creation · AI automations for business · Recommended AI tools

Frequently asked questions

Was this article helpful?
Share:WhatsAppLinkedInX
Yaakov Tzedek
WRITTEN BY

Yaakov Tzedek

An Israeli AI lecturer, consultant and implementer who has supported 100+ organizations in AI implementation and lectured for 200+. Official content partner of Meta, Google, Canva and TikTok, featured on Israel's Channel 13.

More about Yaakov →