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-schema

v0.1.0

Published

Differential accessibility CI gate — finding fingerprint, selector normalisation, DiffResult, BaselinePolicy and GateDecision schemas with reference validators. Open source under EUPL-1.2.

Readme

@ariada-org/diff-schema

Schemas and reference algorithms for the differential accessibility CI gate. Defines the canonical fingerprint, selector normalisation, diff envelope, baseline policy, and gate-decision contracts that any CI runner can consume to surface new-vs-pre-existing accessibility findings on a pull request.

Open source under EUPL-1.2. Zero runtime dependencies. Node 22 LTS or newer.

What this package does

Two accessibility scans of the same web surface — one against the head commit, one against the base — produce overlapping sets of findings. This package gives you the primitives to:

  1. Hash each finding into a deterministic 64-character fingerprint that survives DOM volatility (auto-generated IDs, framework class hashes, nth-child reordering).
  2. Classify the head set against the base set as new, pre_existing, or resolved.
  3. Resolve a declarative policy file into a single pass / fail / warn gate decision.
  4. Emit SARIF 2.1.0 for GitHub Code Scanning and GitLab SAST consumers.

The package ships the schemas + reference algorithms only. The production diff engine is shipped separately.

Install

npm install @ariada-org/diff-schema

Usage

import {
  computeFindingFingerprint,
  defaultPolicy,
  buildGateDecision,
  emitSarif,
  validateDiffResult,
} from "@ariada-org/diff-schema";

const finding = {
  ruleId: "wcag2/1.1.1",
  jurisdictionTags: ["WCAG2.2-AA", "EAA"],
  severity: "serious" as const,
  selector: "main > img.hero",
  axTreeRole: "img",
  axTreeName: "Marketing hero image",
};

const fp = computeFindingFingerprint(finding);
// → 64-char lowercase hex (SHA-256 of the JCS-canonicalised pre-image)

const policy = defaultPolicy();
// → sensible defaults: new critical/serious fail, moderate/minor warn

API

| Export | Type | Description | | --------------------------- | -------- | ---------------------------------------------------- | | computeFindingFingerprint | function | Hash a finding into the canonical fingerprint. | | normaliseSelector | function | Apply the deterministic DOM-selector rules. | | validateDiffResult | function | Lightweight runtime validation of a DiffResult. | | defaultPolicy | function | Built-in default BaselinePolicy. | | resolvePolicy | function | Resolve a finding context against a policy. | | buildGateDecision | function | Deterministic GateDecision from DiffResult + policy. | | gateDecisionHash | function | SHA-256 of the canonical decision JSON. | | emitSarif | function | SARIF 2.1.0 emitter (new findings only). | | EXIT_* codes | constant | Stable CLI exit codes. | | canonicalize | function | RFC 8785 JSON canonicalization (JCS). |

Standards referenced

License

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