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

@robbandi/figment

v1.2.0

Published

⚡ Figma to codegen bridge

Readme

⚡ Figment

Universal Figma to Code bridge for design-to-code workflows

Transform your Figma designs into production-ready code with the power of AI. Figment bridges the gap between design and development by providing a beautiful, minimal interface that exports your designs for any IDE or development environment.

Figment Plugin Universal IDE MCP Integration

✨ Features

  • 🎨 Beautiful UI - Modern, minimal interface designed for productivity
  • ⚡ One-Click Export - Export figments for any IDE or development environment
  • 🤖 AI-Powered - Generate React, Vue, and HTML code with MCP tools
  • 📊 Design System Analysis - Extract colors, typography, and spacing
  • 🔄 Real-time Integration - Seamless workflow from Figma to code
  • 📱 Responsive Design - Works with any component, frame, or group
  • 🌐 Universal Compatibility - Works with any IDE, editor, or development tool

🚀 Quick Start

Option 1: Simple File Export (No Setup Required!)

  1. Install the Plugin from Figma Community
  2. Select your design in Figma
  3. Click "Export Figment" - that's it!
  4. Use the exported JSON in your development workflow

Option 2: Advanced AI Integration (Recommended)

1. Install the Plugin

  • Open Figma
  • Go to Plugins → Browse plugins in Community
  • Search for "Figment" and install

2. Install & Setup (One Command!)

# Install and setup everything automatically
npx figment@latest

That's it! This will:

  • ✅ Install the package globally
  • ✅ Configure MCP for all IDEs
  • ✅ Set up export directories
  • ✅ Test the connection

3. Manual Setup (Alternative)

# If npx doesn't work, install manually
npm install -g figment@latest
figment-setup

4. Troubleshooting

If you get "command not found", the setup script will automatically fix your PATH. Just restart your terminal after running the setup.

🎯 Usage

Basic Export

  1. Select any component, frame, or group in Figma
  2. Run the Figment plugin
  3. Click "Export Figment" for immediate file download
  4. Use the JSON/YAML in your development workflow

AI-Powered Code Generation

  1. Start the bridge server: npm run bridge:start
  2. Export with "⚡ Real-time Export" in the plugin
  3. Use MCP tools in your IDE to generate code

🔧 Development Setup

For developers who want to contribute or customize:

# Clone and install
git clone https://github.com/rbnnghs/Figment.git
cd Figment
npm install

# Build everything
npm run build

# Start development
npm run dev

Development Notes

  • Console Logging: The project includes extensive console logging for debugging. For production builds, consider implementing a proper logging system or environment-based logging.
  • TypeScript: All source code is written in TypeScript with strict type checking.
  • Build Process: The project uses @create-figma-plugin/build for the Figma plugin and custom TypeScript compilation for the MCP server.

📁 File Locations

  • Exports: ~/.figma-exports/
  • Tokens: ~/.figma-exports/tokens.json
  • Latest Export: ~/.figma-exports/real-time-export.json

🤝 Contributing

We welcome contributions! Please see CONTRIBUTING.md for development guidelines.

Development Setup

# Clone the repository
git clone https://github.com/rbnnghs/Figment.git
cd Figment

# Install dependencies
npm install

# Build the project
npm run build

# Start development mode
npm run dev

📄 License

MIT License - see LICENSE for details.

🙏 Acknowledgments