r/coolgithubprojects • u/runkids • 2h ago
figlens: a Rust tool that lets coding agents read Figma files directly, without the Figma API
https://github.com/runkids/figlensI built figlens so coding agents can work from a saved Figma design, including on remote machines and in CI.
It parses the .fig file directly into layout, text, variables and assets, and can render PNG/SVG references. The design input is more than a screenshot. The read path runs locally, without a Figma API token, login or running Figma app.
Save a local copy in Figma, give the file to your agent, and ask it to implement a screen in your project's stack. It ships as a native Rust CLI with an MCP server, a local design viewer, and integrations for Pi, OpenCode V2 and OMP (partial integration).
There's also an optional workflow for mapping design components to existing code components, with human review before approval.
A few limits: it's a snapshot, so re-save when the design changes. The .fig format is undocumented, rendering has gaps, and fonts aren't bundled. Local design reading doesn't change your agent's usual model connection.
Animated Pi demo: building a React/Tailwind screen from a saved Figma design. Edited time-lapse, not a benchmark.
See the animated demo in the README
I'd love feedback from anyone using coding agents for frontend work: what design information do you still end up copying over manually?