frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: I/Claude reverse-engineered Figma's binary WebSocket protocol

https://github.com/allan-simon/figma-kiwi-protocol
3•allan_s•1h ago
Disclaimer: this is vibe-coded — (<- I lost you there) the README, most of the code, and the binary format reverse-engineering were done with Claude. But the tool works and I use it everyday for some days now. As Baudelaire said "qu'importe le flacon, pourvu qu'on ait l'ivresse."

~I~ Claude built a tool that decodes Figma's internal binary protocol (Kiwi format over WebSocket) to extract the full scenegraph — every node, vector path, and style — without hitting the REST API.

Why: Figma's REST API has aggressive rate limits. The official MCP server requires a paid Dev Mode plan. I needed to explore designs from my AI coding tools without constantly getting 429'd.

It helps me to:

  1. extract the svg in a clean way (even the SVG export from figma likes to write the path as 12.0000001, even though the protocol does have 12 in it)  and images

  2. Get mapping from what I see in figma <-> what i see in the exported html

  3. It helps me help our designer to produce an actual "resizable" figma, so that they finally understand the pain of "ok it works when you click play on the iphone 17 frame you put, but what about an iphone12 ?" (I was always able to say that, but before I wasn't able to point out what was wrong, now I can)
How it works: When you open a Figma file in the browser, the editor loads the entire scenegraph via WebSocket as Kiwi-encoded binary frames. This tool captures those frames via Chrome DevTools Protocol, decodes the binary data (including two undocumented vector formats), and gives you structured JSON.

What Claude reverse-engineered:

  - The fig-wire frame format (schema delivery over WebSocket)

  - commandsBlob: Figma's pre-computed SVG path commands (MoveTo, LineTo, CubicBezier, ClosePath)

  - vectorNetworkBlob: the editable path data (vertices, segments with Bezier tangent handles, regions with loops)

  - All three are documented as Kaitai Struct specs (.ksy) so you can generate parsers in any language
Ships as: JS lib (zero deps), CLI, MCP server (Cursor/Windsurf/VS Code), and Claude Code plugin.

Binary format specs, sample fixtures, and everything else: https://github.com/allan-simon/figma-kiwi-protocol

I'm not a lawyer but my understanding is this is an interoperability tool under EU Directive 2009/24/EC Article 6. No Figma code is included: it only decodes the wire format of data transmitted to your own browser.

Comments

kalmuraee•1h ago
Love it, i used to copy paste into pencil to overcome that
allan_s•47m ago
thanks!

CougarLLM: A Global Inference Server

https://www.tigrisdata.com/blog/cougarllm/
1•excerionsforte•1m ago•0 comments

The Camps Promising to Turn You–Or Your Son–Into an Alpha Male

https://www.newyorker.com/magazine/2026/04/06/the-camps-promising-to-turn-you-or-your-son-into-an...
1•petethomas•4m ago•0 comments

My GitHub Suspension, a Thread

https://bsky.app/profile/rogerioromao.dev/post/3migx73xd2227
1•OuterVale•6m ago•0 comments

Do Graduate Degrees Pay Off?

https://www.peer-center.org/research/do-graduate-degrees-pay-off
2•gnabgib•6m ago•0 comments

Death of a refugee left at a doughnut shop by Border Patrol ruled homicide

https://apnews.com/article/buffalo-new-york-refugee-death-482894a96ba31b8945f4186f823c38d2
1•petethomas•11m ago•0 comments

From Steelworkers to Care Workers

https://chicagoreader.com/news/politics/advocate-hospital-quantum-computing-iqmp/
1•toomuchtodo•12m ago•0 comments

Show HN: Squire – CLI-first remote runtimes for Claude Code / Codex workflows

https://squire.run/
1•reidgoodbar•15m ago•0 comments

Auto industry group calls for scrapping US gas tax, adopting vehicle fee

https://www.reuters.com/business/autos-transportation/auto-industry-group-calls-scrapping-us-gas-...
1•geox•15m ago•2 comments

Show HN: Structured Python control over AI computer use agents

https://github.com/aadya940/orbit
1•aadyachinubhai•17m ago•0 comments

MetaLLM – Metasploit-inspired AI/ML security testing framework

https://github.com/scthornton/MetaLLM
1•perfecXion•20m ago•0 comments

We ran 8 Bedrock models on the same RAG pipeline. The cheapest Claude model won

https://www.outcomeops.ai/blogs/youre-probably-using-the-wrong-bedrock-model
1•linsys•21m ago•0 comments

Some of the most popular graduate degrees don't pay off financially, study finds

https://www.washingtonpost.com/education/2026/03/31/graduate-degree-earnings-study/
2•bookofjoe•25m ago•3 comments

Show HN: Cynical Sally – a personality that remembers you, now on OpenClaw

https://clawhub.ai/w1ckedxt/openclaw-cynicalsally
1•thomasgeelens•28m ago•0 comments

ZomboCom stolen by a hacker, sold, now replaced with AI-generated makeover

https://old.reddit.com/r/oldinternet/comments/1raiz8v/zombocom_was_stolen_by_hacker_put_up_for_sa...
6•bananaboy•29m ago•0 comments

Montana referendum to outlaw corporate campaign contributions [video]

https://www.youtube.com/watch?v=p1fPbGHe3xE
2•le-mark•32m ago•0 comments

Show HN: Grab web elements for CLI users

https://github.com/Jingquank/Claude-Code-Probe/tree/main
1•cozyss•33m ago•0 comments

Anthropic Races to Contain Leak of Code Behind Claude AI Agent

https://www.wsj.com/tech/ai/anthropic-races-to-contain-leak-of-code-behind-claude-ai-agent-4bc5acc7
2•petethomas•35m ago•1 comments

Show HN: 65k AI voters predict UK local elections with 75% accuracy

https://kronaxis.co.uk/blog/predicting-may-7-elections
1•JasonDuke•37m ago•0 comments

Explore every Claude Code buddy

https://perplexes.github.io/every-buddy/
2•perplexes•39m ago•1 comments

What Next for Junior Developers?

https://www.infoworld.com/article/4152683/what-next-for-junior-developers.html
2•vinhnx•39m ago•0 comments

43 hours battery life: Dell XPS 14 2026 lasts almost 3x longer vs MacBook Air 15

https://www.notebookcheck.net/43-hours-battery-life-Dell-XPS-14-2026-lasts-almost-3x-longer-vs-Ma...
6•akyuu•39m ago•0 comments

A new C++ back end for ocamlc

https://github.com/ocaml/ocaml/pull/14701
30•glittershark•40m ago•1 comments

Shared mutable state in Rust (2022)

https://draft.ryhl.io/blog/shared-mutable-state/
1•vinhnx•41m ago•0 comments

Information Contagion; Polymarket Trade

https://rajivsethi.substack.com/p/information-contagion
1•neehao•41m ago•0 comments

CoolIT Systems to be acquired by U.S. company Ecolab

https://www.cbc.ca/news/canada/calgary/coolit-sale-tech-deal-calgary-9.6941841
1•BiraIgnacio•41m ago•0 comments

Gaim 3 Exists

https://gaim.imfreedom.org
1•birdculture•42m ago•0 comments

Wi-Fi Graffiti

https://spencer.place/creation/wi-fi-graffiti/
1•wonger_•44m ago•0 comments

Anyone came up with any great format for technical interviews?

1•dennis3124•44m ago•0 comments

Managed Nationalism

https://en.wikipedia.org/wiki/Managed_nationalism
5•tokai•45m ago•0 comments

Obfuscation is not security – AI can deobfuscate any minified JavaScript code

https://www.afterpack.dev/blog/claude-code-source-leak
9•rvz•49m ago•2 comments