ต้นแบบ · รุ่นทดลอง: มีทุก server ในทะเบียนทางการ อัปเดตทุก 30 นาที รีวิวและบัญชีผู้ใช้จะมาในขั้นถัดไป
PopNx MCPที่รวม MCP สำหรับคนใช้ AI · อธิบายเป็นภาษาคน

Foldline

โดย alireza12tรุ่น 1.0.0i★ –iรันบนเครื่อง
ชื่อใน registryio.github.alireza12t/foldline

ติดตั้ง

ภาพรวม

คำอธิบายจากผู้ทำ (ภาษาอังกฤษตามต้นฉบับ)

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

สามเสาของ PopNx MCP

สามเรื่องนี้ไม่รวมเป็นคะแนนเดียว เพราะความเห็น การวัด และความนิยม เป็นคนละเรื่องกัน

ใช้ทำอะไรได้

ตัวนี้ยังไม่ได้เรียบเรียงเป็นภาษาไทย ด้านล่างคือข้อเท็จจริงที่เราอ่านจาก registry

  • การเชื่อมต่อ: รันบนเครื่อง
  • ช่องทาง (transport): stdio
  • หมวด: เกม กีฬา อาหาร และการเรียน

ติดตั้ง

เลือกโปรแกรม AI ที่คุณใช้ แล้วคัดลอกค่าตั้งไปวาง

ก่อนติดตั้ง

ต้องเตรียมก่อน

  • npmติดตั้ง Node.js (มีคำสั่ง npx) ในเครื่อง

คุณใช้แอปไหน

เลือกแอปด้านบน เราจำไว้ให้ ครั้งหน้าปุ่มจะขึ้นว่า “ติดตั้งลง …”

เปิด Claude Desktop → Settings → Developer → Edit Config แล้ววางค่านี้ในไฟล์ claude_desktop_config.json

{
  "mcpServers": {
    "foldline": {
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "ใส่ค่าของคุณ",
        "PLAYWRIGHT_CHROME": "ใส่ค่าของคุณ"
      }
    }
  }
}

พิมพ์คำสั่งนี้ใน Terminal

claude mcp add foldline --env FOLDLINE_PYTHON='ใส่ค่าของคุณ' --env PLAYWRIGHT_CHROME='ใส่ค่าของคุณ' -- npx -y foldline-mcp

เติมค่าที่เว้นว่างไว้ก่อนรัน

เปิดใน Cursor

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .cursor/mcp.json ของโปรเจกต์ หรือ ~/.cursor/mcp.json

