diagram-js

esm Styles
A toolbox for displaying and modifying diagrams on the web
Version 15.2.4 License MIT
Keywords
modelermodelingcanvasdiagram-js
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 15.2.4
- 15.2.3
- 15.2.2
- 15.2.1
- 15.2.0
- 15.1.0
- 15.0.0
- 15.0.0-alpha-keyboard
- 14.11.3
- 14.11.2
- 14.11.1
- 14.11.0
- 14.10.0
- 14.9.0
- 14.8.0
- 14.7.2
- 14.7.1
- 14.7.0
- 14.6.0
- 14.5.4
- 14.5.3
- 14.5.2
- 14.5.1
- 14.5.0
- 14.4.2
- 14.4.1
- 14.4.0
- 14.3.3
- 14.3.2
- 14.3.1
- 14.3.0
- 14.2.0
- 14.1.1
- 14.1.0
- 14.0.0
- 14.0.0-alpha.1
- 13.4.0
- 13.3.0
- 13.2.0
- 13.1.0
- 13.0.0
- 12.8.1
- 12.8.0
- 12.7.3
- 12.7.2
- 12.7.1
- 12.7.0
- 12.6.0
- 12.5.0
- 12.4.0
- 12.3.0
- 12.2.0
- 12.1.1
- 12.1.0
- 12.0.2
- 12.0.1
- 12.0.0
- 11.13.1
- 11.13.0
- 11.12.0
- 11.11.0
- 11.10.0
- 11.9.1
- 11.9.0
- 11.8.0
- 11.7.0
- 11.6.0
- 11.5.0
- 11.4.4
- 11.4.3
- 11.4.2
- 11.4.1
- 11.4.0
- 11.3.0
- 11.2.1
- 11.2.0
- 11.1.1
- 11.1.0
- 11.0.0
- 11.0.0-aplha.0
- 10.0.0
- 9.1.0
- 9.0.0
- 9.0.0-alpha.2
- 9.0.0-alpha.1
- 8.9.0
- 8.8.0
- 8.7.1
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.0
- 8.3.0
- 8.2.2
- 8.2.1
- 8.2.0
- 8.1.2
- 8.1.1
- 8.1.0
- 8.0.2
- 8.0.1
- 8.0.0
- 8.0.0-0
- 7.9.0
- 7.8.3
- 7.8.2
- 7.8.1
- 7.8.0
- 7.7.0
- 7.6.3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- 0.23.0
- 0.22.5
- 0.22.4
- 0.22.3
- 0.22.2
- 0.22.1
- 0.22.0
- 0.21.1
- 0.21.0
- 0.20.0
- 0.19.6
- 0.19.5
- 0.19.4
- 0.19.3
- 0.19.2
- 0.19.1
- 0.19.0
- 0.18.4
- 0.18.3
- 0.18.2
- 0.18.1
- 0.18.0
- 0.17.0
- 0.16.3
- 0.16.2
- 0.16.1
- 0.16.0
- 0.15.4
- 0.15.3
- 0.15.2
- 0.15.1
- 0.15.0
- 0.14.2
- 0.14.1
- 0.14.0
- 0.13.3
- 0.13.2
- 0.13.1
- 0.13.0
- 0.12.1
- 0.12.0
- 0.11.0
- 0.10.2
- 0.10.1
- 0.10.0
- 0.9.4
- 0.9.3
- 0.9.2
- 0.9.1
- 0.9.0
- 0.8.1
- 0.8.0
- 0.7.0
- 0.6.0
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
- 0.0.3
- 0.0.2
- 0.0.1
<script type="module"> import diagramJs from 'https://cdn.jsdelivr.net/npm/diagram-js@15.2.4/+esm' </script>
diagram-js
A toolbox for displaying and modifying diagrams on the web.
Built with diagram-js
Some libraries / applications built on top of diagram-js:
Part of bpmn.io
- bpmn-js - A BPMN 2.0 viewer / modeler (Demo)
- cmmn-js - A CMMN 1.1 viewer / modeler (Demo)
- dmn-js - A DMN 1.3 viewer / modeler / table editor (Demo)
External
- Apache Seata Saga Designer - A visual orchestration tool for Seata Saga transaction (Demo)
- archimate-js - An ArchiMate diagram viewer and editor (Demo)
- chor-js - A BPMN 2.0 Choreography diagram viewer and editor (Demo)
- Node Sequencer - A Node-Based Sequencer for the Web (Demo)
- object-diagram-js - An object diagram viewer and editor (Demo)
- postit-js - Create Post-it boards on a canvas editor (Demo)
Resources
Development
Prepare the project by installing all dependencies:
npm install
Then, depending on your use-case you may run any of the following commands:
# build the library and run all tests
npm run all
# run the development setup
npm run dev
# run tests (single run)
npm test
Expose an environment variable TEST_BROWSERS=(Chrome|Firefox)
to execute the tests in a non-headless browser.
[!NOTE] We do not generate any build artifacts. Required parts of the library should be bundled by consuming libraries as needed instead.
License
MIT