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

icon-automation-from-figma

v1.3.0

Published

Tree-shakable React icon package generated from Figma via a CI pipeline.

Readme

icon-automation-from-figma

Tree-shakable React icon package generated from Figma. See MIGRATION_AND_CICD.md for the full Figma connection and CI/CD rollout plan this package implements.

Install

npm install

Local development

npm run storybook          # browse the icon catalog at localhost:6006
npm run build               # tsc --emitDeclarationOnly + vite build -> dist/
npm run typecheck
npm run lint
npm run check:duplicates    # fails if two icons render identical SVG markup

Connecting to Figma

  1. Copy .env.example to .env.

  2. Fill in FIGMA_TOKEN (Figma → Settings → Personal access tokens, using your own Figma account) and FIGMA_FILE_KEY (from your Figma file's URL).

  3. Run:

    npm run figma:export   # pulls icon/<category>/<name> components into src/icons/
    npm run build:catalog  # regenerates src/index.ts and src/icon-catalog.json

src/icons/ ships with six hand-written sample icons (ArrowRight, Menu, UserAdd, Check, Close, Search) alongside whatever's been pulled from Figma, all in the same IconProps (size/color) shape — Storybook and the build work with or without a Figma connection. See MIGRATION_AND_CICD.md §2 for the real @figma-export/SVGR API details this depends on (several didn't work the way the packages' own defaults suggest).

Why this tree-shakes

  • Every icon is its own module with its own named export (IconArrowRight, IconMenu, ...) — see vite.config.ts, which builds one entry per file under src/ with preserveModules: true instead of bundling everything into a single index.js.
  • "sideEffects": false in package.json tells consumers' bundlers it's safe to drop any icon module that isn't imported.
  • Zero runtime dependencies beyond a react peer dependency.

Usage in a consuming app

import { IconArrowRight } from 'icon-automation-from-figma';

function Footer() {
  return <IconArrowRight size={20} color="currentColor" />;
}

Publishing

GitHub Actions (.github/workflows/release.yml) runs the full export → validate → publish pipeline to the public npm registry (registry.npmjs.org) under your own npm account. See MIGRATION_AND_CICD.md for pipeline details, required secrets, and versioning policy.