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

@velocity-exchange/icons

v1.0.1

Published

Convert Figma icons to React components

Downloads

233

Readme

@velocity-exchange/icons

React icon components generated from Figma. 200+ icons, each rendered as an SVG wrapped in a styled <span>.

Installation

npm install @velocity-exchange/icons
# or
bun add @velocity-exchange/icons

Usage

import { Account, ArrowLeft, ChevronDown } from '@velocity-exchange/icons';

// Default — 16px, inherits currentColor
<Account />

// Custom size and color
<ArrowLeft size={24} color="#6683A7" />

// Scale with font-size (useful inside text)
<ChevronDown autoSize />

// Pass props directly to the SVG element
<Account svgProps={{ strokeWidth: 2 }} />

Props

All icon components accept IconProps:

| Prop | Type | Default | Description | |------|------|---------|-------------| | color | string | currentColor | Fill color | | size | number | 16 | Width and height in px | | autoSize | boolean | false | Set width/height to 1em (scales with font-size) | | svgProps | React.SVGProps<SVGSVGElement> | — | Props forwarded to the <svg> element | | ...rest | React.HTMLProps<HTMLSpanElement> | — | Any other prop is forwarded to the wrapping <span> |

color and size are omitted from the spread to the span so they don't conflict with HTML attributes.

Generating icons from Figma

Requires Figma admin access on the source file.

1. Configure environment

Copy .env.example to .env and fill in your credentials:

cp .env.example .env
FIGMA_API_TOKEN="<your personal access token>"
FIGMA_FILE_ID=7ontXyBmE6iK8xhRMLfkCV
FIGMA_CANVAS='24x24 Product icon'

Get a personal access token from Figma → Settings → Security → Personal access tokens.

2. Install dependencies

bun install

3. Compile the generator script

bun run build-icons-script

4. Pull icons from Figma and generate components

bun run icons

This fetches all SVGs from the configured Figma canvas, converts them to TypeScript React components via SVGR, and writes them to src/icons/components/. It also regenerates src/icons/index.ts.

5. Build the package

bun run build

Output goes to dist/.

Adding icons manually

Drop .svg files into src/icons/svgs/. They will be picked up by bun run icons alongside the Figma icons and converted into components. The generator logs any existing components that don't match a Figma SVG so stale ones are easy to spot.

Scripts

| Script | Description | |--------|-------------| | bun run build-icons-script | Compile generate.tsgenerate.js | | bun run icons | Fetch from Figma and generate React components | | bun run icons:debug | Same as above with Node inspector attached | | bun run build | Compile TypeScript → dist/ | | bun run clean | Remove dist/ | | bun run clean-icons | Remove generated components in src/icons/components/ |