Prototype · Preview: every server in the official registry, synced every 30 minutes. Reviews and accounts come in a later step.
PopNx MCPMCP servers for people who use AI · explained in plain words

Foldline

by alireza12tversion 1.0.0i★ –iRuns on your computer
Registry nameio.github.alireza12t/foldline

Install

Overview

Description from the maker (original English)

Render HTML canvas animations to MP4 fast on a Mac, with 66 code-made film styles for agents.

PopNx MCP’s three pillars

These three are never merged into one score: opinions, measurements and popularity are different things.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Games, sports, food & learning

Install

Pick the AI app you use, then copy the settings.

Before you install

  • Basic checks: 1 of 1 passed
  • Runs on your computer with your user’s permissions (files, network, apps).
  • You fill in yourself: FOLDLINE_PYTHON, PLAYWRIGHT_CHROME

You need

  • npmNode.js installed (for the npx command)

Which app do you use?

Pick your app above. We remember it, so next time the button says “Install in …”.

Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json

{
  "mcpServers": {
    "foldline": {
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "your-value",
        "PLAYWRIGHT_CHROME": "your-value"
      }
    }
  }
}

Run this in your terminal

claude mcp add foldline --env FOLDLINE_PYTHON=your-value --env PLAYWRIGHT_CHROME=your-value -- npx -y foldline-mcp

Fill in the empty values before running it.

Open in Cursor

Or copy the settings yourself

Paste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json

