Skip to content

@hpcc-js/wasm-graphviz

This package provides a WebAssembly wrapper around the Graphviz library. This allows for the rendering of DOT language graphs directly within a browser or NodeJS type environment.

Installation

sh
npm install @hpcc-js/wasm-graphviz
sh
yarn add @hpcc-js/wasm-graphviz
sh
pnpm add @hpcc-js/wasm-graphviz

Quick Start

typescript
import { Graphviz } from "@hpcc-js/wasm-graphviz";

const graphviz = await Graphviz.load();
const svg = graphviz.dot(`digraph { a -> b; }`);
document.body.innerHTML = svg;

Classes

Interfaces

Type Aliases

Reference

Released under the Apache-2.0 License.