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

@ebeloded/figma-cli

v0.1.1

Published

Scriptable CLI for the Figma REST API. Like gh for GitHub, but for Figma.

Downloads

213

Readme

figma-cli

A scriptable, pipeable CLI for the Figma REST API. Like gh for GitHub, but for Figma.

Accepts Figma URLs directly. Outputs JSON by default (pipeable to jq). Use --pretty for human-readable output.

Install

bun install -g @ebeloded/figma-cli

Requires Bun to be installed.

From source:

git clone https://github.com/ebeloded/figma-cli.git
cd figma-cli
bun install && bun link

Quick Start

# Store your Figma personal access token
figma auth set <token>

# Inspect a file
figma file <figma-url>

# List frames
figma frames <figma-url>

# Export frames as PNGs
figma export <figma-url> --format png --scale 2 --out ./assets

Auth

figma auth set <token>     # Store a Figma personal access token
figma auth status          # Verify token and show user info
figma auth clear           # Remove stored token

Get a personal access token from Figma Settings > Personal access tokens.

Commands

File Inspection

figma file <url>           # File name, last modified, pages
figma frames <url>         # List frames in a page, section, or frame
figma frames <url> --deep  # Include nested frames recursively
figma versions <url>       # File version history

Export

figma export <url>                          # Export frames as PNG
figma export <url> --format svg --scale 2   # SVG at 2x
figma export <url> --out ./assets           # Custom output directory

| Flag | Default | Options | |------|---------|---------| | --format | png | png, jpg, svg, pdf | | --scale | 1 | 1, 2, 3 | | --out | ./exports | Any directory path |

Content

figma comments <url>                        # List comments
figma comments post <url> --message "..."   # Post a comment
figma variables <url>                       # Design token variable collections
figma components <url>                      # Published components and styles

Team & Projects

figma projects <team-id>   # List team projects and their files

Global Flags

| Flag | Description | |------|-------------| | --pretty | Human-readable output with color | | --json | Force JSON output (default) | | --no-color | Disable color output |

Agent / CI Usage

Every command outputs structured JSON by default, making it easy to use in scripts and CI pipelines:

# Get frame IDs, then export specific ones
figma frames <url> | jq '.[].id'
figma export <frame-url> --format png --out ./assets

# Dump design tokens for diffing
figma variables <url> > tokens.json

Claude Code Skill

This package includes a Claude Code skill that teaches Claude how to use the figma CLI:

bunx skills add ebeloded/figma-cli

Once installed, Claude Code can use figma commands directly when you ask it to interact with Figma files.

Development

bun install
bun test
bun run cli -- <args>      # Run without compiling
bun run build              # Compile to ./bin/figma

License

MIT