npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

figmake-pro

v3.0.7

Published

Design-to-code compiler with AI agent guardrails. Extract Figma designs as pixel-perfect React code with enforced design tokens.

Downloads

732

Readme

Figmake

npm version CI Windows Support License Latest Release

Design-to-code compiler with AI agent guardrails.
Extract Figma designs as pixel-perfect React code. Generate design lockfiles that keep vibecoding agents from hallucinating styles.

Why Figmake?

AI coding agents are powerful but they hallucinate design. Colors drift. Spacing breaks. Fonts get replaced. Your carefully crafted design system dissolves with every prompt.

Figmake extracts the ground truth from your Figma files and generates:

  1. Pixel-perfect React components with exact styles
  2. Design lockfiles that any AI agent can reference
  3. Prompt context that forces agents to respect your design system

Quick Start

Figmake in action

1. Install Figmake

npm install -g figmake-pro

2. Start Interactive Shell

figmake

The interactive shell provides:

  • Command menu - Press / to browse all available commands with descriptions
  • Smart autocomplete - Start typing any command and press Tab to complete
  • Command history - Use ↑/↓ arrows to navigate previous commands
  • Syntax highlighting - Commands, flags, and URLs are color-coded
  • Status line - Shows history count and token status at a glance

Quick commands: | Command | Description | |---------|-------------| | / | Open command menu | | /convert | Convert Figma to React | | /demo | Generate demo components | | /config | Configuration wizard | | /help | Show detailed help | | /clear | Clear the screen | | /exit | Exit the shell |

3. Or Use Direct Commands

# Show help
figmake --help

# Run demo (no token needed)
figmake --demo

# Convert a Figma file
figmake convert "https://figma.com/file/..." --token YOUR_TOKEN

# Interactive config
figmake --config

Troubleshooting

Token Issues

  • Error: 403 Forbidden: Ensure your token has "Read-only" or "Read/Write" permissions for the file.
  • Error: 404 Not Found: Check if the Figma URL is correct and the file key is valid.

Export Issues

  • Missing Styles: Ensure all elements are inside a Frame or Component. Groups are exported as containers but may not preserve all layout properties as well as Frames.
  • Image Placeholders: By default, Figmake uses placeholders for SVGs and Vectors. To change this, update your configuration.

Examples

Check the examples/ directory for:

With Cursor/Claude/Copilot

figmake guard --output .cursor/rules/design-system.mdc
# Now your AI agent won't hallucinate styles

Features

· ✅ Pixel-perfect conversion (no rounding, no opinionated scales) · ✅ Auto Layout → Flexbox/Grid with exact values · ✅ Framer Motion animations from Figma prototypes · ✅ Event handlers for interactive elements · ✅ Design token extraction (colors, typography, spacing, shadows) · ✅ AI agent lockfiles (Cursor, Claude, Copilot, Windsurf) · ✅ Component collision detection · ✅ Code metrics and complexity analysis · ✅ README generation on export