Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By allan-simonv0.1.1MITIn 1 marketplace
Pulls a Figma file's full scenegraph, SVG vectors and CSS straight from its wire protocol, and can push layer edits back to live files. Claims no REST API rate limits and no paid plan; it runs a Node WebSocket with no browser once cookies are captured.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Read and write Figma files over their binary Kiwi wire protocol. Extract the full scenegraph, SVG vectors, and CSS from WebSocket frames — then push mutations back to live files from a script, no UI automation. No REST API rate limits, no paid plan required.
Ships as a lib, CLI, MCP server, and Claude Code plugin.
Figma uses Kiwi (a binary serialization format by Evan Wallace) over WebSocket for real-time sync between the editor and the server. When you open a Figma file in the browser, the entire scenegraph — every node, every vector path, every style — is streamed as Kiwi-encoded binary frames.
This library speaks that protocol in both directions.
Read — intercept frames via Chrome DevTools Protocol, decode the binary, and get structured access to everything Figma knows about your design:
commandsBlob and vectorNetworkBlob binary formatsWrite — open a standalone Node WebSocket to Figma's multiplayer endpoint (no Chrome at runtime) and apply mutations that propagate live to every connected editor:
The Figma REST API has aggressive rate limits and is read-only. The official MCP server requires a paid Dev Mode subscription. Community MCP servers hit the same REST API limits. Plugins run in the browser sandbox and can't be driven from a script or CI.
This tool reads and writes the same data Figma's own editor reads and writes — directly off the WebSocket. No rate limits. No paid plan. No browser at runtime once cookies are captured. Just the raw protocol.
lib/ Pure functions — buffer in, data out. No I/O, no side effects.
├── kiwi.mjs fig-wire frame detection and schema extraction
├── scenegraph.mjs decode, merge, and query scenegraph data
├── svg.mjs commandsBlob / vectorNetworkBlob → SVG paths
├── css.mjs node properties → CSS (Kiwi + REST API formats)
├── session.mjs FigmaSession — persistent multiplayer WebSocket + mutate()
├── clone.mjs cloneSubtree — deep copy a node subtree into fresh guids
├── builder.mjs FigmaBuilder — author nodes from scratch with gotchas handled
└── index.mjs re-exports everything
bin/ CLI tools — CDP capture, file I/O, orchestration.
├── cli.mjs entry point
├── capture.mjs single page WebSocket capture
├── capture-all-pages.mjs multi-page capture (auto-discovers pages)
├── decode.mjs binary → JSON scenegraph
├── decode-frames.mjs decode every captured frame for inspection
├── extract-svgs.mjs vector nodes → individual SVG files
├── to-html.mjs scenegraph node → HTML / Tailwind
├── recon-handshake.mjs one-shot CDP: steal cookies + multiplayer URL
├── standalone-client.mjs low-level probe: full handshake + one mutation
├── figma-write.mjs high-level write CLI (rename, auto-layout, …)
├── figma-clone.mjs deep-clone a subtree into a new independent copy
└── build-footer-fresh.mjs example: author a component from scratch
The read path is CDP-attached — the user's Chrome bears the auth, we just listen. The write path is standalone: recon-handshake steals cookies and the multiplayer URL once, then FigmaSession opens its own WebSocket from Node. No Chrome at runtime, no UI automation, runs from CI.
The lib has zero runtime dependencies on the read path and returns plain objects. FigmaSession uses ws and Node 22's built-in node:zlib zstd — no native modules. Kiwi encoding/decoding uses the schema Figma itself sends us in the first WebSocket frame.
npm install figma-kiwi-protocol
# 1. Open your Figma file in Chrome with remote debugging:
# chrome --remote-debugging-port=9222
# 2. Set environment variables:
export CDP_WS_URL="ws://localhost:9222/devtools/browser/<id>"
export FIGMA_TOKEN="figd_..." # for page discovery
export FIGMA_FILE_KEY="abc123def" # from your Figma URL
# 3. Capture all pages:
npx figma-kiwi-protocol capture-all-pages
# 4. Decode into JSON:
npx figma-kiwi-protocol decode
# 5. Extract SVGs:
npx figma-kiwi-protocol extract-svgs
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub allan-simon/figma-kiwi-protocol --plugin figma-kiwi-protocolPlugins from other owners that cover similar ground