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/penalty-estimator

v0.1.0

Published

EAA / national-law penalty exposure estimator — per-jurisdiction administrative-fine rate-cards (SE/NO/DK/FI/DE/FR/NL/AT/CH/UK/EU). Open source under EUPL-1.2.

Downloads

106

Readme

@ariada-org/penalty-estimator

EAA / national-law penalty exposure estimator — per-jurisdiction administrative-fine rate-cards for accessibility violations.

Open source under EUPL-1.2.

Not legal advice. This is an empirical risk-modelling tool to inform remediation prioritisation. Penalty levels are statutory maxima per cited law; actual enforcement varies widely. Always consult counsel before relying on figures for budgeting.

What this package does

Given a violation list + a target jurisdiction, returns an estimated penalty-exposure range in EUR. Rate-cards model the transposition of Directive (EU) 2019/882 (European Accessibility Act) plus adjacent consumer-protection laws.

Supported jurisdictions

| Code | Country | Primary law | | ---- | -------------- | ------------------------------------------------------------------------ | | SE | Sweden | Lag 2018:1937 (DOS-lagen) + Marknadsföringslagen | | NO | Norway | Likestillings- og diskrimineringsloven §17 + tilgjengelighetsforskriften | | DK | Denmark | Lov om tilgængelighed (LBK 692/2020) | | FI | Finland | Saavutettavuuslaki 306/2019 | | DE | Germany | Barrierefreiheitsstärkungsgesetz (BFSG, 2021) + UWG | | FR | France | Loi 2005-102 art. 47 + Décret 2019-768 | | NL | Netherlands | Tijdelijk besluit digitale toegankelijkheid overheid | | AT | Austria | WZG 2020 + Konsumentenschutzgesetz | | CH | Switzerland | BehiG (non-EU, included for completeness) | | UK | United Kingdom | Equality Act 2010 + EHRC enforcement | | EU | EU aggregate | DSA art. 35 + UCPD 2005/29 ceiling |

Install

npm install @ariada-org/penalty-estimator

Quick start

import {
  estimatePenalty,
  listJurisdictions,
} from "@ariada-org/penalty-estimator";
import type { Violation } from "@ariada-org/evidence-emitter";

const violations: Violation[] = [
  /* axe-core results normalized to Violation shape */
];

const estimate = estimatePenalty(violations, "SE");

console.log(estimate.maxPenaltyEur, estimate.expectedRiskEur);
console.log(estimate.lawReferences);
console.log(estimate.authority);
// estimate.explanation — per-violation breakdown lines (human-readable)

Sector multipliers (banking, e-commerce) are applied automatically when Violation.eaaAnnexI includes 'I.3' (e-commerce) or 'I.4' (banking). Override the empirical enforcementFactor (or pass annualTurnoverEur for DSA-style turnover scaling) via the optional third argument:

const dsa = estimatePenalty(violations, "EU", {
  annualTurnoverEur: 250_000_000,
  enforcementFactor: 0.5,
});

Standards

License

EUPL-1.2. See NOTICE for the patent peace pledge.

Part of the Ariada OSS platform

This package is one component of the open-core Ariada accessibility-compliance platform. See ariada.org for the full pipeline.