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

@iannuttall/figma-cli

v0.0.2

Published

Fast CLI for Figma design audits, token extraction, and asset export

Downloads

154

Readme

Figma CLI

Read-only Figma tools for audits and implementation details.

Install (npm)

npm install -g @iannuttall/figma-cli

Install (local dev)

npm install
npm run build
npm link

Install as a skill

npx playbooks add skill iannuttall/figma-cli

The skill source is published at:

skills/figma/SKILL.md

Help

fig --help
fig <command> --help

One-time auth

fig auth
source ~/.zshrc

Quick command picker

  • fig export: get a picture of the design.
  • fig text: get copy you can actually copy/paste.
  • fig styles: get CSS-like values (padding, radius, colors, font size) from resolved nodes (instance overrides included).
  • fig colors: get resolved fill/stroke colors for a node + children (depth-based).
  • fig inspect: one-shot node inspection (dimensions + text + styles).
  • fig tree: get hierarchy with child node IDs/types.
  • fig comments: get feedback threads (now includes node text preview by default).
  • fig search: find where text appears.
  • fig diff: compare two nodes.
  • fig info: file-level metadata only (--page supported, --node-id not supported).

Comment -> implementation workflow

  1. fig comments <file-or-url> --unresolved
  2. Copy the node ID from a comment.
  3. Run fig inspect <file-or-url> --node-id <id> for all key implementation data.
  4. If needed, add visual export: fig export <file-or-url> --node-ids <id> --format png --retina

Layout replication workflow

  1. fig tree <file-or-url> --node-id <frame-id> --depth 3
  2. fig styles <file-or-url> --node-ids <child-id-1>,<child-id-2>,<child-id-3>
  3. fig export <file-or-url> --node-ids <frame-id> --format png --retina
  4. Optional close-up: fig export <file-or-url> --node-ids <frame-id> --format png --crop 0,0,800,120

Examples

# file-level overview
fig info <file-or-url>
fig info <file-or-url> --page "Schema Markup Generator"

# comments with node text preview (default)
fig comments <file-or-url> --unresolved
fig comments <file-or-url> --no-node-preview

# copy + CSS values
fig text <file-or-url> --node-id 2039-16736
fig styles <file-or-url> --node-id 2039-16736
fig styles <file-or-url> --node-ids 2039:16736,2039:6114
fig colors <file-or-url> --node-id 2039:16736
fig colors <file-or-url> --node-id 2039:16700 --depth 2
fig inspect <file-or-url> --node-id 2039-16736
fig inspect <file-or-url> --node-id 2039-16736 --deep
fig inspect <file-or-url> --node-id 2039-16700 --recursive 2
fig tree <file-or-url> --node-id 2039:16700 --depth 3

# find and compare
fig search <file-or-url> --text "Shortened copy"
fig diff <file-or-url> --node-ids 2039:16736,2039:6114

# export with crop (png only)
fig export <file-or-url> --node-ids 2039:16700 --format png --crop 0,0,800,120

fig styles sample output

.figma-node-2039-16736 {
  width: 160px;
  height: 48px;
  padding: 12px 20px 12px 20px;
  border-radius: 8px;
  background-color: #0d6efd;
  font-size: 16px;
}