mdaines / viz-js

Graphviz in your browser
https://viz-js.com/
MIT License
4.06k stars 350 forks source link
dot emscripten graphviz javascript

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 { instance } from "@viz-js/viz";

instance().then(viz => {
  document.body.appendChild(viz.renderSVGElement("digraph { a -> b }"))
});

Other packages:

Install

API

API Reference