Gathering detailed insights and metrics for bpmn-js
Gathering detailed insights and metrics for bpmn-js
Gathering detailed insights and metrics for bpmn-js
Gathering detailed insights and metrics for bpmn-js
npm install bpmn-js
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
8,670 Stars
3,161 Commits
1,334 Forks
224 Watching
42 Branches
47 Contributors
Updated on 27 Nov 2024
JavaScript (98.89%)
TypeScript (0.72%)
Shell (0.22%)
CSS (0.16%)
Cumulative downloads
Total Downloads
Last day
19.3%
14,846
Compared to previous day
Last week
8.1%
73,550
Compared to previous week
Last month
4.2%
294,428
Compared to previous month
Last year
21.2%
3,283,212
Compared to previous year
8
45
View and edit BPMN 2.0 diagrams in the browser.
Use the library pre-packaged or include it via npm into your node-style web-application.
To get started, create a bpmn-js instance and render BPMN 2.0 diagrams in the browser:
1const xml = '...'; // my BPMN 2.0 xml 2const viewer = new BpmnJS({ 3 container: 'body' 4}); 5 6try { 7 const { warnings } = await viewer.importXML(xml); 8 9 console.log('rendered'); 10} catch (err) { 11 console.log('error rendering', err); 12}
Checkout our examples for many more supported usage scenarios.
You may attach or detach the viewer dynamically to any element on the page, too:
1const viewer = new BpmnJS(); 2 3// attach it to some element 4viewer.attachTo('#container'); 5 6// detach the panel 7viewer.detach();
Prepare the project by installing all dependencies:
1npm install
Then, depending on your use-case you may run any of the following commands:
1# build the library and run all tests 2npm run all 3 4# spin up a single local modeler instance 5npm start 6 7# run the full development setup 8npm run dev
You may need to perform additional project setup when building the latest development snapshot.
bpmn-js builds on top of a few powerful tools:
It is an extensible toolkit, complemented by many additional utilities.
Use under the terms of the bpmn.io license.
No vulnerabilities found.
Reason
30 commit(s) and 18 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
security policy file detected
Details
Reason
packaging workflow detected
Details
Reason
license file detected
Details
Reason
SAST tool detected but not run on all commits
Details
Reason
Found 9/22 approved changesets -- score normalized to 4
Reason
7 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More