New! Render PlantUML diagrams directly inside GitHub
with our official browser extension —
No server. No tokens. No tracking. Zero permissions but clipboard. —
Try it out and let us know what you think!
The context of VizJs
- PlantUML has to create a new process for each diagram, (and communication with this new process could be source of bugs).
- Users have to install DOT on their system, in addition of Java.
- PlantUML is not fully portable.
Using visjs
This means that it is possible to use PlantUML without installing GraphViz (which can be useful when you do not have administration right for example).
To do so, in addition to plantuml.jar, you must have:
- vizjs: A Java library written by Andreas Studer that embed viz.js and call J2V8
- The corresponding J2V8 implementation for your OS:
- For Windows x86/64 bit: j2v8_win32_x86_64-3.1.6.jar
- For Linux x86: j2v8_linux_x86_64-3.1.6.jar
- For Mac OS: j2v8_macosx_x86_64-3.1.6.jar
GRAPHVIZ_DOT environment variable value to vizjs
(or through the command line with -D flag or -graphvizdot flag).
Then, you can double-check your configuration by running the usual:
@startuml
testdot
@enduml