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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mako-process-definitions

v0.1.1

Published

Machine-readable MaKo (GPKE, WiM, GeLi Gas, MaBiS) process definitions with tooling for energy market messaging.

Readme

mako-process-definitions

Maschinenlesbare Prozessdefinitionen für GPKE, WiM und GeLi Gas – gebaut für gestresste Entwickler:innen bei Energieversorgern.

Deutsch · English

⭐️ Highlights

  • Konzentriertes Expertenwissen: Wir extrahieren die BDEW/AHB-Regeln in strukturierte YAML-Dateien.
  • Sofort nutzbar: Loader, Validierung und Integrations-Plugins liefern Mehrwert ohne Regelwerks-Studium.
  • Aktuell bleiben: Der Willi-Mako-Sync synchronisiert Definitionen mit der MCP-Wissensbasis.

Maintainer: STROMDAO GmbH[email protected]


📦 Installation

npm install mako-process-definitions

Voraussetzung: Node.js 18.18 oder höher.


🚀 Schnellstart

const { ProcessDefinitionLoader } = require('mako-process-definitions');

async function main() {
  const loader = new ProcessDefinitionLoader();
  const registry = await loader.loadAll();

  const process = registry.findByPruefidentifikator('44001');
  console.log(process.name);
}

main();

🧠 Kontext für Nicht-MaKo-Profis

  • GPKE regelt die Marktkommunikation beim Lieferantenwechsel und Stammdatenänderungen (elektrische Energie).
  • WiM kümmert sich um Messwesen-Prozesse rund um Stromzähler und Messstellenbetreiber.
  • GeLi Gas deckt Lieferantenwechselprozesse im Gasmarkt ab.
  • Prüfidentifikatoren (z. B. 44001) benennen konkrete Nachrichtenszenarien.

Unsere Definitionen beschreiben pro Prozess:

  • Trigger-Nachricht (UTILMD, MSCONS, ...)
  • Erwartete Antworten inkl. Fristen
  • Prozesszustände (z. B. pending, confirmed)
  • Validierungsregeln (z. B. Marktlokations-ID muss 11-stellig sein)

📂 Repository-Überblick

| Pfad | Inhalt | | ---- | ------ | | definitions/ | YAML-Dateien je Prozess (GPKE/WiM/GeLi Gas/MaBiS) | | src/core/ | Loader, Validator, Registry | | src/integrations/ | Plugins für edifact-json-transformer, mako-message-router, Willi-Mako-Sync | | scripts/ | CLI-Tools (generate-from-willi, validate-all, sanitize-existing-definitions) | | docs/ | Hintergrundinfos für Entwickler:innen | | examples/ | Einstiegsskripte zur Integration |


🛠️ Tooling & Workflows

  • npm run lint – ESLint-Checks
  • npm test – Jest-Tests, inkl. Integrationspfade
  • npm run definitions:validate – Schema-Validierung der YAML-Dateien
  • npm run definitions:generate – Sync mit Willi Mako (erfordert Token)
  • npm run definitions:sanitize – Normalisiert bestehende YAML-Dateien mit der aktuellen Sanitizer-Logik
  • npm run definitions:link-ebd – Übernimmt Entscheidungsbaum-Mappings aus docs/decision-trees/*
  • GitHub Actions: Continuous Integration + wöchentliche Synchronisation

✋ Manuelle Kuratierung

Der Generator liefert hochwertige Defaults, aber einige Prüfi-Varianten benötigen weiterhin Fachwissen (z. B. definitions/gpke/44001-44001.yaml). Markiere solche Dateien in Reviews, dokumentiere Quellen im PR und prüfe sie im Release-Prozess erneut.


🧩 Integrationen

EDIFACT-Transformer

const { EdifactTransformer } = require('edifact-json-transformer');
const { TransformerProcessPlugin } = require('mako-process-definitions/integrations/transformer');

const plugin = new TransformerProcessPlugin();
await plugin.initialize();

const transformer = new EdifactTransformer({ plugins: [plugin] });
const message = transformer.transform(edifactInput);

console.log(message.process.expected_responses);

Prozessbasiertes Routing

const { ProcessAwareRouter } = require('mako-process-definitions/integrations/router');

const router = new ProcessAwareRouter();
await router.initialize();

const routing = await router.route(message);
console.log(routing.queue); // z. B. gpke.outbound.44001

🔐 Konfiguration

  1. .env.example kopieren → .env
  2. Willi-Mako-Token erzeugen: willi-mako auth login -e <email> -p <password>
  3. WILLI_MAKO_TOKEN setzen

Weitere Details: docs/configuration.md


📚 Weiterführende Dokumente


🤝 Contributing

Pull Requests und Issues sind willkommen. Bitte beachte:

  • Schema-Checks (npm run definitions:validate) vor jedem Commit
  • Naming: <pruefidentifikator>-<slug>.yaml
  • Konventionelle Commits bevorzugt

Contributor Covenant Code of Conduct: CODE_OF_CONDUCT.md


🛠️ Support & Kontakt


📄 Lizenz

MIT © STROMDAO GmbH