# explainroo

> Narrated explainer videos and product demos made by your coding agent

- Category: Multimodal Generation / Video Generation
- Language: JavaScript
- Licence: MIT
- Repository: https://github.com/vincentsch/explainroo
- Website: https://www.explainroo.com
- Canonical page: https://ai-tldr.dev/tools/explainroo/
- Updated: 2026-10-20

## In short

explainroo is an open-source video kit built for coding agents rather than for people clicking through an editor. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in JavaScript and licensed MIT. To get started: clone and set up.

## Overview

explainroo is an open-source video kit built for coding agents rather than for people clicking through an editor. You give an agent such as Claude Code or Codex the repo and a topic; the agent writes two files — `script.md` with the words the voice will say, and `scenes.js` with a little JavaScript that draws the pictures, each of which can appear on a chosen word of the script — and explainroo turns them into a finished MP4. The project's `AGENTS.md` is the playbook the agent follows, from setup to a checked final render.

Everything after the script runs on your own machine. Kokoro, an open voice model, reads the narration in English, Spanish, French, Italian, Brazilian Portuguese, Hindi, Japanese or Mandarin Chinese with no account or API key; Whisper notes when each word is spoken; Chrome draws the frames in the background with hand-drawn Rough.js lines, Lucide icons, charts, formulas, step-by-step code and your own screenshots or clips; a virtual camera moves in on what the voice is talking about and pulls back at the end; and ffmpeg assembles the file with generated background music that ducks under the voice. Because an agent cannot watch a video, explainroo also gives it stills, a contact sheet of the whole video, a layout check for clipped or overlapping text and a speech check for mispronounced words.

The same pipeline makes product demos. The agent rebuilds an app's screens from its code or website — same colours, fonts and button labels — and a mouse pointer clicks and types through them; `explainroo capture` saves a live site's screenshots, colours, fonts, logo and wording first, and a real screen recording can play inside a scene. explainroo is MIT licensed and written in JavaScript; each video carries a small explainroo.com watermark that one setting turns off.

## What it does

- Agent-first workflow: the agent writes `script.md` and `scenes.js`, then follows `AGENTS.md` to render and check the video
- Local narration with Kokoro — 54 voices in eight languages, no API key — or an ElevenLabs voice or your own recording
- Whisper word timing, so each drawing, chart, formula or code step lands on the word that introduces it
- Six built-in looks (paper, clean, chalk, blueprint, midnight, editorial), switched with one setting in `video.json`, plus custom looks as a small JSON file
- Sizes for YouTube 16:9, Shorts/TikTok/Reels 9:16, Instagram/LinkedIn 4:5 and square, with word-by-word captions on the tall formats
- Every render also writes `.srt`/`.vtt` subtitles, a cover image and YouTube chapters; GIF, transparent MOV and an embeddable web player are one flag away

## Getting started

You need Node.js 20.11 or newer, ffmpeg, and Chrome or Chromium. The first setup downloads the voice and timing models once (about 400 MB); no graphics card is needed.

1. Clone and set up

   `doctor --fetch` checks the prerequisites and downloads the Kokoro and Whisper models.

```bash
git clone https://github.com/vincentsch/explainroo.git
cd explainroo
npm install
node bin/explainroo.js doctor --fetch
```

2. Add speech tools for other languages (optional)

   Spanish, French, Italian, Portuguese and Hindi narration need espeak-ng. Japanese and Chinese need Python with misaki instead, as described in `AGENTS.md`.

```bash
sudo apt install espeak-ng
# or
brew install espeak-ng
```

3. Ask your agent for a video

   Start Claude Code, Codex or another coding agent and describe the video. The README says it works best with Claude Code and Opus 5.5. The agent follows `AGENTS.md` and saves the result as `videos/<name>/out/video.mp4`. You can also skip the clone and paste this prompt into any agent:

```text
Make me a short explainer video about [your topic].
Use explainroo for it: clone https://github.com/vincentsch/explainroo,
read its AGENTS.md and follow the steps.
```

4. Render other sizes and check the result

   One project can render several sizes next to each other. The check command flags cut-off or overlapping text; `--view-width` also flags text that is too small for a feed-sized player.

```bash
explainroo render videos/demo --size tiktok
explainroo check videos/demo --view-width 854
```

## When to use it

- Have a coding agent turn a concept, an API or an internal process into a narrated one-minute explainer
- Produce a product demo of your own app from its code or live site, without recording a screen by hand
- Cut the same video for YouTube, TikTok, LinkedIn and a README GIF from one project
- Make narrated videos fully offline when you cannot send a script to a cloud voice service

## Version history

- 2026-10-20 0.4.1: The camera keeps arrow and chart labels whole while a shot holds, stops zooming in on unlabelled icons or empty boxes, and pulls back at the end of short scenes.
