VivaGraph draws interactive node-link graphs in the browser with force layout, WebGL rendering, labels, and built-in pointer and keyboard interaction.
Overview
VivaGraph is a JavaScript library for rendering graphs in web pages. A single render call wires up force-directed layout, WebGL drawing, labeling, and interaction such as hover, drag, selection, tooltips, search, and keyboard or screen-reader navigation.
Version 1.0 centers on ngraph.forcelayout with pivot or random starts, optional WebGPU acceleration for large graphs, and layout that pauses when the view settles. Drawing uses WebGL with positions in textures to keep redraws cheap for very large networks.
You supply an ngraph.graph structure and may change nodes and edges at runtime. Options cover GPU use, steps per frame, background theming for light or dark pages, physics tuning, custom layout functions, and optional three-dimensional layouts.
The package ships bundled builds for script tags and ES modules with no runtime dependencies. It requires WebGL with float textures; WebGPU is used when available for layout on bigger graphs.
Key features
- Force-directed graph layout
- WebGL network rendering
- WebGPU layout for large graphs
- Hover drag select interaction
- In-canvas search shortcut
- Priority-based node labels
- Light and dark themes
- Optional 3D layout mode
Use cases
- Network relationship diagrams
- Large-scale graph exploration
- Interactive data storytelling
- Embedded analytics views
- Teaching graph algorithms visually