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

@aranzatech/diagrams-bpmn

v0.2.8

Published

BPMN 2.0 elements, nodes, edges, XML import/export, token simulation

Readme

@aranzatech/diagrams-bpmn

BPMN 2.0 building blocks for the Aranza diagram ecosystem. This package owns BPMN-specific visual components, element metadata, BPMN modeling helpers, XML import/export and preview token simulation.

It is intentionally not responsible for execution-engine communication. Flowable integration belongs in a future wrapper package or in the consuming app backend.

Public Subpaths

import { BPMN_NODE_TYPES } from "@aranzatech/diagrams-bpmn/nodes";
import { BPMN_EDGE_TYPES } from "@aranzatech/diagrams-bpmn/edges";
import { BPMN_ELEMENT_CATALOG } from "@aranzatech/diagrams-bpmn/elements";
import { parseBpmnXml, serializeBpmnXml } from "@aranzatech/diagrams-bpmn/xml";
import {
  createBpmnNodeCommand,
  replaceBpmnNodeCommand,
  serializeBpmnDiagram,
} from "@aranzatech/diagrams-bpmn/modeling";
import { createSimulation } from "@aranzatech/diagrams-bpmn/simulation";

Scope

  • BPMN visual node and edge renderers for ReactFlow.
  • BPMN element catalog and guards.
  • BPMN XML import/export through bpmn-moddle.
  • BPMN modeling commands and interaction rules on top of diagrams-core.
  • Client-side preview token simulation.

Out Of Scope

  • Flowable REST/backend communication.
  • BPMN business validation rules. Those belong in @aranzatech/flowslint.
  • Full execution semantics.

Coverage Matrix

| Area | Status | Notes | |---|---:|---| | Events | Partial | Start, end, intermediate catch/throw, boundary; common triggers rendered/imported. | | Tasks | Partial | Task variants and call activity rendered; advanced task semantics still need richer XML mapping. | | Gateways | Good | Exclusive, inclusive, parallel, event-based and complex rendered. | | Containers | Partial | Pool, lane, subprocess, transaction, event subprocess and ad-hoc subprocess rendered; lane resizing/modeling still needs depth. | | Artifacts | Partial | Text annotation and group rendered; association semantics are basic. | | Data | Partial | Data object/input/output/store and refs rendered; full item definitions/data states pending. | | Conversation | Partial | Conversation nodes and links rendered; full conversation model pending. | | Choreography | Partial | Choreography nodes rendered; participant semantics are lightweight. | | XML import/export | Partial | Basic BPMN + DI, default flows, boundary attachment, docs and relative child coordinates; full lossless roundtrip pending. | | Modeling | Growing | Commands and rules for create/connect/attach/delete/replace/resize/reparent/copy/paste; palette/context-pad/auto-place can build on this. | | Simulation | Preview | Useful design-time token simulation, not an execution engine. |

Modeling Example

import { createCommandStackState } from "@aranzatech/diagrams-core/commands";
import {
  createBpmnNodeCommand,
  connectBpmnCommand,
  replaceBpmnNodeCommand,
  runBpmnCommands,
  runBpmnCommand,
} from "@aranzatech/diagrams-bpmn/modeling";

let stack = createCommandStackState({ nodes: [], edges: [] });

stack = runBpmnCommand(
  stack,
  createBpmnNodeCommand({
    id: "task_1",
    elementType: "Task",
    position: { x: 100, y: 100 },
    label: "Review request",
  }),
);

stack = runBpmnCommand(
  stack,
  connectBpmnCommand({
    source: "start_1",
    target: "task_1",
  }),
);

stack = runBpmnCommands(
  stack,
  [
    replaceBpmnNodeCommand({
      id: "task_1",
      elementType: "UserTask",
      label: "Human review",
    }),
  ],
  { id: "review-as-user-task" },
);

BPMN Diagram Document Example

import {
  deserializeBpmnDiagram,
  serializeBpmnDiagram,
} from "@aranzatech/diagrams-bpmn/modeling";

const json = serializeBpmnDiagram(stack.current, {
  metadata: { source: "designer" },
});

const restored = deserializeBpmnDiagram(json);

Road To Stable

  • Expand XML to preserve more BPMN semantics losslessly.
  • Add real-world XML fixtures from bpmn.io/Camunda/Flowable modelers.
  • Add palette/context-pad and auto-place commands on top of the current modeling API.
  • Add robust lane/pool resize and reparent behavior.
  • Move engine-specific extensions to a dedicated package.