flatkit
The open language, compiler, and player for the animation format — a modern, web-native take on the "one file that just plays" idea behind the old SWF.
Power your agent
คำสั่งของผู้เผยแพร่เอง ไม่ใช่เอนด์พอยต์ของ PlugMCP
Host a copy with our keys and logs.
npx -y @flatkit/[email protected]Claude Code ไม่มีลิงก์ติดตั้งสำหรับคำสั่งแบบโลคัล ให้คัดลอกคำสั่งด้านล่างแล้วรันในเทอร์มินัล
claude mcp add flatkit-mcp -- npx -y @flatkit/mcp@0.3.22รันในเทอร์มินัล
{ "mcpServers": { "flatkit-mcp": { "command": "npx", "args": [ "-y", "@flatkit/[email protected]" ] } }}claude_desktop_config.json
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดWrite a scene as readable text, compile it to a single self-contained .flatpack, and play it in any <canvas> with a runtime small enough to drop into someone else's bundle. Animations and interactivity — drags, drop zones, scratch-to-reveal, connect-the-dots, per-frame logic, sound — all in plain data, no plugin, no black box.
Status: beta. The packages and the
.flatpackformat are still moving; expect breaking changes (and tell us when something feels wrong).
The fastest way in is the visual studio: flatink.zwyk-studio.com.
Draw shapes, key your timeline, wire up interactions by clicking — then export to the open .flatpack that this toolchain compiles and plays. The editor is the friendly front door; flatkit is the code-first half of the same format: author by hand, generate from a script or an LLM, diff it in git, test it in CI. Same .flatpack either way — pick the workflow that fits the moment.
drag/drop, turn (dials), trace (follow a path), reveal (scratch cards), link (connect pairs), plus per-frame logic (every frame) and a tiny expression language..flatpack JSON, media embedded as data: URIs (or served as local files), played by a runtime with no editor and no heavy dependencies.The player must stay tiny — it gets embedded in third-party bundles — so it never pulls in the compiler. The compiler is bigger and lives in build/CLI tools. engine is the shared core, types the common leaf. The boundary is enforced in CI: the public packages never import editor-only or heavy code.
pnpm add @flatkit/player # play a .flatpack
pnpm add -D @flatkit/compiler # the flatc CLI
Write a program, compile it, play it:
flatc scene.flatink -o scene.flatpack # text sources → one playable file
flatc scene.flatink --render -o frame.png # headless PNG (see what you draw)
flatc scene.flatink --play --script gestures.json # headless replay + assertions (great in CI)
import { FlatPlayer } from '@flatkit/player'
const player = new FlatPlayer(canvas, doc, { autoplay: true })
Learn the DSL in docs/ — a guided set from getting started to
scene & drawing, behavior & interactions,
expressions & stdlib, and the flatc tooling.
Embedding it in an app (receiving send events, driving variables) →
host integration. See examples/cli for an end-to-end project.
pnpm install
pnpm verify # lint + english check + typecheck + tests
The four core packages (types, engine, compiler, player) are versioned together, sugarflat and mcp on their own. All are in place and tested; the .flatpack format and public APIs are still moving (beta), so expect breaking changes.
A .flatink program or a .flatpack document is untrusted input. The toolchain hardens the two boundaries accordingly: path confinement when compiling, data:-only assets (with an opt-in same-origin resolver for local files), and bounded per-tick work and recursion in the player. See SECURITY.md for the threat model and how to report an issue.
MIT © Zwyk Studio
FlatInk MCP server: exposes the asset library + the forge's compile/preview/publish as tools for LLM agents.
{ "mcpServers": { "flatkit-mcp": { "command": "npx", "args": [ "-y", "@flatkit/[email protected]" ] } }}เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
@flatkit/mcp ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-11-13 FlatInk MCP server: exposes the asset library + the forge's compile/preview/publish as tools for LLM agents.