{
  "mcpServers": {
    "foldline": {
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "your-value",
        "PLAYWRIGHT_CHROME": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

Open in VS Code

Or copy the settings yourself

Paste into .vscode/mcp.json in your project

{
  "servers": {
    "foldline": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "your-value",
        "PLAYWRIGHT_CHROME": "your-value"
      }
    }
  }
}

Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.

This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.

Your choice stays on this device in a cookie; no account needed.

Values you fill in

  • FOLDLINE_PYTHON env
    Python for the voice, music and sheet tools (default: the library .venv, then ~/lemo-opuscar/.venv)
  • PLAYWRIGHT_CHROME env
    A chrome-headless-shell to use instead of the one Playwright installs

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 9, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account alireza12t, which owns the repo

  • … Not checked yet

    Still maintained

    We have not read this repo from GitHub yet

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Compared with others in Games, sports, food & learningi

  • More stars than 0% of the other 1317 servers in this category
  • Published to the registry more recently than 100% of the other 1317 servers in this category
  • Basic checks equal to or better than 100% of the other 1317 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Foldline safe?

It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed –, and the latest version (1.0.0) reached the registry today.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: diglabo(漢字・算数の学習), Foodbe, Gameye

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Foodbe

Food list analyzer and cited food answers for agents. Also recipes, meal plans and grocery lists.

by bleemohrEarlyUpdated today

Runs in the cloud

Gameye

Launch, inspect and stop multiplayer game server sessions on Gameye from any MCP client.

by GameyeEarly↓ 425/wkUpdated today

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

Foldline

Render HTML canvas animations to MP4, fast, on a Mac.

With the full lemo-opuscar library of 66 film styles made in code.

Made for Unfold, an animated "What if" channel in a paper pop-up book style.

https://github.com/user-attachments/assets/05724852-c9ae-4762-90a9-634315b2b016

▶ Watch on YouTube · download the MP4 · read the deep dive on Medium

Made with Foldline itself: every frame drawn in code, a local text-to-speech voice, music synthesised in code. It renders in 34 s. Source in examples/foldline-explainer .

What it is

Foldline turns a web page that draws a film in code into an H.264 MP4. You write an HTML page with a and a render(t) function. Foldline opens it in headless Chrome, draws every frame, and encodes the video inside the page with WebCodecs on the Mac's hardware encoder, so frames never leave the GPU. On an M1 Pro, an 8.4-minute 1080p 60 fps video renders in 161 s instead of 426 s (see Results). It's open source and free for non-commercial use, and it works well with coding agents like Claude Code.

Foldline is a project by Alireza Toghiani, built for the Unfold channel. It isn't a GitHub fork. It ships the full lemo-opuscar library by LemoLab:

  • all 66 film styles in styles/, each with a style prompt and a demo film made in code
  • the toolkit in core/ (render, voice, music, mix)
  • the guides DIRECTOR.md, TECHNIQUE.md and MY-STYLES.md
  • lemo's Claude Code plugin in plugin/

lemo's original README is kept as LEMO-README.md. It has the style list, how to make a style your own, and the full requirements.

What Foldline adds is a faster video renderer, core/render/video.mjs, and an MCP server for coding agents, core/mcp/server.mjs.

What's new vs lemo-opuscar

  • The page encodes the video itself. By default video.mjs encodes H.264 inside the page with WebCodecs, on the Mac's hardware encoder. Each frame goes from the canvas to the encoder on the GPU. No screenshot, no JPEG, no ffmpeg decode.
  • It works when the film draws into one visible ` ` of the render size. 35 of the 66 lemo demos do, and Unfold's videos do.
  • Automatic fallback. If the page doesn't fit that, or the browser has no hardware H.264 encoder, it falls back to the screenshot path with the Mac hardware encoder (VideoToolbox). If that isn't available either, it uses x264.
  • `FOLDLINE_ENC=auto|wc|vt|x264` picks the encoder. auto is the default. x264 is lemo's original path. LEMO_ENC still works.
  • `FOLDLINE_MBPS` sets the bitrate for the WebCodecs path, in Mbit/s (default 20).
  • New flag `--audio ` muxes a sound file in (AAC 192k). It runs as a second ffmpeg pass from the finished mp4. The renderer refuses to finish if the file is missing its video or audio stream.
  • Output is standard bt709 limited-range H.264 mp4.
  • MCP server in core/mcp/: agents get the styles, guides, renders and sound tools as MCP tools with short results. See MCP server.

Everything else in the library works the way lemo describes it.

How it compares

Foldline is a renderer plus a style library, not a framework or a timeline editor. You write the page, Foldline renders it.

Foldlinelemo-opuscar (original)RemotionMotion CanvasHyperFrames
You writean HTML page with render(t)an HTML page with render(t)React componentsTypeScript scenesHTML, CSS and seekable animations (GSAP, Lottie, three.js and others)
How frames are madeChrome draws the canvas, and the page hands each frame to the encoder (WebCodecs). Frames stay on the GPU.Chrome draws the page, and each frame is taken as a JPEG screenshotChrome draws each frame, and FFmpeg encodes themthe browser saves each frame as an image file (PNG, JPEG or WebP)headless Chrome (Puppeteer) seeks each frame, and FFmpeg encodes them
Video encoder by defaultMac hardware H.264, falling back to VideoToolbox, then x264x264 (software)FFmpeg, H.264. Hardware encoding (VideoToolbox on Mac, NVENC) is available but off by default.none built in: you turn the images into a video yourself, for example with ffmpegFFmpeg
Ready-made looks66 film styles, each with a demo film (lemo's library)the same 66 film stylesstarter templatesnone in the coreabout 450 blocks and components, plus design templates
Code licencePolyForm Noncommercial: free for non-commercial use, commercial licence on request (lemo's original code stays MIT)MITRemotion License: free for individuals, non-profits and companies of up to 3 employees, paid above thatMITApache-2.0
Speed, measured here2.5x faster than lemo on its Pixel RPG demo, 2.6x faster on an 8.4 min filmthe baselinenot measured herenot measured herenot measured here

Sources, checked Nov 6 2026: Remotion's encoding and hardware acceleration docs, Motion Canvas's rendering docs and the HyperFrames README. Projects change, so check their docs for the latest. Foldline's speed numbers are in Results.

Install

You need:

  • macOS on Apple Silicon (recommended). The fast path needs Chrome's hardware H.264 encoder. Other systems fall back to the screenshot path.
  • Node 20+
  • ffmpeg 7+
  • Python 3.11+, for the voice and music tools
git clone https://github.com/alireza12t/foldline.git

cd foldline npm ci node node_modules/playwright-core/cli.js install chromium-headless-shell

The last line installs the headless Chrome the renderer uses, the same way lemo's setup script does it. To use a different Chrome or headless-shell executable, set PLAYWRIGHT_CHROME=/path/to/chrome-headless-shell.

For the Python tools (sound effects, mix, subtitles, voice), lemo's setup script makes the .venv in tiers. Run it from the repo folder:

CommandAdds
sh plugin/skills/lemo-opuscar/scripts/setup.sh depsnpm packages, headless browser, Python .venv core tier
sh plugin/skills/lemo-opuscar/scripts/setup.sh deps voiceKokoro, edge-tts, faster-whisper, and the Kokoro model
sh plugin/skills/lemo-opuscar/scripts/setup.sh deps musicnumba, for pluck.py
Optional big assets

These aren't in git. Fetch them only when a film needs them. tools/fetch.sh downloads them from lemo-opuscar's assets release on GitHub.

CommandWhat it getsSize
sh tools/fetch.sh voiceKokoro TTS model (English, offline) into core/tts/about 354 MB
sh tools/fetch.sh hdriPoly Haven HDRIs for the 3D styles into core/assets/polyhaven/12 MB
sh tools/fetch.sh instruments one sample library (freepats, karoryfer, salamander, vcsl, vsco2ce, or all)70 to 400 MB each

Full sizes and details are in TECHNIQUE.md §1.

Usage

Run every command from the repo folder.

Render a library demo
node core/render/video.mjs styles/rubber-hose/demo --fps 24 --out out/rubber-hose.mp4

Some demos need a one-time setup in their own folder first:

  • npm ci if the demo has a package.json
  • node fetch_fonts.mjs if it has one
Render your own page
node core/render/video.mjs my-film --size 1080x1920 --fps 60 --audio my-film/mix.wav --out my-film/out/video.mp4

my-film is any folder with an index.html that follows the page contract below.

Stills
node core/render/still.mjs <dir> 3 20 --out <dir>

This writes review JPEGs at 3 s and 20 s. See core/README.md for --range and --prefix.

Flags
FlagDefaultMeaning
--fps24frames per second
--size WxH1920x1080render size, even numbers
--workers3parallel browsers; up to 6 for a single render
--out /out/video.mp4output file; each parallel render needs its own
--q 'k=v&…'nonereaches the page as location.search
--audio nonemux a sound file in (AAC 192k); new in Foldline
Environment variables
VariableDefaultMeaning
FOLDLINE_ENCautoauto (WebCodecs, else VideoToolbox, else x264), wc, vt, or x264 (lemo's original path). LEMO_ENC still works
FOLDLINE_MBPS20bitrate in Mbit/s for the WebCodecs path
LEMO_VTQ72quality for the VideoToolbox screenshot path

The rest of lemo's variables (PLAYWRIGHT_CHROME, LEMO_ANGLE, RENDER_SLOTS and more) are listed in core/README.md.

The page contract

This comes from lemo. Each film is a folder with an index.html that sets:

window.DUR = 54.2;                 // film length in seconds

window.render = (t) => { ... }; // draw the frame at t seconds; may be async window.READY = true; // set once fonts and assets are loaded

For the fast path, draw the whole film into one visible of the render size. Any other page still renders, through the screenshot path.

Using it with a coding agent

lemo's plugin and skill are for Claude Code. How to install them, and how to ask for a film, is in LEMO-README.md, How to use. The plugin installs lemo's own library into ~/lemo-opuscar. lemo's setup script uses the clone you're standing in when it's a library, so to work with Foldline's renderer, start your agent inside this folder (lemo's "clone the repo" option).

MCP server

Foldline has an MCP server, so Claude Code, Codex, Cursor and other agents can call its tools directly instead of reading the guides and running commands by hand. It's on npm as foldline-mcp, and it's listed in the MCP Registry as io.github.alireza12t/foldline.

You need Node 20+, ffmpeg (brew install ffmpeg) and Chrome's headless shell, installed once with npx playwright-core@1.63.0 install chromium-headless-shell. The server tells you if one is missing.

Claude Code, as a plugin:

claude plugin install foldline --marketplace alireza12t/foldline

or as a plain MCP server:

claude mcp add --scope user foldline -- npx -y foldline-mcp

Codex, in ~/.codex/config.toml:

[mcp_servers.foldline]

command = "npx" args = ["-y", "foldline-mcp"]

Cursor (~/.cursor/mcp.json), Claude Desktop and most other clients:

{ "mcpServers": { "foldline": { "command": "npx", "args": ["-y", "foldline-mcp"] } } }

VS Code (.vscode/mcp.json):

{ "servers": { "foldline": { "command": "npx", "args": ["-y", "foldline-mcp"] } } }

To use your own clone instead of npm, point the command at it: `node /path/to/foldline/core/mcp/server.mj

Only the beginning is shown; read the rest in the repo

Ask PopNx