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

@io-gui/icons

v2.0.0-alpha.3

Published

A set of icons for Io-Gui.

Downloads

272

Readme

@io-gui/icons

SVG icon system for Io-Gui with namespace-based icon registration.

See live examples here

Overview

IconsetSingleton (global registry)
    └── registers SVG icons by namespace

IoIcon (element)
    └── renders icons from registry

Usage

Displaying Icons

import { IoIcon } from 'io-icons'

// Using constructor
const icon = new IoIcon({ value: 'io:gear' })

// Using vDOM factory
ioIcon({ value: 'io:gear', size: 'medium' })

Icon Reference Format

Icons are referenced using namespace:id format:

value="io:gear"      // namespace: "io", id: "gear"
value="io:check"     // namespace: "io", id: "check"
value="custom:logo"  // namespace: "custom", id: "logo"

If no colon is present, the value is rendered as text content.

Elements

IoIcon

SVG icon element that displays icons from the global registry.

type IoIconProps = {
  value: string                    // Icon reference "namespace:id" or text
  stroke?: boolean                 // Enable stroke styling
  size?: 'small' | 'medium'        // Icon size variant
}

Properties: | Property | Type | Default | Description | |----------|------|---------|-------------| | value | string | '' | Icon reference or text content | | stroke | boolean | false | Adds stroke styling | | size | string | 'small' | 'small' = line height, 'medium' = field height |

Key behaviors:

  • Hidden when value is empty
  • Falls back to text content when no colon in value
  • Inherits fill color from --io_color CSS variable
  • SVG viewBox is fixed at 0 0 24 24

IconsetSingleton

Global singleton for registering and retrieving SVG icons.

Registering Custom Icons

import { IconsetSingleton } from 'io-icons'

const customIcons = `
<svg>
  <g id="my-icon">
    <path d="M12 2L2 7l10 5 10-5-10-5z"/>
  </g>
  <g id="another-icon">
    <circle cx="12" cy="12" r="10"/>
  </g>
</svg>
`

IconsetSingleton.registerIcons('custom', customIcons)

// Now available as:
// 'custom:my-icon'
// 'custom:another-icon'

SVG Format Requirements

  • Wrap icons in a parent <svg> element
  • Each icon must be a <g> element with a unique id attribute
  • Icons should be designed for 24x24 viewBox
  • Fill color should be omitted or set to currentColor for theme compatibility

Retrieving Icons

const svg = IconsetSingleton.getIcon('io:gear')
// Returns: '<svg viewBox="0 0 24 24" ...><g class="icon-id-gear">...</g></svg>'

Built-in Icons

The io namespace includes a comprehensive icon set:

Navigation: chevron_left, chevron_right, chevron_up, chevron_down, arrow_left, arrow_right, arrow_up, arrow_down, arrow_home, arrow_end

Actions: check, close, search, gear, tune, trash, undo, redo, reload, link, unlink

UI: hamburger, more_horizontal, more_vertical, fullscreen, fullscreen_off, visibility, visibility_off

Shapes: circle, circle_fill, box, box_fill, triangle_up, triangle_down, triangle_left, triangle_right

Status: circle_info, circle_warning, circle_help, circle_checked, lock, unlock

Numeric: numeric-0 through numeric-9, numeric-0-box through numeric-9-box

Styling

Icons inherit color from their parent and can be styled via CSS:

io-icon {
  fill: var(--io_color);
}

io-icon[stroke] {
  stroke: var(--io_colorStrong);
  stroke-width: var(--io_borderWidth);
}

io-icon[size=small] {
  width: var(--io_lineHeight);
  height: var(--io_lineHeight);
}

io-icon[size=medium] {
  width: var(--io_fieldHeight);
  height: var(--io_fieldHeight);
}