# Motion Canvas — card for AI agents

TypeScript library and editor for coding animated videos (explainers, motion graphics, loops) and rendering them to frames or video.

Category: Video references and motion backgrounds (also: Video assembly and rendering, Web animation examples and effects) · maker motion-canvas · checked 2026-11-05 · style: minimal, flat, geometric

## Price
- Price: Free
- Free tier: Fully free.

## License
MIT — https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE

- commercial: **yes** (Commercial use OK)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE)
- attribution: **no** (No credit needed)
  > The above copyright notice and this permission notice shall be included in all
  (https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE)
- in app: **yes** (Can ship inside your app)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE)
- redistribute: **yes** (Can pass the files on to your own users)
  > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  (https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE)

## Rules to follow
- Keep the MIT notice if you redistribute the code.
- Fonts, images and audio you put in a scene keep their own licenses.

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm init @motion-canvas@latest (pin a version), write scenes in TypeScript, render from the editor. (sign-in: none)
- Formats: ts, mp4, png

## How to connect
- Package (npm/PyPI)
- npm: `npm install @motion-canvas/core`
- Repository: https://github.com/motion-canvas/motion-canvas
- Website: https://motioncanvas.io

## Notes
npm @motion-canvas/core 3.17.2.

## Numbers (AgentGid data)
- Gid Score: 46
- GitHub stars: 19,997
- Downloads last week: 12,418

## Lines to paste into your prompt or AGENTS.md

```
- Motion Canvas (Video references and motion backgrounds, Video assembly and rendering, Web animation examples and effects). TypeScript library and editor for coding animated videos (explainers, motion graphics, loops) and rendering them to frames or video. Price: free; commercial use OK; no credit needed. Style: minimal, flat, geometric.
  Connect: npm @motion-canvas/core.
  Get files: npm init @motion-canvas@latest (pin a version), write scenes in TypeScript, render from the editor (ts, mp4, png).
  Rule: Keep the MIT notice if you redistribute the code.
  Rule: Fonts, images and audio you put in a scene keep their own licenses.
  License: https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE (checked 2026-11-05; details: https://agentgid.com/assets/motion-canvas/)
```

## Links
- AgentGid page: https://agentgid.com/assets/motion-canvas/
- Is it free for commercial use? https://agentgid.com/assets/motion-canvas/commercial-use/
- Source: https://motioncanvas.io/
- Source: https://raw.githubusercontent.com/motion-canvas/motion-canvas/main/LICENSE
- Source: https://registry.npmjs.org/@motion-canvas/core/latest


## Motion Canvas: make explainer videos by writing code

Motion Canvas is a free tool for making animated videos, such as explainers and motion graphics, by writing code in TypeScript. You write the steps of the animation, watch a live preview in a browser editor, and line it up with a voice-over. It saves the result as image frames or, with an add-on, as a finished video.

### Where to use it
- Explainer videos with a voice-over: Animate a diagram or an idea step by step and time each move to a recorded voice, for a product tour or a lesson.
- Animated shapes for social clips: Code a short loop of moving, color-changing shapes for a social post, an intro or a video background.
- Animated slides for a talk: Present your animation live like a slide deck, pausing at each step until you press space.
- A finished video file from code: Export the animation as an MP4 video ready for YouTube or a website, instead of a folder of single frames.
- Animated charts for a report video: Grow bars or lines step by step to explain a number in a monthly update or a pitch video. (idea, not from the official pages)
- Short how-to clips for docs: Show a process, such as how data moves between parts of an app, as a short looping clip in your documentation. (idea, not from the official pages)

### How to start
- Make sure Node.js 16 or newer is installed, then create a new project and install its packages.

```
npm init @motion-canvas@latest
npm install
```

- Start the editor and open it in the browser.

```
npm run serve
```

- Edit src/scenes/example.tsx; the preview updates on save. Press RENDER in Video Settings to save the frames.

### License
MIT license: free for personal and paid work, including videos you sell. Keep the copyright notice when you share the code; fonts, images and sounds you add keep their own licenses.

### Good to know
- You need Node.js 16 or newer and a browser. The editor runs on your own computer at localhost:9000.
- Rendering plays the animation in the browser and saves every frame as an image. A video file needs the extra FFmpeg exporter.
- The last stable release, 3.17.2, came out in December 2024. Expect slow updates and pin that version.
- The video exporter is new and may lack features, such as some audio options.

Checked 2026-11-10 against: https://motioncanvas.io/, https://motioncanvas.io/docs/quickstart, https://motioncanvas.io/docs/rendering, https://motioncanvas.io/docs/rendering/video, https://motioncanvas.io/docs/media, https://motioncanvas.io/docs/presentation, https://github.com/motion-canvas/motion-canvas/blob/main/README.md, https://github.com/motion-canvas/motion-canvas/blob/main/LICENSE, https://registry.npmjs.org/@motion-canvas/core, https://registry.npmjs.org/@motion-canvas/core/latest

### Mistakes to avoid
- Don't: npm init @motion-canvas@latest in a script that must give the same result every time → Do: Scaffold once, then pin @motion-canvas/core, 2d, ui and vite-plugin to 3.17.2 in package.json (The latest tag moves, and an alpha 3.18.0 line also exists on the registry.)
- Don't: Importing a scene in project.ts without the ?scene suffix → Do: import example from './scenes/example?scene' (The project file loads scenes through the Vite plugin with this suffix, as in the docs.)
- Don't: Animating the project background color in the settings → Do: Animate view.fill() inside the scene instead (The project background cannot be animated.)
- Don't: Changing the Resolution setting and expecting the scene to scale → Do: Use the Scale setting, or plan the resolution before you lay out the scene (Elements keep their pixel sizes when only the resolution changes.)
- Don't: Choosing WebP frames and rendering in Safari → Do: Use PNG or JPEG frames, or render in a Chromium-based browser (Frame export depends on the browser, and WebP may not work in Safari.)

### Questions
- Do I need to know how to code? Yes. You write the animation in TypeScript or JavaScript; the editor adds a live preview and audio timing.
- Can it make an MP4 directly? Yes, with the Video (FFmpeg) exporter. It installs FFmpeg for you; without it you get image frames to join yourself.
- Can I add a voice-over or music? Yes. Import an audio file in project.ts, and the editor shows it as a track you can shift in time.
- Is it free for paid client videos? Yes. It is MIT licensed, which allows use, changes and selling.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
