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

@empjs/nova-d2c-mcp

v0.1.2

Published

MCP server for Nova D2C

Readme

@empjs/nova-d2c-mcp

Nova D2C 的 MCP 服务器,用于在 Cursor、VSCode 等编辑器中对接 Figma 设计稿。

安装

npm install -g @empjs/nova-d2c-mcp
# 或
pnpm add -g @empjs/nova-d2c-mcp
# 或
bun add -g @empjs/nova-d2c-mcp

使用

  1. 在 Figma 中打开 Nova D2C Chrome 扩展,开启 MCP 服务器
  2. 在编辑器中运行:
npx -y @empjs/nova-d2c-mcp@latest
  1. 在 Cursor/VSCode 中配置 MCP 服务器(参考扩展内的「安装」引导)

环境变量

  • NOVA_D2C_MCP_RUNTIME_DIR - 运行时目录
  • NOVA_D2C_MCP_LOG_DIR - 日志目录
  • NOVA_D2C_MCP_ASSET_DIR - 资源存储目录
  • NOVA_D2C_MCP_TOOL_TIMEOUT - 工具调用超时(毫秒)
  • NOVA_D2C_MCP_ASSET_TTL_MS - 资源 TTL(毫秒,0 表示禁用)

工具

  • get_figma_data - 获取 Figma 文件数据(布局、内容、样式、组件信息)
  • download_figma_images - 下载 Figma 文件中的 SVG/PNG 图片
  • get_assets - 解析资源 hash 为可下载的 URL(Hub 端,内部使用)

测试客户端

提供了测试客户端用于验证完整的 MCP 链路(Client → CLI → Hub → Extension → Figma)。

前提条件:

  1. Hub 已在运行(MCP Server 已启动)
  2. Chrome Extension 已连接 Figma 并开启 MCP

使用方式:

# 仅查看可用工具列表
bun run test:client -- --listOnly

# 获取 Figma 数据(fileKey 来自 figma.com/design/<fileKey>/...)
bun run test:client -- --fileKey <fileKey>

# 指定节点和遍历深度
bun run test:client -- --fileKey <fileKey> --nodeId 123:456 --depth 2

# 指定调用其他工具
bun run test:client -- --fileKey <fileKey> --tool download_figma_images

直接用 bun 运行:

bun run test/client.ts --fileKey <fileKey>
bun run test/client.ts --fileKey <fileKey> --nodeId 123:456 --depth 2