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

@ariada-org/diff-stub

v0.1.0

Published

Equality-only OSS reference classifier for the differential accessibility CI gate. NOT canonical — does not emit near-duplicate matches. Open source under EUPL-1.2.

Downloads

106

Readme

@ariada-org/diff-stub

NOT canonical — equality-only stub for OSS interoperability. This package matches findings strictly by fingerprint equality. It never emits near_duplicate classifications. For production CI you should use the canonical engine; otherwise false-positive «new» findings caused by trivial DOM drift will not be merged into pre_existing here.

Equality-only reference classifier for the differential accessibility CI gate. Use it for OSS interoperability checks, schema conformance tests, and self-hosted pipelines that do not need near-duplicate matching.

Open source under EUPL-1.2. Single workspace dependency: @ariada-org/diff-schema. Node 22 LTS or newer.

Install

npm install @ariada-org/diff-stub @ariada-org/diff-schema

Usage

import { classifyStub } from "@ariada-org/diff-stub";

const diff = classifyStub({
  headFindings: [
    {
      ruleId: "wcag2/1.1.1",
      jurisdictionTags: ["WCAG2.2-AA"],
      severity: "serious",
      selector: "main > img.hero",
    },
  ],
  baseFindings: [],
  diffId: "01HVABCDEF0123456789ABCDEFG",
  computedAt: new Date().toISOString(),
  head: { scan_id: "head-scan", scan_root_hash: "a".repeat(64) },
  base: { scan_id: "base-scan", scan_root_hash: "b".repeat(64) },
});

console.log(diff.engine_info.classifier); // → "stub"
console.log(diff.classification.new.length); // → 1

API

| Export | Type | Description | | --------------------------- | -------- | ------------------------------------------------ | | classifyStub | function | Equality-only classifier producing a DiffResult. | | STUB_CLASSIFIER_VERSION | constant | Stub version string. | | STUB_NOT_CANONICAL_BANNER | constant | Warning to surface in downstream UI / logs. |

When to NOT use this package

  • You run the differential gate in a production CI pipeline where false-positive «new» findings from trivial DOM drift would block real merges.
  • You need the canonical engine guarantees (deterministic near-duplicate matching, hierarchical policy resolution, exemption-with-DOM-invalidation).

Switch to the canonical engine via the GitHub Action's engine: canonical input, or invoke the SaaS API directly.

License

EUPL-1.2 for code; CC-BY-SA-4.0 for prose; CC0-1.0 for build config. See LICENSE and NOTICE.