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

yet-another-bpmn-auto-layout

v2.0.0

Published

YABAL - Yet Another BPMN Auto Layout. Layout BPMN diagrams and generate missing DI information

Downloads

11,941

Readme

YABAL - Yet Another BPMN Auto Layout

Automated, intelligent layout for BPMN diagrams

Transform your BPMN XML files into beautifully organized diagrams with automatic layout algorithms. Perfect for developers, business analysts, and architects who need clear, readable process visualizations.

Live Demo npm version License: MIT

✨ Features

🏢 Collaboration Layout

  • Visualize all participants in BPMN collaborations
  • Hierarchical lane representation as tree structures

🔄 Smart Sub-Process Handling

  • Collapsed sub-processes displayed as nested diagrams
  • Expanded sub-processes integrated within parent flows
  • Context-aware layout based on sub-process type

📊 Process Organization

  • Independent process graphs arranged on separate grid lines
  • Logical grouping of related elements
  • Optimized spacing for readability

💾 Data Element Support

  • DataObjects and DataStores positioned intelligently
  • Consistent alignment with flow elements
  • Placement within appropriate participant lanes

🛠 Developer Experience

  • Debug mode with step-by-step layout visualization
  • Browser-based test statistics
  • Stable element ordering for predictable results
  • Large process graph optimization for human comprehension

🚀 Quick Start

Installation

npm install yet-another-bpmn-auto-layout

Basic Usage

import { layoutProcess } from 'yet-another-bpmn-auto-layout';
import diagramXML from './diagram.bpmn';

// Apply automatic layout to your BPMN diagram
const diagramWithLayoutXML = await layoutProcess(diagramXML);
console.log(diagramWithLayoutXML);

🖥️ Interactive Demo

For Business Analysts & Team Members

  1. Clone and run the demo:

    git clone https://github.com/IvanTulaev/yet-another-bpmn-auto-layout.git
    cd yet-another-bpmn-auto-layout
    npm install
    npm start
  2. Open your browser (automatically launches at http://localhost:8080)

  3. Use the interface:

    • Upload your BPMN file (left panel, "Open" button)
    • View the automatically laid out diagram
    • Download the result (right panel, "Download" button)

🧪 Testing

Run Test Suite

# Run tests and view results in terminal
npm runt test

# Run tests with browser inspection (after run test)
npm run test:inspect

# Update snapshots after verification
npm run test:update-snapshots

Test Specific Features

# Test grid layout functionality
npm run test ./test/GridSpec.js

📁 Project Structure

Place test BPMN files in:

/test/fixtures/

⚠️ Current Limitations

The following BPMN elements are not currently auto-laid:

  • Text annotations
  • Groups

We're actively working to expand element support in future releases.

🔗 Resources & Support

  • Live Demo - Try it now
  • GitHub Issues - Report bugs or request features
  • npm Package - yet-another-bpmn-auto-layout

📄 License

Distributed under the MIT License. See LICENSE for more information.


YABAL - Making BPMN diagrams readable, one layout at a time.