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/wcag-rules-extended

v0.1.0

Published

EAA 2025-ready WCAG 2.2 AA rule packs extending axe-core. Open source under EUPL-1.2.

Readme

@ariada-org/wcag-rules-extended

EAA 2025-aligned WCAG 2.2 AA rule packs that extend axe-core with EU-specific checks.

License: EUPL-1.2 CI REUSE compliant

Quick-start

npm install --save-dev @ariada-org/wcag-rules-extended axe-core
import axe from "axe-core";
import { addEaaRules } from "@ariada-org/wcag-rules-extended";

addEaaRules(axe); // register 31 EAA-aligned rules
const results = await axe.run(); // standard axe-core API

axe-core is a peer dependency (not bundled). Node ≥ 22.

What this package does

The European Accessibility Act (EAA — Directive (EU) 2019/882, enforceable since 28 June 2025) requires WCAG 2.2 AA conformance plus sector-specific obligations for e-commerce checkout, banking, and accessibility-statement publication. The upstream axe-core ruleset covers WCAG 2.2 AA generically; it does not implement EAA Annex I sector checks or Nordic-locale national-transposition requirements.

This package adds three rule packs that close that gap. Each rule cites its WCAG 2.2 Success Criterion (SC), the corresponding EN 301 549 v3.2.1 clause, and the EAA Annex I § it implements. Rules are registered through the documented axe.configure({ rules, checks }) API — no axe-core source modification, no monkey-patching.

The package also re-exports three sibling helpers (emitVpat, generateStatement, estimatePenalty) so a single scanner run can produce VPAT 2.5 JSON, an EN 301 549 §11 conformance report, a Nordic accessibility-statement HTML file, and a per-jurisdiction penalty exposure estimate.

What this package does NOT do

It does not run a browser, host a scanner, or talk to any external service. It exposes rule and check definitions plus a small addEaaRules(axe) helper. The caller drives axe-core in whatever environment they already use (CI, Playwright, Puppeteer, @axe-core/cli, a browser extension). It does not attempt to grade conformance for non-Nordic jurisdictions beyond the EU-level Directive baseline.

API summary

| Export | Signature | Use | | ------------------------------------------ | ------------------------------------------------ | ---------------------------------------------------------------- | | addEaaRules(axe) | (axe: AxeLikeConfigurable) => void | Register all 31 rules + checks on a given axe instance | | eaaConfig() | () => { rules, checks } | Return a config object for manual axe.configure(...) | | ecommerceCheckoutRules / Checks | RuleDefinition[] / CheckDefinition[] | Pack A — 11 rules, EAA Annex I §I.3 | | statementRules / Checks | RuleDefinition[] / CheckDefinition[] | Pack B — 10 rules, EAA Annex I §I.1 + Directive 2016/2102 art. 7 | | bankingRules / Checks | RuleDefinition[] / CheckDefinition[] | Pack C — 10 rules, EAA Annex I §I.4 + Nordic-locale patterns | | allRules / allChecks | RuleDefinition[] / CheckDefinition[] | Aggregate across all three packs | | emitVpat, emitEn301549, emitDosLagen | re-export from @ariada-org/evidence-emitter | Generate compliance artefacts from violations | | generateStatement | re-export from @ariada-org/statement-generator | Render an accessibility-statement HTML/MDX file | | estimatePenalty, listJurisdictions | re-export from @ariada-org/penalty-estimator | Per-jurisdiction fine exposure estimate |

Full rule catalogue with per-rule SC + clause + § mapping: docs/rules/INDEX.md. Methodology in docs/METHODOLOGY.md.

Regulatory mapping

  • WCAG 2.2 AA — implements SC 1.3.1, 1.4.3, 2.4.6, 3.3.2, 3.3.4, 3.3.7, 4.1.2, 4.1.3 (full list per rule in docs/rules/INDEX.md)
  • EN 301 549 v3.2.1 — §6.5.1 (numeric input), §9.1.3.5 (identify input purpose), §9.3.3.4 (error prevention), §11.7 (user preferences)
  • Directive (EU) 2019/882 (EAA) Annex I — §I.1 statement, §I.3 e-commerce checkout, §I.4 banking
  • Directive (EU) 2016/2102 art. 7 — accessibility-statement template for public-sector bodies
  • National transpositions — Lag (2018:1937) DOS-lagen (SE), forskrift om universell utforming (NO), webtilgængelighed-bekendtgørelsen (DK), saavutettavuuslaki (FI)

Tests + verification

The package ships 31 rules (11 checkout + 10 statement + 10 banking), with 693 individual tests across 38 test files (vitest). This includes 2 property-based suites via fast-check (src/__property__/banking-rules.property.test.ts, src/__property__/helpers.property.test.ts), an axe-core integration suite (test/axe-core-integration.test.ts), and an EU real-world fixture suite (test/eu-real-world-fixtures.test.ts).

Reproduce locally: pnpm test for the full run, pnpm test --reporter=verbose for the per-file breakdown, pnpm test:coverage for coverage, pnpm test:mutation for Stryker mutation testing.

Sibling packages

License

EUPL-1.2 — see LICENSE. axe-core (MPL-2.0) attribution in NOTICE.