slidev-addon-diagram-js
v2.18.0
Published
Display BPMN, DMN and other diagram-js based models in Slidev presentations
Maintainers
Readme
📊 slidev-addon-diagram-js

Show the real model in your slides, not a screenshot of it.
A Slidev addon that renders BPMN processes, DMN decisions, Team Topologies, Wardley Maps and Event Storming boards straight from the files your modeler saves.
💡 Why
A screenshot of a process is out of date the moment the model changes, and it cannot show how a token moves or which rule fires. This addon reads the model file itself, so the slide shows the current version, and lets you simulate or edit it in front of the room.
✨ What you get
- Sharp in every export. The static viewers render to SVG, so diagrams stay crisp in Slidev's PDF and PNG export.
- Walk the room through it. Run tokens through a BPMN process, show which path it takes for the data the audience picks, or evaluate a DMN decision with their inputs.
- Edit mid-talk. Open a fullscreen modeler from the slide, change the model, and the slide shows the change until you reload the deck.
- Fits your deck. Diagrams follow Slidev's dark mode, or you pin them with
theme="light"ortheme="dark". Interactive diagrams sit in a quiet card in your theme's colours and accent, in any Slidev theme; restyle it with a few CSS variables or drop it withframe="none"(details).
🧩 Supported notations
Each notation has a static viewer for exports and a modeler for live editing; its page lists every component and prop.
| Notation | File | Components | Docs |
|---|---|---|---|
| BPMN 2.0 | .bpmn | <Bpmn>, <BpmnTokenSimulation>, <BpmnPathSimulation>, <BpmnExplore>, <BpmnModeler> | BPMN |
| DMN 1.3 | .dmn | <DmnDrd>, <DmnTable>, <DmnSimulate>, <DmnModeler> | DMN |
| Team Topologies | .tt | <TeamTopologies>, <TeamTopologiesModeler> | Team Topologies |
| Wardley Maps | .owm | <WardleyMap>, <WardleyMapExplore>, <WardleyMapModeler> | Wardley Maps |
| Event Storming | .storm | <EventStorming>, <EventStormingModeler> | Event Storming |
📦 Install
You need a Slidev deck on Slidev 50 or newer.
npm install slidev-addon-diagram-jsThen add the addon to your deck's frontmatter:
---
addons:
- slidev-addon-diagram-js
---Coming from slidev-addon-bpmn or slidev-addon-dmn? This package replaces both and your slides need no changes; see the migration guide.
🚀 Get started
- Put a diagram file into your deck's
public/folder, for examplepublic/order.bpmn. - Add its component to a slide:
<Bpmn bpmnFilePath="/order.bpmn" height="400px" />. - Run
slidevand the slide shows your process.
The live demo deck shows every component in action.
🙋 Help and feedback
- Documentation: every component and its props are on the notation's page, linked in the table above.
- Bugs and ideas: open an issue.
🤝 Contributing
Bug reports, ideas and pull requests are welcome. How to run the example deck, test and release the addon is in CONTRIBUTING.md.
🙏 Credits
- bpmn-js, dmn-js and diagram-js by bpmn.io
- The Team Topologies, Wardley Maps and Event Storming renderers by Miragon
- Inspired by slidev-addon-excalidraw
📄 License
MIT © Marco Schäck
