New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

@passwerk/core

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@passwerk/core

MCP-free core library: ingest, extract, map, validate, gap-report and emit EU Digital Battery Passports

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

@passwerk/core

MCP-free, browser-safe library that turns a neutral PassportDraft into an EU Digital Battery Passport in the official AAS format (IDTA 02035) and validates it in three layers.

import { emitAasJson, emitAasx, samples, validate } from '@passwerk/core';

const report = validate(samples['ev-valid']); // L1 -> emit -> L2 + L3, verdict 'valid'
const { output, verdict } = emitAasJson(draft); // canonical JSON, re-validated
const aasx = emitAasx(draft); // OPC package with the JSON inside, re-validated from bytes
  • PassportDraft: { meta, attributes: { [attributeId]: Field } } on the DIN DKE SPEC 99100 grain of @passwerk/rules. Numbers are decimal strings, dates ISO-8601.
  • Emitters read every idShort, semanticId and valueType from the bundled template catalogue.
  • Verdicts are valid, valid_with_warnings or invalid and always come from running the validators on the emitted output.

Emitters exist for IDTA 02035-1 (Nameplate), -3 (Carbon Footprint), -4 (Technical Data), -5 (Product Condition), -6 (Material Composition) and -7 (Circularity). Part 2 (Handover Documentation) follows with ingest in Phase 4 (ADR D-014). Designs: docs/superpowers/specs/2026-09-03-core-model-emit-validate-design.md and docs/superpowers/specs/2026-09-04-core-emit-parts-4-5-7-design.md.

Keywords

battery-passport

FAQs

Package last updated on 13 Sep 2026

Related posts