Flycut
Introduction
A video editor that runs in the browser (Vue 3 + WebCodecs). Media and projects stay on your computer; nothing is uploaded.
If you find it useful, please 🌟 Star 🌟 to support it 🫣
Website: flycut.co
Preview

Features (v2)
- Resource library: imported video, images and audio go to the resource list first, where they are compressed and converted and get a cover and waveform. Drag them from the list to the timeline.
- Timeline: built on @flycut/timeline-kit, with multiple tracks, move, trim, split, snapping, undo/redo and keyboard shortcuts.
- Canvas: preview and export use the same Canvas renderer (
drawFrame), so they look the same. Move and resize clips directly on the canvas. Switch the canvas ratio (9:16, 16:9, 1:1, 3:4, 4:3) in the header; the export resolution follows it (for example 1920×1080 for 16:9). - Text and animations: text styles, plus entrance, exit and loop animations (anime.js).
- Subtitles: in-browser Whisper speech recognition (Transformers.js), SRT import and export.
- Export: MP4 export with MediaBunny, and JianYing (剪映) draft export.
- Projects: projects and media are stored in the browser's OPFS and saved automatically. Multiple projects,
.flycutpackage import and export. - AI: a local MCP server (with a pairing code) and WebMCP, so an AI can import media, edit the timeline, generate subtitles and export.
Development
pnpm install
pnpm dev # http://localhost:4008
pnpm test:unit # Vitest
pnpm test:e2e # Playwright
References
- https://github.com/Vanilagy/mediabunny Reads, decodes and encodes media in the browser based on WebCodecs; used for processing audio and video files
- https://github.com/Cc-Edit/CcClip A web-based editing tool implemented with Vue3 + ffmpeg, the main functionality of this project is based on this project
License
AGPL-3.0. Code derived from CcClip keeps its Apache-2.0 notice in NOTICE.
Importing media and large files
Imported files are processed before they are stored in the browser (OPFS) to save space and keep formats the editor and export handle:
- Images: still images are re-encoded as WebP (alpha kept, EXIF orientation applied) and downscaled to a 3840 px long side; the original is kept when it doesn't need downscaling and WebP isn't at least 10% smaller. GIF and animated PNG/WebP stay as they are; SVG is rasterized to WebP (at least 1080 px on the long side).
- Video: MOV, WebM, MKV and other non H.264 MP4 files are converted to H.264 MP4 (AAC, or Opus where the browser has no AAC encoder); video with a long side above 1920 px is downscaled to 1920 px. Compatible MP4 up to 1080p is stored unchanged, and so is WebM with transparency, because H.264 has no alpha channel.
- Audio: WAV, FLAC and AIFF are converted to M4A (AAC or Opus); other formats stay as they are.
- Only the processed file is stored, not the original. Re-importing the same original file reuses the stored asset.
Large files: everything runs in the browser, so very large media uses a lot of memory and disk quota.
- Files over 2 GB show a warning and are not compressed (an MP4 transcode is held in memory before it's saved), but incompatible formats are still converted.
.flycutpackages and JianYing drafts are built in memory and don't support more than 4 GB in total.- The local MCP
import_filecommand accepts files up to 512 MB.
AI access (MCP)
Editing commands (read the timeline, import assets, add/update/trim/split/delete clips, undo, export) are defined once in src/commands/tools.json and shared by every non-UI caller.
Local MCP server (Claude Desktop, Cursor, ...):
- Add to your MCP client config:
{ "mcpServers": { "flycut": { "command": "node", "args": ["/path/to/flycut/mcp/index.mjs"] } } } - Open FlyCut in the browser, click "AI" in the header, turn on "本地 MCP 服务" and enter the pairing code once (the browser remembers it). The editor connects to
ws://127.0.0.1:4010.
The pairing code stops other programs on the same computer from posing as the editor or as the server: both sides prove they know the code with an HMAC over random nonces, so the code itself is never sent (the HMAC key is derived with PBKDF2 to slow down guessing). Pairing needs a secure context: open FlyCut on localhost or over HTTPS. It is generated on first run and saved in ~/.flycut/mcp-pairing-code (readable only by you); the server prints it to its log on startup, and the AI client can read it with the get_pairing_code tool. Set FLYCUT_MCP_CODE to choose your own code.
Only pages listed in FLYCUT_ALLOWED_ORIGINS (default http://localhost:4008,http://127.0.0.1:4008) may connect; change the port with FLYCUT_MCP_PORT. The local server adds an import_file tool that imports a file by absolute path.
WebMCP: when the browser exposes document.modelContext (W3C WebMCP draft), the same commands are registered as page tools; they can be turned off in the "AI" menu.
Keyboard shortcuts
| Key | Action |
|---|---|
| Space | Play / pause |
| ← / → | Previous / next frame (Shift: 1 second) |
| Home / End | Jump to start / end |
| Ctrl/⌘ + B | Split the selected video at the playhead |
| Delete / Backspace | Delete the selected clip |
| Ctrl/⌘ + Z, Ctrl/⌘ + Shift + Z or Ctrl/⌘ + Y | Undo, redo |
| Ctrl/⌘ + = / - | Zoom the timeline in / out |
| Esc | Clear the selection |
Animations
Video, image and text clips have entrance, exit and loop animations (属性 → 动画, or the MCP set_animation command): fade, slide, zoom, pop, blur, rotate, typewriter for text, and pulse, float, shake, flicker, spin loops. They are evaluated with paused anime.js timelines seeked to each frame, so the preview and the exported MP4 show the same motion.
JianYing (剪映) draft export
Project menu → 导出剪映草稿 downloads a zip containing a draft folder (draft_content.json, draft_meta_info.json, materials/). Enter JianYing's draft location (全局设置 → 草稿位置) when exporting and unzip the archive there so media paths resolve; otherwise relink media in JianYing. Video, image, audio and text clips keep their timing, trim, position, scale and mute state; text size is an approximate conversion. Animations are exported as the closest free JianYing preset (e.g. 淡入 → 渐显, 从左滑入 → 向右滑动, 逐字出现 → 打字机 I) with the same duration; easing is not kept. Presets without a JianYing counterpart (video loop animations, video 模糊进入/消失, text 旋转进入/消失, text 呼吸) are left out and listed in a warning after export. Preset IDs come from pyJianYingDraft's metadata and have not been checked in a JianYing install. The draft is plain JSON, which JianYing 5.9 and newer versions open.