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

@apx-ui/icons

v0.0.6

Published

Optional, tree-shakable SVG icon set for apx-ds. Install separately when you want icons.

Readme

@apx-ui/icons

A small, tree-shakable set of SVG icon components for apx-ds.

This package is optional. Nothing inside @apx-ui/ds depends on it — install it only when you actually want icons in your app, and you'll only pay the bundle cost for the icons you import.

Install

pnpm add @apx-ui/icons
# or
npm i @apx-ui/icons
# or
yarn add @apx-ui/icons

Peers: react >= 18, react-dom >= 18.

Usage

import { ChevronDown, Search } from '@apx-ui/icons';

export function Example() {
  return (
    <>
      <Search size={18} aria-hidden />
      <ChevronDown size={16} title="Open menu" />
    </>
  );
}

Every icon is a forwardRef'd <svg> painted with currentColor, so it inherits the parent's color. Pass any native <svg> prop — className, style, onClick, data-*, etc.

Props

| Prop | Type | Default | Notes | | ------- | --------------------- | ------- | -------------------------------------------------------------------------------------------------- | | size | number \| string | 24 | Sets both width and height. Accepts pixels or any CSS length ("1em", "1.25rem", …). | | title | string \| undefined | — | When provided, the icon becomes role="img" with an accessible name. Omit it for decorative use. | | …rest | SVGProps<SVGSVGElement> | — | Forwarded to the underlying <svg>. |

When title is omitted, the icon is rendered with aria-hidden="true" and focusable="false" so screen readers skip it.

Available icons

The current set ships 38 icons covering the most common UI affordances. Browse them all (with search and copy-import) in the renderer at /icons — run pnpm dev and open http://localhost:6008/icons.

ArrowRight, ArrowUpRight, Award, BadgeCheck, Check, ChevronDown, ChevronRight, Clock, Close, Coffee, ErrorCircle, ExternalLink, Fingerprint, Flame, Globe, GraduationCap, Heart, Info, KeyRound, Leaf, Mail, MapPin, Menu, Minus, Phone, Plus, Repeat, Scissors, Search, ShieldCheck, ShoppingBag, Smartphone, Smile, Star, Trash, Truck, Warning, Zap.

ICON_MANIFEST is the single source of truth for this list — adding an icon means a file under src/icons/, an export in src/index.ts, and a manifest entry (kept alphabetical).

ErrorCircle is named to avoid shadowing JavaScript's built-in Error constructor.

Building your own icons

createIcon is exported so you can mint icons that share the same defaults (viewBox, stroke width, a11y behaviour) as the bundled set:

import { createIcon } from '@apx-ui/icons';

export const HeartLine = createIcon(
  'HeartLine',
  <path d="M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" />,
);

Iterating the full set

For tooling — pickers, docs, registries — every shipped icon is also exposed via a metadata manifest:

import { ICON_MANIFEST } from '@apx-ui/icons';

ICON_MANIFEST.forEach(({ name, Component, description, keywords }) => {
  // Render `<Component />`, index by `keywords`, etc.
});

Importing the manifest does not defeat tree-shaking for consumers that only use a couple of icons directly — it only references the same named exports they would import anyway.