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

@buildtovalue/cli

v1.0.2-next.0

Published

Headless CLI for bpmn-react diagrams: validate, export (xml/json) and diff.

Readme

@buildtovalue/cli

Headless tooling for bpmn-react diagrams (Node ≥ 20, no DOM required — uses the core's bundled XML parser).

Diagram commands

bpmn-react validate flow.bpmn.xml          # structural + rule validation, exit 1 on errors
bpmn-react export flow.json --to xml -o flow.bpmn.xml
bpmn-react export flow.bpmn.xml --to json
bpmn-react diff v1.json v2.bpmn.xml        # structured diff, exit 1 when different

Governance in a pipeline

approve and promote run the core lifecycle engine, so a CI job can enforce the governance gate (the "process PR"). promote writes the promoted diagram back and can register it in one step.

# Record approvals (needed before promoting to 'active')
bpmn-react approve flow.json --actor-id o1 --actor-role owner      --reason "looks good"
bpmn-react approve flow.json --actor-id c1 --actor-role compliance --reason "compliant"

# Advance the lifecycle — exits 1 if the gate isn't met (e.g. too few roles, short changelog)
bpmn-react promote flow.json --to active \
  --actor-id ops1 --actor-role operations --reason "Approved for production rollout." \
  --registry registry.json

Version registry

A registry file (registry.json) is a persistent, content-hash-verified store of versions and their rollout. Every read verifies the snapshot hashes; a tampered file is rejected.

bpmn-react registry add flow.json --to registry.json --notes "reworked the approval gate"
bpmn-react registry history registry.json
bpmn-react registry publish registry.json --version <id> --channel pilot --status active --at 2026-06-01
bpmn-react registry active registry.json --at 2026-07-01 --channel pilot   # exit 1 if none
bpmn-react registry diff registry.json --from <v1> --to <v2>
bpmn-react registry bind-run registry.json --version <id> --channel prod   # emits a run pin (JSON)

Exit codes: 0 ok · 1 check failed (validation errors, differences, governance gate, no active version) · 2 usage/parse error.

License: Apache-2.0.