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

slidev-addon-diagram-js

v2.18.0

Published

Display BPMN, DMN and other diagram-js based models in Slidev presentations

Readme

📊 slidev-addon-diagram-js

npm version license demo

A Slidev deck in the browser runs a BPMN token simulation, evaluates a DMN decision, shows a Wardley Map, a team topology and an Event Storming board, then renames a task in the fullscreen modeler and the slide updates

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" or theme="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 with frame="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-js

Then 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

  1. Put a diagram file into your deck's public/ folder, for example public/order.bpmn.
  2. Add its component to a slide: <Bpmn bpmnFilePath="/order.bpmn" height="400px" />.
  3. Run slidev and 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

📄 License

MIT © Marco Schäck