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

@primer/octovisuals-react

v0.3.1

Published

React components for Primer Octovisuals illustrative icons

Readme

@primer/octovisuals-react

React components for GitHub's Primer Octovisuals illustrative icon library.

Installation

npm install @primer/octovisuals-react

Usage

import {SettingsIcon, GlobeIcon} from "@primer/octovisuals-react"

function App() {
  return (
    <div>
      {/* Decorative icon — hidden from assistive technology */}
      <SettingsIcon />

      {/* Labeled icon — announced by screen readers */}
      <GlobeIcon aria-label="Global settings" />

      {/* Custom size */}
      <SettingsIcon size={48} />
    </div>
  )
}

Colors

Icons are two-tone: primary shapes use currentColor (inherits from CSS color property), accent shapes use a fixed color (#96A199). This means the primary color automatically adapts to your text color, while the accent stays true to the design.

Props

All icons accept the following props, plus any valid SVG element props:

| Prop | Type | Default | Description | | ------------ | -------- | ------- | -------------------------------------------------- | | size | number | 96 | Width and height of the icon in pixels | | aria-label | string | — | Accessible label. When set, icon gets role="img" |

When no aria-label is provided, icons render with aria-hidden="true".

RSC / SSR

All components are fully compatible with React Server Components and SSR. No "use client" directive, no React Context, no hooks — just pure render functions.

Metadata

Access the full icon catalog for building search, documentation, or tooling:

import {icons} from "@primer/octovisuals-react/metadata"

icons.forEach((icon) => {
  console.log(icon.name, icon.keywords, icon.categories)
})

Custom Icons

Use createIcon to create custom icons that match the same API:

import {createIcon} from "@primer/octovisuals-react"

export const MyCustomIcon = createIcon({
  displayName: "MyCustomIcon",
  viewBox: "0 0 96 96",
  defaultWidth: 96,
  defaultHeight: 96,
  path: '<path d="..." />',
})

License

UNLICENSED — All rights reserved. Copyright (c) 2026 GitHub, Inc.