Open source · Product & Operations

Approval SLA Calculator

Calculate approval service levels by queue, owner, priority and elapsed time.

v0.1.0 · Node.js 22+ · MIT

Browse the public repository · View releases

TOOLID=approval-sla-calculator. Offline, read-only Node 22+ CLI with no dependencies. It calculates elapsed and business-minute approval SLAs from local versioned exports. It does not contact providers or write files.

This walkthrough uses the tool's public README and checked-in example files. Run the command from a repository checkout with Node.js 22+.

Run the checked-in example

node bin/approval-sla-calculator.mjs --root examples/pass --approvals approvals.json --policy policy.json
node bin/approval-sla-calculator.mjs --root examples/fail --approvals approvals.json --policy policy.json

Read the result

The first command exits 0; the second exits 1 because 90 business minutes exceed its 89-minute policy. The package exports TOOLID and evaluateApprovals(export, policy) for direct library use without file I/O. --help describes the command. Standard output is one deterministic JSON report; bad usage writes only to standard error. Both input paths are relative to --root. Real paths must remain within the real root.