Oct 2012Jan 2015May 2017Aug 2019Dec 2021Apr 2024Jul 2026
Artifactsnpmnpm install viz-js
README
Viz.js
This is a collection of packages for working with Graphviz in JavaScript. The main package, viz, is a WebAssembly build of Graphviz with a simple JavaScript wrapper.
With Viz.js, you can easily render a graph diagram as an SVG element to display it in a webpage:
import * as Viz from "@viz-js/viz";
Viz.instance().then(viz => {
document.body.appendChild(viz.renderSVGElement("digraph { a -> b }"))
});
Other packages:
lang-dot — CodeMirror language support for the Graphviz DOT language.