tenhaw / kit

Package reference

Delivery metrics

Calculate five DORA metrics and flow observations for one service from linked delivery events.

npm install @tenhaw/delivery-metrics

CLI

npx tenhaw@latest delivery-metrics --from-file events.json --since 2026-10-01T00:00:00Z --until 2026-11-01T00:00:00Z --json

Library

import { computeMetrics } from '@tenhaw/delivery-metrics';
const report = computeMetrics([], { since: '2026-10-01T00:00:00Z', until: '2026-11-01T00:00:00Z' });
console.log(report.metrics.changeFailRate); // value: null

Input and output

computeMetrics(events, { since, until, service })

Inputs are validated against JSON Schema 2020-12. Invalid input reports a JSON path. Pure calculations return deterministic JSON without timestamps or promotion fields.