whatisgithub

What is webmotion?

superhq-ai/webmotion — explained in plain English

Analysis updated 2026-05-18

4TypeScriptAudience · developerComplexity · 3/5Setup · easy

In one sentence

WebMotion lets you build and export MP4 videos entirely inside the browser using HTML-like tags or TypeScript, with no server rendering required.

Mindmap

mindmap
  root((webmotion))
    What it does
      Browser video composition
      Deterministic frame rendering
      Exports MP4 via WebCodecs
      No server needed
    Tech stack
      TypeScript
      Canvas and DOM
      WebCodecs
      Vite starter
    Use cases
      Launch videos
      Data driven animations
      AI generated scenes
    Audience
      Frontend developers
      AI coding agents

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Author a short animated video, like a product launch clip, using simple HTML-like tags in the browser.

USE CASE 2

Programmatically draw and export deterministic frame-by-frame video with a TypeScript component API.

USE CASE 3

Use an AI coding assistant with the included skill to auto-generate WebMotion video scenes from a text brief.

What is it built with?

TypeScriptWebCodecsCanvasVitePlaywright

How does it compare?

superhq-ai/webmotion0labs-in/vision-linkalfons-fhl/cursor-plan2api
Stars444
LanguageTypeScriptTypeScriptTypeScript
Setup difficultyeasymoderatemoderate
Complexity3/53/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 30min

Needs a Chromium based browser with WebCodecs support, the CLI tools rely on Playwright.

So what is it?

WebMotion is a tool for making videos entirely inside a web browser. Instead of relying on server software like headless Chrome or FFmpeg, it composes video using the DOM or a canvas element, then encodes the result with WebCodecs, a browser feature, and lets you download an MP4 file directly. The core idea behind WebMotion is that every visible frame is produced by a pure function of its frame number. Jumping to frame 42 always produces the exact same image, whether you are scrubbing through a preview or exporting the final file. This makes the whole process predictable and lets the browser cache and seek through the video without needing a server to render anything. You can build a scene two ways. The first is writing plain HTML with custom tags like w-composition, w-rect, and w-text, where animations are described with w-animate elements that tween a property, such as opacity or position, over a range of frames. The second way is a TypeScript API where you define a component with a renderFrame method that draws directly onto a canvas each frame. Both approaches produce the same deterministic output. There is also an optional add-on for animating 3D glTF models using the three library. WebMotion includes a starter template built with Vite that gives you a live preview window with a scrubbable timeline, chapter labels, and one click MP4 export. A command line tool can capture screenshot frames of a scene or lint it for common problems, like two animations fighting over the same property or text that overflows its box, which is useful for catching mistakes without opening a browser window. The project also ships an installable skill and plugin that teach AI coding assistants how to write WebMotion scenes, so a user can ask an agent to generate a short video and have it produce working code in the correct format.

Copy-paste prompts

Prompt 1
Set up a new WebMotion project using the Vite starter template and show me the folder structure.
Prompt 2
Write a WebMotion HTML scene with a fade-up text animation that appears at frame 12 and reads 'Author in HTML.'
Prompt 3
Create a TypeScript WebMotion component that draws a title with a fade-in effect using the Composition and Runtime classes.
Prompt 4
Explain how WebMotion's frame-based determinism works compared to tools like Remotion.
Prompt 5
Install the WebMotion AI agent skill and generate a 10 second launch video scene for my product.

Frequently asked questions

What is webmotion?

WebMotion lets you build and export MP4 videos entirely inside the browser using HTML-like tags or TypeScript, with no server rendering required.

What language is webmotion written in?

Mainly TypeScript. The stack also includes TypeScript, WebCodecs, Canvas.

How hard is webmotion to set up?

Setup difficulty is rated easy, with roughly 30min to a first successful run.

Who is webmotion for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.