...
github-icon
GitHub
4.21kstar-icon
Created 13 years ago, last commit 5 days ago
9 contributors
582 commits
Stars added on GitHub, month by month
7
8
9
10
11
12
1
2
3
4
5
6
2024
2025
Stars added on GitHub, per day, on average
Yesterday
=
Last week
+0.4
star-icon /day
Last month
0.0
star-icon /day
Last 12 months
+0.5
star-icon /day
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.
  • website — Try out Graphviz and Viz.js. Render a graph visualization in your browser.

Install

API

API Reference