Skip to content

emaarco/slidev-addon-bpmn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

24 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“Š slidev-addon-bpmn

npm version license demo

Display BPMN 2.0 diagrams in your Slidev presentations. Whether you're presenting workflow designs, explaining process automation, or teaching BPMN concepts β€” this addon has you covered! πŸ’‘

Powered by bpmn-js from bpmn.io.

πŸš€ Quick Start

  1. Install the addon in your Slidev project
  2. Place your .bpmn files in the public/ folder
  3. Use the <Bpmn> component in your slides

That's it β€” your BPMN diagrams are ready to present!

Example Slide

Example BPMN diagram in Slidev

πŸ“¦ Installation

npm install slidev-addon-bpmn

Then register the addon in your slide's frontmatter:

---
addons:
  - slidev-addon-bpmn
---

Or in your package.json:

{
  "slidev": {
    "addons": ["slidev-addon-bpmn"]
  }
}

🧩 Components

This addon provides two complementary components for different use cases:

  • <Bpmn> - Static BPMN rendering for PDFs, presentations, and documentation
  • <BpmnTokenSimulation> - Interactive token-based process simulation for live demos

πŸ”§ Component Reference

Bpmn Component

Renders BPMN diagrams as static SVG images. Perfect for PDF exports and presentations.

<Bpmn
  bpmnFilePath="./my-process.bpmn"
  width="100%"
  height="400px"
/>

Props:

Name Type Default Description
bpmnFilePath string required Path to the .bpmn file (relative to public/)
width string '100%' Maximum width of the diagram
height string 'auto' Height of the diagram

BpmnTokenSimulation Component

Renders interactive BPMN diagrams with token simulation capabilities. Perfect for process walkthroughs and training.

<BpmnTokenSimulation
  bpmnFilePath="./my-process.bpmn"
  width="100%"
  height="500px"
/>

Props:

Name Type Default Description
bpmnFilePath string required Path to the .bpmn file (relative to public/)
width string '100%' Width of the diagram container
height string 'auto' Height of the diagram container (defaults to 500px when 'auto')

The token simulation provides interactive controls for stepping through process execution with animated token flow.

πŸ’‘ Tips

  • File location: BPMN files must be placed in the public/ folder
  • Supported formats: Standard BPMN 2.0 XML files (exported from Camunda Modeler, bpmn.io, etc.)
  • Styling: Use Tailwind classes on the component element to control sizing
  • Export: Each <Bpmn> component works seamlessly with Slidev's PDF/PNG export features

πŸ”— Related

Looking for DMN? If you're modeling decision tables alongside your processes, check out slidev-addon-dmn β€” the sister addon for rendering DMN diagrams in Slidev!

🀝 Contributing

Contributions are welcome! Feel free to report bugs, suggest features via issues, submit pull requests with improvements, or share your ideas and use cases.

To develop locally: clone the repo, run npm install, then npm run dev to test your changes.

πŸ™ Credits

About

πŸ“Š Display BPMN diagrams directly in Slidev. No more blurry screenshots - just reference your files and see them right in your slides. Powered by bpmn.io πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors