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-links

v1.7.0

Published

Figma frame deep-link exporter for Claude Code & Cursor — installs /figma-links slash command into your project

Readme

figma-links

Generate Figma frame deep-links as Markdown — /figma-links slash command for Claude Code and Cursor.

npx figma-links init

What it does

Spins up a local server, opens a browser UI where you pick pages and frames from your Figma file, then saves a Markdown file with deep-links to each selected frame.

# Figma — Link to selection

File: **My Design File**

- Home — https://www.figma.com/design/ABC123?node-id=1-2
- Dashboard — https://www.figma.com/design/ABC123?node-id=3-4

Output is saved to figma_exports/figma-links-{fileKey}.md in your project root.


Quick start

1. Install into your project

npx figma-links init

You'll be prompted to choose your IDE:

? Which environment would you like to set up?

  1) Both (Claude Code + Cursor)
  2) Claude Code only
  3) Cursor only

Or skip the prompt with a flag:

npx figma-links init --claude
npx figma-links init --cursor
npx figma-links init --force   # overwrite existing files

2. Get a Figma Personal Access Token

  1. Go to Figma → Settings → Personal access tokens
  2. Click Add new token
  3. Enable the file_content:read scope
  4. Copy the generated figd_... token (you won't be able to see it again)

3. Set FIGMA_TOKEN

Claude Code — add to ~/.claude/settings.json:

{
  "env": {
    "FIGMA_TOKEN": "figd_..."
  }
}

Cursor — add to .env in your project root:

FIGMA_TOKEN=figd_...

Add .env to .gitignore to keep your token out of version control.

4. Run

In Claude Code or Cursor:

/figma-links https://www.figma.com/design/{fileKey}/...

Your AI agent will automatically start the local server, open the browser UI, and wait for you to save. Once saved, the server shuts down automatically.


How it works

| Step | Who | What | |------|-----|-------| | Start server | Agent | Launches serve_figma_explorer.py on localhost:8080 | | Open UI | Agent | Opens browser with Figma URL + token pre-filled | | Pick frames | You | Select page tab → check/uncheck frames → click Save | | Save & exit | UI | POSTs Markdown to local server, server shuts down |


Requirements

  • Python 3.8+ — used for the local server (stdlib only, no pip install needed)
  • Figma account — with access to the target file

Troubleshooting

| Symptom | Cause | Fix | |---------|-------|-----| | "No internet connection" | Port 8080 still occupied by a previous server | Agent handles this automatically; manually: lsof -ti :8080 \| xargs kill -9 | | API 403 error | Missing token scope or file not shared | Verify file_content:read scope on your PAT and file access | | Empty frame list | No top-level FRAME nodes on this page | Switch to a different page tab | | Port conflict | Port 8080 in use by another app | Run server manually: python3 .claude/tools/serve_figma_explorer.py 9000 |


File structure

After npx figma-links init, the following files are added to your project:

.claude/
  commands/figma-links.md          # /figma-links slash command (Claude Code)
  tools/figma-explorer.html        # browser UI
  tools/serve_figma_explorer.py    # local server

.cursor/
  skills/figma-links/SKILL.md      # /figma-links skill (Cursor)
  tools/figma-explorer.html
  tools/serve_figma_explorer.py

Output files are saved to:

figma_exports/
  figma-links-{fileKey}.md

License

MIT