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

@out-of-order/core

v0.3.1

Published

Pure focus & keyboard-accessibility analyzer. Wraps tabbable, returns a plain result.

Readme

@out-of-order/core

npm downloads bundle size

⚠️ Under heavy development. Released, but the API is still changing and may break between versions.

Pure focus & keyboard-accessibility analyzer. Wraps tabbable for the focus sequence and applies a rules layer to decide whether that sequence is valid: correct order, every stop reachable, visible, and announced. No test-runner or framework deps, just the DOM.

Runs in a real browser only. It reads CSS layout (visibility + bounding rects), which jsdom does not provide.

import { audit, formatViolations } from "@out-of-order/core";

console.log(formatViolations(audit(document.body), "text"));

API

audit(root = document, options?) => AuditResult

Each rule carries a default severity (see the table below), and can be changed or turned off completely.

// e.g. demote a noisy rule, promote another, and turn one off:
audit(document.body, {
  rules: {
    "visual-order-mismatch": "warning",
    "redundant-tabindex": "error",
    "prefer-native-element": "off",
  },
});

formatViolations(result, format)

Reshapes a result's violations into a serializable view (element references become selector strings, so the output survives JSON.stringify):

| Format | Shape | | -------------- | --------------------------------------------------------- | | text | Human-readable report string. | | by-element | One entry per offending element, its issues nested. | | by-violation | One entry per failed rule, the offending elements nested. | | flat | One entry per element-issue pair, nothing nested. |

Rules

All rules are on by default. "Severity" is the default grade, overridable per AuditOptions.rules.

| Rule | Severity | What it catches | | ---------------------------- | -------- | --------------------------------------------------------------------------- | | no-positive-tabindex | error | tabindex > 0, which hijacks natural order | | visual-order-mismatch | warning | tab order that doesn't follow the visual reading order (writing-mode aware) | | missing-accessible-name | error | focusable interactive elements with no accessible name | | aria-hidden-focusable | error | tabbable element inside aria-hidden="true" | | hidden-while-focusable | error | tabbable but invisible (opacity:0, zero size, off-screen, clipped) | | clickable-not-focusable | error | mouse-only control (role/onclick) the keyboard can't reach | | composite-roving-tabindex | warning | composite widget (toolbar, tablist, …) with one tab stop per item | | focus-escapes-modal | error | background controls still tabbable while a modal is open | | tabindex-on-noninteractive | error | tabindex="0" on a role-less, non-interactive element | | prefer-native-element | warning | generic tag reimplementing a native control via an interactive role | | duplicate-autofocus | warning | more than one focusable autofocus element (only the first ever wins) | | autofocus-not-focusable | warning | autofocus on a non-focusable element (a no-op on load) | | nested-interactive | error | a focusable control nested inside another focusable element | | redundant-tabindex | warning | tabindex="0" on an already-focusable native control (a no-op) |

Adding a rule is just a pure function (sequence, ctx) => Finding[]. Pass your own via customRules and they run alongside the built-ins:

const noShouting: Rule = {
  id: "no-shouting",
  severity: "warning",
  run: (sequence) =>
    sequence
      .filter((entry) => entry.element.textContent === entry.element.textContent?.toUpperCase())
      .map((entry) => ({ message: "ALL CAPS label reads as shouting.", target: entry })),
};

audit(document.body, { customRules: [noShouting] });

Ignoring findings

Since there are limitations you will sometimes find false-positives, in this case you can silence a finding on a specific element with the data-ooo-ignore attribute.

<!-- ignore all rules on this element -->
<div tabindex="0" data-ooo-ignore>…</div>

<!-- ignore only these rules -->
<button data-ooo-ignore="visual-order-mismatch redundant-tabindex">…</button>

Live overlay

The visual overlay (a numbered path through the tab sequence, every finding ringed in place, details on hover) lives in its own package, @out-of-order/trace, built on this analyzer.