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/multi-domain

v0.1.1

Published

Single-jurisdiction accessibility-scan reference implementation plus extension API for community-authored jurisdiction rule packs. Open source under EUPL-1.2.

Downloads

57

Readme

@ariada-org/multi-domain

Single-jurisdiction accessibility-scan reference orchestrator plus a JurisdictionPlugin extension contract for community-authored rule packs.

Open source under EUPL-1.2.

What this package does

This package publishes three things:

  1. A canonical ScanEvent data contract that downstream accessibility-compliance tooling consumes.
  2. A JurisdictionPlugin extension interface that community implementers use to register additional accessibility jurisdictions (for example Canada AODA, Japan JIS X 8341-3).
  3. A reference orchestrator that dispatches one scan against exactly one registered jurisdiction plugin and emits a ScanEvent.

The reference orchestrator is enough to exercise the contract end-to-end, validate a community-authored plugin, and serve as a working example for downstream tools.

What this package does NOT do

The reference orchestrator deliberately runs one jurisdiction at a time. The package does not implement:

  • multi-jurisdiction execution in a single pass;
  • cross-jurisdiction conflict detection or resolution;
  • consensus / normalisation heuristics across multiple jurisdictions;
  • production rule packs (those live in sibling packages such as @ariada-org/wcag-rules-extended).

Community implementers may build their own multi-jurisdiction orchestrator on top of the JurisdictionPlugin contract published here.

Install

npm install @ariada-org/multi-domain

Quick start

import {
  JurisdictionRegistry,
  SingleJurisdictionOrchestrator,
  sePlugin,
} from '@ariada-org/multi-domain';

const registry = new JurisdictionRegistry();
registry.register(sePlugin);

const orchestrator = new SingleJurisdictionOrchestrator({
  registry,
  scannerVersion: '0.1.0',
  ruleEngineVersion: '0.1.0',
  deps: {
    captureSnapshot: async () => ({
      domHash: 'a'.repeat(64),
      axTreeHash: 'b'.repeat(64),
      cssomHash: 'c'.repeat(64),
      screenshotRefs: [],
      viewports: [{ label: 'desktop', width: 1280, height: 800 }],
    }),
    evaluateRules: async () => [],
    newId: () => '01HXYZSCANID0000000000000A',
    now: () => new Date(),
  },
});

const event = await orchestrator.scan({
  url: 'https://example.se',
  jurisdictions: ['SE'],
});
console.log(event.perJurisdiction['SE']);

API

| Export | Type | Description | | ----------------------------------- | --------- | -------------------------------------------------------------------------- | | SingleJurisdictionOrchestrator | class | Runs one scan against one registered plugin and emits a ScanEvent. | | JurisdictionRegistry | class | In-memory plugin registry with idempotent registration semantics. | | validatePluginShape | function | Validates the structure of a JurisdictionPlugin value. | | matchJurisdictionFromHints | function | Pure helper that maps URL / <meta> / <html lang> hints to a plugin. | | computePassRate | function | Pure helper that computes success-criterion pass rate from findings. | | sePlugin, dePlugin, euEaaPlugin | constants | Minimal reference plugins for Sweden, Germany, and the EU EAA umbrella. |

Type-only exports (ScanEvent, Finding, JurisdictionSubset, etc.) are also published for downstream consumers.

Writing a plugin

Copy one of the reference plugins as a starting point:

import type { JurisdictionPlugin } from '@ariada-org/multi-domain';

export const myPlugin: JurisdictionPlugin = {
  jurisdictionCode: 'XX',
  jurisdictionLabel: 'Country X',
  governingRegulation: 'Statute citation',
  technicalStandard: 'EN 301 549 v3.2.1 + WCAG 2.2 Level AA',
  supervisoryAuthority: 'Authority name',
  tldHints: ['xx'],
  metaHints: [],
  langAttrHints: ['xx'],
  rulePackId: '@ariada-org/wcag-rules-extended',
  rulePackVersion: '0.1.0',
  emitJurisdictionSubset(ctx) {
    /* … */
  },
};

Register it against a JurisdictionRegistry instance:

registry.register(myPlugin);

Standards

License

EUPL-1.2. See NOTICE for the package scope statement.