mdaines / viz-js

Graphviz in your browser

Home Page:https://viz-js.com/

Repository from Github https://github.commdaines/viz-jsRepository from Github https://github.commdaines/viz-js

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.

Install

API

API Reference

About

Graphviz in your browser

https://viz-js.com/

License:MIT License


Languages

Language:JavaScript 61.9%Language:HTML 23.2%Language:TypeScript 5.3%Language:C 3.8%Language:CSS 3.6%Language:Dockerfile 1.7%Language:Makefile 0.6%