# Timeline Studio

> A local-first browser video editor with on-device AI voiceover, music, captions and repair — and a timeline coding agents can edit too

- Category: Multimodal Generation / Video Generation
- Language: JavaScript
- Licence: MIT (code); models under their own licenses
- Repository: https://github.com/MartinDelophy/ai-video-editor
- Website: https://video-editor.ai-creator.top/
- Canonical page: https://ai-tldr.dev/tools/timeline-studio/

## In short

Timeline Studio (repository `ai-video-editor`) is an MIT-licensed video editor that runs in the browser. It sits in the Video Generation category of the Multimodal Generation tools and is open-source, written in JavaScript and licensed MIT (code); models under their own licenses. To get started: run the editor locally.

## Overview

Timeline Studio (repository `ai-video-editor`) is an MIT-licensed video editor that runs in the browser. It pairs a CapCut-style multi-track timeline — a main Visuals track, timed picture-in-picture overlays, and separate caption, sticker, voiceover, source-audio and music tracks — with AI features that run locally on WebGPU and WebAssembly instead of an editing backend. It installs as a PWA, can be used from a hosted demo or a Hugging Face Space, and saves work as portable `.timeline` projects.

The AI side is a set of browser-run open models: Hojo TTS, Kokoro and Piper voices for multilingual voiceover; Stable Audio 3 Small for generated music; Whisper small for automatic captions; YOLOS and MODNet for smart framing and background removal; MI-GAN for timed watermark and object removal and NanoVSR for 4× restoration; vocal separation; and JoyVASA plus LivePortrait for talking-avatar generation. Large models are lazy-loaded, pinned to a revision, cached by the service worker and mirrored on Hugging Face and ModelScope with automatic fallback. Export runs on a separate deterministic offline path using WebCodecs for MP4 and WebM.

The project is also built for coding agents. The repository ships an `edit-timeline-studio` Skill for Codex, Claude Code, Copilot and Gemini CLI, a headless command runner that inspects `.timeline` projects, validates JSON edit plans, applies them transactionally (with dry runs) and renders a subset to H.264/AAC MP4, and a browser WebMCP integration with 21 tools so an agent can inspect, edit, sample and export the open project. The editable timeline stays the source of truth rather than an opaque render. The code is MIT; the bundled and downloaded models keep their own upstream licenses, listed in MODEL_LICENSES.md.

## What it does

- Multi-track timeline with snapping, alignment guides, split / duplicate / delete, keyframes, masks, filters, effects, speed and desktop four-way colour grading
- Local AI voiceover (Hojo TTS, Kokoro, Piper), music (Stable Audio 3 Small), captions (Whisper small) and vocal separation, all running in the browser
- AI repair and framing: MI-GAN watermark/object removal with timed regions, NanoVSR 4× restoration, YOLOS subject detection and MODNet portrait matting
- Talking-avatar generation with JoyVASA audio-to-motion and LivePortrait rendering on WebGPU
- Agent tooling: an installable Skill, a headless command runner for `.timeline` projects and 21 WebMCP tools for the open editor
- Deterministic offline export to MP4/WebM via WebCodecs, an installable PWA and portable `.timeline` project files

## Getting started

Running locally needs Node.js 20+ and a modern Chromium browser; WebGPU is recommended for the heaviest AI workflows. You can also try the hosted editor first. Commands are from the project README.

1. Run the editor locally

   Open the local URL Vite prints. The first AI run may download model files; later runs reuse the browser cache.

```bash
git clone https://github.com/MartinDelophy/ai-video-editor.git
cd ai-video-editor
npm install
npm run dev
```

2. Build and check

   `npm run check` runs the complete repository check. The included `netlify.toml` sets the cross-origin isolation headers the browser AI and media workers need.

```bash
npm run build
npm run preview
npm run check
```

3. Give your coding agent the editing Skill

   Install the `edit-timeline-studio` Skill from skills.sh (needs Node.js 22.20.0 or later), or with GitHub CLI 2.90.0+ for a specific agent.

```bash
npx skills add MartinDelophy/ai-video-editor --skill edit-timeline-studio

# or, per agent
gh skill install MartinDelophy/ai-video-editor edit-timeline-studio --agent claude-code --scope user
```

4. Drive a project headlessly

   The command runner inspects portable projects, previews an edit plan as a diff, applies it and renders the supported subset to MP4 without rewriting the media files.

```bash
npm run agent -- project.inspect /absolute/path/project.timeline
npm run agent -- project.diff /absolute/path/edit-plan.json
npm run agent -- project.run /absolute/path/edit-plan.json
npm run agent -- project.render /absolute/path/render-request.json
```

## When to use it

- Adding a multilingual AI voiceover and automatic captions to a short video without uploading the footage to a cloud editor
- Letting Codex or Claude Code propose a beat-synced edit as a reviewable plan, then adjusting keyframes by hand before exporting
- Removing a watermark over a time range or upscaling old clips with browser-local repair models
- Generating a talking-avatar clip from a portrait and a voiceover track
