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

@stealthscale/component-a11y

v0.1.0

Published

Draws what a keyboard and a screen reader need, and an eye does not.

Readme

@stealthscale/component-a11y

Draws what a keyboard and a screen reader need: words read out and drawn nowhere, a way past the navigation, and one tab stop over a set of controls. Every component binds a recipe and draws nothing of its own, so a theme restyles all of them by extending the recipe. The preset under ./theme registers the recipes with an application's compiler.

Install

pnpm add @stealthscale/component-a11y

The package peers on react, @stealthscale/hooks and @stealthscale/theme. An application lists the preset under ./theme among the presets its compiler installs.

VisuallyHidden

Exposes its words to a screen reader and draws them nowhere. The words stay in the accessibility tree, which display: none and visibility: hidden both take them out of. A control a keyboard can reach is focusable, so it comes into view while focus is on it and a sighted reader tabbing through the page keeps their place.

import { VisuallyHidden } from "@stealthscale/component-a11y";

<button type="button">
  <Icon viewBox="0 0 24 24">…</Icon>
  <VisuallyHidden>Close</VisuallyHidden>
</button>;
<VisuallyHidden as="h2">Sections</VisuallyHidden>;

| Axis | Values | Default | | ----------- | ------ | ------- | | focusable | true | off |

SkipNav

Carries a keyboard past the navigation, composed as SkipNav.Link at the top of the document and SkipNav.Target where the content starts. The link is hidden until focus reaches it, so a reader who tabs meets it first and a reader who never tabs never sees it. The target takes a tab index of minus one, because a browser moves focus to a fragment only where the target can hold focus.

import { SkipNav } from "@stealthscale/component-a11y";

<SkipNav.Link>Skip to content</SkipNav.Link>;
<SkipNav.Target as="main">…</SkipNav.Target>;

The link points at #content and the target carries that id, so neither states the other. A page with more than one landing place names its own: <SkipNav.Link href="#search"> beside <SkipNav.Target id="search">.

RovingFocus

Holds one tab stop for a set of controls, composed as RovingFocus.Root holding RovingFocus.Item. A reader reaches the set with Tab and moves inside it with the arrows, which is what the toolbar, tablist and menubar patterns ask for. Home and End go to the ends, a disabled item is passed over, and the arrows run the other way where the line runs right to left.

import { RovingFocus } from "@stealthscale/component-a11y";
import { Button } from "@stealthscale/component-actions";

<RovingFocus.Root role="toolbar">
  <RovingFocus.Item as={Button} variant="ghost">
    Cut
  </RovingFocus.Item>
  <RovingFocus.Item as={Button} variant="ghost">
    Copy
  </RovingFocus.Item>
</RovingFocus.Root>;

The root carries no role of its own, because naming a set of controls is the caller's decision. It reports the orientation to a screen reader only where the caller gave it a role, since aria-orientation means nothing on a plain element.

| Axis | Values | Default | | ------------- | -------------------------------- | ------------ | | orientation | horizontal, vertical, both | horizontal |

wrap joins the ends together. activeId sets which item holds the stop from outside, and onActiveIdChange reports the stop moving.

Licence

MIT. See LICENSE.