bpmn-js

BPMN 2.0 渲染工具包和 Web 建模器。(A BPMN 2.0 rendering toolkit and web modeler.)

Github stars Tracking Chart

bpmn-js - BPMN 2.0 for the web

Build Status

View and edit BPMN 2.0 diagrams in the browser.

bpmn-js screencast

Installation

Use the library pre-packaged
or include it via npm
into your node-style web-application.

Usage

To get started, create a bpmn-js instance
and render BPMN 2.0 diagrams in the browser:

var xml; // my BPMN 2.0 xml
var viewer = new BpmnJS({
  container: 'body'
});

viewer.importXML(xml, function(err) {

  if (err) {
    console.log('error rendering', err);
  } else {
    console.log('rendered');
  }
});

Checkout our examples for many
more supported usage scenarios.

Dynamic Attach/Detach

You may attach or detach the viewer dynamically to any element on the page, too:

var viewer = new BpmnJS();

// attach it to some element
viewer.attachTo('#container');

// detach the panel
viewer.detach();

Resources

Building the Project

Perform the following steps to build the library, including running all tests:

cd bpmn-js
npm install
npm run all

You may need to perform additional project setup when
building the latest development snapshot.

Please checkout our contributing guidelines if you plan to
file an issue or pull request.

bpmn-js builds on top of a few powerful tools:

  • bpmn-moddle: Read / write support for BPMN 2.0 XML in the browsers
  • diagram-js: Diagram rendering and editing toolkit

License

Use under the terms of the bpmn.io license.

Main metrics

Overview
Name With Ownerbpmn-io/bpmn-js
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 4)
PlatformCross-platform, Linux, Mac, Web browsers, Windows
License:Other
所有者活动
Created At2014-03-10 12:57:00
Pushed At2025-06-02 11:24:24
Last Commit At
Release Count373
Last Release Namev18.6.2 (Posted on 2025-05-22 16:28:47)
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count9.1k
Watchers Count227
Fork Count1.4k
Commits Count3.2k
Has Issues Enabled
Issues Count1416
Issue Open Count132
Pull Requests Count682
Pull Requests Open Count6
Pull Requests Close Count203
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private