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

@dezkareid/icons

v1.3.0

Published

collections of icons for applications

Readme

@dezkareid/icons

SVG icon library for the dezkareid design system. Icons are authored from scratch, optimized with SVGO, and compiled to typed React and Astro components.

Installation

pnpm add @dezkareid/icons

Usage

React

import { ArrowRight, Search, Close } from '@dezkareid/icons/react';

// Basic usage — icon is decorative (aria-hidden by default)
<ArrowRight />

// Accessible icon with a label
<Search label="Search" />

// Custom size via CSS custom property
<Close style={{ '--icon-size': '32px' } as React.CSSProperties} />

Astro

---
import { ArrowRight, Search, Github } from '@dezkareid/icons/astro';
---

<!-- Decorative icon (aria-hidden by default) -->
<ArrowRight />

<!-- Accessible icon with a label -->
<Search label="Search" />

<!-- Custom class for sizing/styling -->
<Github class="social-icon" />

Astro icon props

| Prop | Type | Default | Description | |------|------|---------|-------------| | label | string | undefined | Accessible name. When set: aria-label + role="img". When omitted: aria-hidden="true". | | class | string | undefined | CSS class forwarded to the <svg> element. |

Controlling size

Use the --icon-size CSS custom property. The default is 1em (inherits from the surrounding text size).

/* Set size on a parent or class */
.my-icon {
  --icon-size: 20px;
}

.icon-container {
  --icon-size: 24px;
}

In Astro, scope via :global() when targeting generated icon SVGs:

<style>
  :global(.social-icon) {
    --icon-size: 1.125rem;
  }
</style>

Controlling color

Icons use currentColor for stroke/fill. Set color on the icon or any ancestor:

.danger-icon {
  color: var(--color-error);
}

TypeScript — icon name autocomplete

The IconName union type lists all valid icon names:

import type { IconName } from '@dezkareid/icons/react';

const icon: IconName = 'arrow-right'; // autocomplete works

Available icons

| Category | Icons | |------------|-------| | Navigation | arrow-right, arrow-left, arrow-up, arrow-down, chevron-right, chevron-left, chevron-up, chevron-down | | Actions | close, check, plus, minus, edit, trash, search, filter, menu | | Status | info, warning, error, success | | Media | play, pause, stop | | Social | github, linkedin, twitter-x, mail, rss | | Theme | sun, moon |

Adding a new icon

  1. Create a new SVG file in src/svg/ using kebab-case: my-icon.svg
  2. Follow these conventions:
    • viewBox="0 0 24 24" — 24×24 grid
    • Use stroke="currentColor" or fill="currentColor" — no hardcoded colors
    • No width or height attributes — size is controlled via CSS
    • No id, class, or style attributes (SVGO removes them anyway)
  3. Run pnpm --filter @dezkareid/icons generate (or pnpm build) to regenerate components
  4. The new icon is immediately available as MyIcon from both @dezkareid/icons/react and @dezkareid/icons/astro

Accessibility

| Prop | Behavior | |------|----------| | No label prop | aria-hidden="true" — decorative, hidden from assistive technology | | label="..." | aria-label="..." + role="img" — accessible name announced to screen readers |

Build

The build pipeline:

  1. scripts/build-icons.ts — reads src/svg/*.svg, runs SVGO in-memory, emits typed React components to src/react/ and Astro components to src/astro/
  2. tsup — bundles src/react/index.tsdist/react.mjs + dist/react.d.mts (Astro ships as source files)
# From the monorepo root:
pnpm turbo run build --filter=@dezkareid/icons

# Or just regenerate components (no tsup step):
pnpm --filter @dezkareid/icons generate

License

MIT