viz-js is a JavaScript rendering library and graph visualization engine that converts Graphviz DOT language descriptions into visual diagrams. It functions as a Graphviz rendering library designed to produce SVG output for web applications.
The project utilizes a WebAssembly port of the Graphviz C library to execute layout engines directly in the browser. To maintain interface responsiveness, it processes computationally expensive layout calculations within background worker threads and uses a standardized JSON format for layout serialization.
The library provides tools for dynamic graph visualization and web-based diagramming, enabling the generation of network diagrams and flowcharts from structured text. It also includes a DOT language parser and supports syntax highlighting for scripts written in the DOT language.