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

@passwerk/rules

v0.1.1

Published

Bundled, checksummed, offline rule artefacts and knowledge base for EU Digital Battery Passports (IDTA 02035, AAS, DIN DKE SPEC 99100)

Readme

@passwerk/rules

Bundled, checksummed, offline knowledge base for the EU Digital Battery Passport. Pure data plus typed accessors; no filesystem, no network, no model calls. Runs in Node and in the browser.

What is inside

| Directory | Content | Origin | |---|---|---| | artefacts/idta/02035-{1..7}/<version>/ | The seven official IDTA 02035 submodel templates (JSON with and without example values, AASX) | admin-shell-io/submodel-templates, pinned commit, CC-BY-4.0 | | artefacts/aas/{3.0.9,3.1.2}/aas.json | AAS metamodel JSON Schemas | admin-shell-io/aas-specs, tagged releases, CC-BY-4.0 | | artefacts/ec/ | Commission guidance "Digital Batteries Passport: data points by category" v2.0 (PDF) | European Commission, CC-BY-4.0 | | artefacts/batterypass/ | Battery Pass Data Attribute Longlist v1.2 (xlsx) | Battery Pass consortium, CC-BY-4.0 | | artefacts/batterypass/samm/ | Battery Pass Data Model aspect models v1.2.0 / 1.2.1 (SAMM Turtle, seven files) | batterypass/BatteryPassDataModel, pinned commit, CC-BY-4.0 | | artefacts/manifest.json | Source URL, version, sha256 and size of every artefact | maintained by pnpm artefacts:write | | kb/ec-datapoints.json | The 71 Commission data points with legal reference and per-category applicability | transcribed from the PDF above | | kb/generated/template-catalogue.json | Every template element (211) with path, semanticId, cardinality, value type, unit, DIN chapter | generated from the templates | | kb/generated/din-longlist.json | The 93 DIN DKE SPEC 99100 attributes with chapter, applicability, unit, format, access rights | generated from the xlsx | | kb/generated/batterypass-samm.json | The 144 Battery Pass SAMM properties with description, DIN chapter, data type, unit, enumeration values and range; dev-time cross-check only (ADR D-030) | generated from the Turtle files | | kb/attributes/*.json | 93 authored attributes: DE/EN names, synonyms, who-has-it, explanations, mapping to EC data points and template elements | authored, human-reviewed | | kb/rules.json | Plausibility rules PW-PLAUS-* (validation layer L4), DE/EN | authored | | kb/timeline.json | Legal dates with article references and status | verified against the consolidated regulation | | PROVENANCE.md | Human-readable rendering of the manifest | generated |

See kb/attributes/README.md for the attribute schema and the runtime joins.

Usage

import { attributes, getAttribute, getAttributesForCategory, templates, listCapabilities } from '@passwerk/rules';

const mass = getAttribute('batteryMass');
mass?.name.de;                 // "Batteriemasse"
mass?.applicability.LMT;       // { status: "mandatory" }
mass?.legalRefs;               // ["BR Annex VI Part A (5)", "DIN longlist: Annex XIII (1a); Annex VI Part A (5)"]
mass?.templateElements[0]?.semanticId;

getAttributesForCategory('EV', ['mandatory']).length;
templates[5]?.environment;     // IDTA 02035-6 Material Composition, AAS V3.0 JSON
listCapabilities();            // versions, checksums, counts, sovereignty statement

Maintenance

pnpm --filter @passwerk/rules run artefacts          # fetch + verify against pinned checksums
pnpm --filter @passwerk/rules run artefacts:write    # re-pin after a deliberate upstream update
pnpm --filter @passwerk/rules run artefacts:verify   # offline verification only
pnpm --filter @passwerk/rules run generate           # regenerate kb/generated/* and PROVENANCE.md

The test suite fails if a bundled file does not match its checksum, if a generated file is stale, or if any attribute references an unknown longlist row, EC data point or template path.

Honesty flags

Attributes and timeline events carry verify: true when the mapping or date came from a secondary source or a judgement call. listCapabilities() reports how many are open. Nothing in this package is legal advice.