viz.js

A hack to put Graphviz on the web.

Github stars Tracking Chart

Viz.js

Build Status

This project builds Graphviz with Emscripten and provides a simple wrapper for using it in the browser.

For more information, see the wiki.

See Also

Have a look at Dagre, which is not a hack.

Getting Viz.js

Building From Source

To build from source, first install the Emscripten SDK. You'll also need Node.js and Yarn.

Install the development dependencies using Yarn:

yarn install

The build process for Viz.js is split into two parts: building the Graphviz and Expat dependencies, and building the rendering script files and API.

make deps
make all

Running Browser Tests

The browser tests can be run locally using Selenium WebDriver.

First, serve the project directory at http://localhost:8000.

python -m SimpleHTTPServer

Then, run tests using test-browser/runner.js. For example, to run test-browser/full.html in Chrome:

node test-browser/runner --file full.html --browser chrome

Main metrics

Overview
Name With Ownermdaines/viz-js
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 7)
Platform
License:MIT License
所有者活动
Created At2012-08-24 15:19:20
Pushed At2025-06-09 17:05:31
Last Commit At
Release Count56
Last Release Namerelease-viz-3.13.0 (Posted on )
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count4.2k
Watchers Count114
Fork Count356
Commits Count555
Has Issues Enabled
Issues Count166
Issue Open Count7
Pull Requests Count113
Pull Requests Open Count2
Pull Requests Close Count19
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private