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 🙏

© 2025 – Pkg Stats / Ryan Hefner

a11y-toolkit

v0.2.5

Published

A collection of tools for providing more accessible user interfaces

Readme

A11y Toolkit

This is a small collection of vanilla JS tools that can be used to make web apps more accessible.

These tools are very low-level building blocks that can be used to implement common accessibility (a11y) patterns for JavaScript based widgets such as menus, popovers, carousels, etc.

Below is an overview, but you can read the full documentation.

Resources

Many of the patterns that these tools implement can be found on the WAI-ARIA and MDN websites.

These are great places to start when implementing accessible widgets, and the tools in this library will make it easier to implement the more interactive patterns.

Vocabulary

This library attempts to stay internally consistent with terminology, although some of the terms might differ slightly from common terms to either broaden or tighten their scope.

Primitives

Primitives are pure functions that inspect, select, or modified one or more element-like DOM objects.

Inspectors

Inspectors are functions that accept one or more element-like DOM objects and return information about them. For example, isFocusable will return a boolean whether a provided Elemental is focusable.

Selectors

Selectors are functions that return one or more element-like DOM objects (often of a specific type such as HTMLElement) given specific search criteria. For example, getFirstFocusableChild will return the first focusable HTMLElement within a specific container.

Modifiers

Modifiers made changes to one or more provided element-like DOM objects. For example, focusFirstFocusableChild will locate the first focusable HTMLElement within a specific container and then move the browser's focus to it.

Managers

Managers are stateful classes that provide higher-level functionality for implementing common a11y patterns such as a roving tab index or focus trap. Managers do not fully implement any widget patterns, but are instead used in concert with one another to implement widgets.

Managers can share lists of element-like DOM objects using an ElementList that is passed among them. This way, the consumer can manage the list of elements included in the pattern, and any sub-managers will share the same list in real time (i.e., it acts as shared memory). Managers do not add or remove elements from the shared ElementList, that is up to the consumer.

Contributing

If there is an issue with any existing functionality, or if you would like to request some functionality, please open an issue with as much detail as possible.