{
  "mcpServers": {
    "foldline": {
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "ใส่ค่าของคุณ",
        "PLAYWRIGHT_CHROME": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

เปิดใน VS Code

หรือคัดลอกค่าตั้งเอง

วางในไฟล์ .vscode/mcp.json ของโปรเจกต์

{
  "servers": {
    "foldline": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "foldline-mcp"
      ],
      "env": {
        "FOLDLINE_PYTHON": "ใส่ค่าของคุณ",
        "PLAYWRIGHT_CHROME": "ใส่ค่าของคุณ"
      }
    }
  }
}

เบราว์เซอร์จะถามก่อนเปิดแอป จากนั้นแอปแสดงค่าตั้งให้ตรวจแล้วกดยืนยัน ช่อง key เว้นว่างไว้ให้คุณใส่เอง

ตัวนี้รันในเครื่องคุณ แต่ ChatGPT ต่อได้เฉพาะ server บนอินเทอร์เน็ต ลองเลือกแอปอื่น

ตัวเลือกเก็บในคุกกี้บนเครื่องนี้ ไม่ต้องมีบัญชี

ค่าที่ต้องใส่เอง

  • 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

ค่าตั้งนี้สร้างจากข้อมูลใน registry ของผู้ทำ ถ้าไม่ตรงกับ README ให้เชื่อ README

ทำอะไรได้บ้าง

รันในเครื่องคุณ รายการเครื่องมือจะขึ้นในแอป AI หลังติดตั้ง

ผลตรวจเบื้องต้นi

เราตรวจจากข้อมูลที่ใครก็เปิดดูได้ ยังไม่ได้อ่านโค้ด ข้อที่ไม่เกี่ยวกับตัวนี้ไม่นับในตัวหาร · ตรวจเมื่อ 9 พ.ย. 2569

  • ✓ ผ่าน

    ตัวตนผู้ทำตรงกับ repo

    ชื่อใน registry ยืนยันด้วยบัญชี GitHub alireza12t ซึ่งเป็นเจ้าของ repo

  • … ยังไม่ตรวจ

    ยังมีคนดูแล

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • … ยังไม่ตรวจ

    มีสัญญาอนุญาต (license)

    ยังไม่ได้อ่านข้อมูล repo จาก GitHub

  • – ไม่เกี่ยว

    endpoint ตอบ

    ตัวนี้รันบนเครื่องคุณ ไม่มี endpoint บนอินเทอร์เน็ต

  • – ไม่เกี่ยว

    ล็อกอินแบบ OAuth

    ตัวนี้รันบนเครื่อง ใช้ค่าที่ตั้งในเครื่องแทน

  • … ยังไม่ตรวจ

    คำอธิบายเครื่องมือไม่มีคำสั่งแอบแฝง

    รันในเครื่องคุณ เราอ่านรายการเครื่องมือได้เฉพาะตัวที่มี endpoint บนอินเทอร์เน็ต

เทียบกับตัวอื่นในหมวด เกม กีฬา อาหาร และการเรียนi

  • ดาวมากกว่า 0% ของอีก 1317 ตัวในหมวดนี้
  • ส่งรุ่นใหม่เข้า registry ล่าสุดกว่า 100% ของอีก 1317 ตัวในหมวดนี้
  • ผลตรวจเบื้องต้นดีกว่าหรือเท่ากับ 100% ของอีก 1317 ตัวในหมวดนี้

เทียบกับทุก server ที่ยังใช้งานในหมวดนี้ทั้งทะเบียน ดาวนับเฉพาะเมื่อผู้ลงทะเบียนเป็นเจ้าของ repo

คำถามที่พบบ่อย

Foldline ปลอดภัยไหม?

จากการตรวจเบื้องต้นของเรา ผ่าน 1 จาก 1 ข้อที่ตรวจได้ เรายังไม่ได้อ่านโค้ด ก่อนใส่กุญแจหรือ token ให้ดูว่า server ขอสิทธิ์อะไร และเลือกกุญแจที่ทำได้เท่าที่จำเป็น

ต้องใช้กุญแจหรือรหัสอะไรบ้าง?

registry ไม่ได้ระบุว่าต้องใช้กุญแจ แต่บางตัวจะขอให้ล็อกอินตอนใช้ครั้งแรก

ตัวนี้รันบนเครื่องหรือบนคลาวด์?

รันบนเครื่องของคุณ โปรแกรม AI จะเปิด server ขึ้นมาเองเมื่อใช้ ข้อมูลไม่ต้องผ่านเซิร์ฟเวอร์ของผู้ทำ (ยกเว้นตัวที่ไปเรียกบริการออนไลน์ต่อ)

ยังมีคนดูแลอยู่ไหม?

repo บน GitHub มีการแก้โค้ดล่าสุด – และส่งรุ่นล่าสุด (1.0.0) เข้า registry วันนี้

ใช้กับโปรแกรมไหนได้บ้าง?

โปรแกรมที่รองรับ MCP เช่น Claude Desktop, Claude Code, Cursor และ VS Code ตัวนี้ต้องมี Node.js ในเครื่องด้วย

มีตัวไหนใช้แทนได้บ้าง?

ในหมวดเดียวกันมี diglabo(漢字・算数の学習), Foodbe, Gameye

ตัวที่ใช้แทนได้

server หมวดเดียวกันจากผู้ทำคนอื่น เรียงตามดาว

อ่านการ์ด:↓ ดาวน์โหลดต่อสัปดาห์i★ ดาว GitHubiสามเสา: รีวิว · ผลตรวจ · การใช้งานiอัปเดต = วันที่ส่งรุ่นล่าสุดเข้า registryi

Foodbe

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

โดย bleemohrเริ่มต้นอัปเดต วันนี้

รันบนคลาวด์

Gameye

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

โดย Gameyeเริ่มต้น↓ 425/สัปดาห์อัปเดต วันนี้

รันบนเครื่อง

README จากผู้ทำ

เปิดอ่าน README

ส่วนนี้คัดจาก repo ของผู้ทำตามต้นฉบับ PopNx MCP ไม่ได้ตรวจหรือรับรองเนื้อหา ตัด HTML รูปภาพ และสคริปต์ออกแล้ว ลิงก์จะพาออกนอกเว็บ

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

ตัดมาแค่ช่วงต้น อ่านต่อใน repo

ถาม PopNx