8000 GitHub - lucafabbian/viz-js: Graphviz in your browser!
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

lucafabbian/viz-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 written in Graphviz's DOT language and display it as an SVG element in a webpage:

import { instance } from "@viz-js/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.
  • examples/parcel — Example of using Viz.js with the Parcel bundler.
  • examples/script-tag — Example of using the UMD build of Viz.js.

Install

API

See the wiki.

About

Graphviz in your browser!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 80.4%
  • C 5.4%
  • TypeScript 5.0%
  • CSS 4.5%
  • Dockerfile 2.3%
  • HTML 1.3%
  • Makefile 1.1%
0