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

figma-ant-mcp

v1.0.6

Published

<div align="center"> <h1>🚀 只需要一个Figma地址,即可把设计转换成组件代码</h1>

Readme

NPM version NPM downloads

✨ 核心特性

  • 🎯 一键转换:只需提供Figma URL,自动完成设计到代码的全流程转换
  • 🤖 智能工作流:大模型自动调用多个工具,无需手动操作
  • 🎨 精确还原:高保真还原Figma设计,包括布局、样式、交互
  • 📱 响应式支持:生成适配多端的响应式组件代码
  • 🔧 TypeScript优先:生成类型安全的React组件代码
  • 🖼️ 资源管理:自动下载和优化图片资源
  • 🎪 组件化设计:支持复杂组件的层级结构和状态管理

🚀 快速开始

基本使用

只需要向大模型提供一个Figma URL,即可自动生成React组件代码:

https://www.figma.com/file/abc123/MyDesign?node-id=1:2

大模型会自动:

  1. 解析Figma URL,提取设计数据
  2. 下载相关的图片资源
  3. 生成高质量的React组件代码
  4. 提供完整的TypeScript类型定义和CSS样式

安装配置

添加figma-mcp到客户端,如Cursor:

MacOS / Linux

{
  "mcpServers": {
    "figma-mcp": {
      "command": "npx",
       "args": [
          "-y",
          "figma-ant-mcp",
          "--figma-api-key=You figma access token"
        ]
    }
  }
}

Windows

{
  "mcpServers": {
    "figma-mcp": {
      "command": "cmd",
      "args": ["/c", "npx", "-y", "figma-ant-mcp", "--figma-api-key=You figma access token"]
    }
  }
}

可选参数:

  • --json 输出 JSON 格式(默认 YAML)
  • --include-images 启用图片下载工具(默认是开启)

🛠️ 工具说明

智能工作流编排器(推荐)

  • figma_workflow_orchestrator:一站式解决方案,输入Figma URL自动完成全流程转换

基础工具(高级用法)

  • get_figma_data:获取Figma设计文件数据
  • get_figma_images:下载Figma中的图片资源
  • react_component_generator:基于设计数据生成React组件代码

📖 更多文档

🤝 贡献

欢迎提交Issue和Pull Request来帮助改进这个项目!