Use this file to discover Exa products, pricing, evaluations, comparisons, use cases, agent interfaces, and technical documentation before exploring further.
JavaScript diagram libraries draw flowcharts, network graphs, and process diagrams in the browser. A diagram library keeps a model of nodes and the edges between them, then lays that model out and renders it as SVG or canvas. These libraries draw the flowcharts in documentation, the process editors in business apps, and the network maps in analysis tools.
Popularity
cytoscape has the most monthly downloads in this comparison, at 100.3M.
private focus(cy: Cy.Core) {
if (!this.focusSelector) {
return;
}
// only perform the focus one time const focusSelector = this.focusSelector;
this.focusSelector = undefined;
let selected = cy.$(focusSelector);
if (!selected) {
addInfo(
'Could not focus on requested node. The node may be idle or hidden.',
true,
undefined,
`${focusSelector}`
);
return;
}
// If there is only one, select it if (selected.length === 1) {
this.selectTargetAndUpdateSummary(selected[0]);
} else {
// If we have many elements, try to check if a compound in this query contains everything, if so, select it. const compound = selected.filter('$node > node');
if (compound && compound.length === 1 && selected.subtract(compound).same(compound.children())) {
this.selectTargetAndUpdateSummary(compound[0]);
selected = compound;
}
}
// Start animation new FocusAnimation(cy).start(selected);
}
mermaid
Renders text descriptions into diagrams and visualizations.
Downloads / mo
98.9M
Stars
91.1K
Last release
12.3.0
License
MIT
Strengths
Keeps diagrams in text.Update the diagram description to change the rendered result.
Themes individual diagrams.Apply themes across a site or to individual diagrams.
import * as Viz from "@viz-js/viz";
Viz.instance().then(viz => {
const svg = viz.renderSVGElement("digraph { a -> b }");
document.getElementById("graph").appendChild(svg);
});
import * as go from 'gojs';
const diagram = new go.Diagram('myDiagramDiv');
diagram.nodeTemplate = new go.Node('Auto').add(
new go.TextBlock().bind('text', 'key'),
);
diagram.model = new go.GraphLinksModel(
[{ key: 'Alpha' }, { key: 'Beta' }],
[{ from: 'Alpha', to: 'Beta' }],
);
maxGraph
Builds diagrams entirely on the client and renders them with SVG and HTML.
Downloads / mo
519.0K
Stars
1.2K
Last release
0.25.1
License
Apache-2.0
Strengths
Edits vertices and edges.Resize, move, and rotate shapes, then arrange them with automatic layouts.
Reads mxGraph XML.Load diagrams saved in the mxGraph XML format.
Mermaid is a JavaScript tool that renders diagrams, charts, and visualizations from a Markdown-based text syntax. Update the diagram description to change the rendered result.
GoJS is a JavaScript and TypeScript library for creating and manipulating diagrams, charts, and graphs. Organizational use requires a purchased license beyond private evaluation.
maxGraph and @antv/x6 build editable diagrams in the browser with SVG and HTML rendering. bpmn-js covers BPMN process diagrams.
Mermaid compiles its own Markdown-based diagram languages to SVG, while Viz.js renders Graphviz DOT text through a WebAssembly build of Graphviz.
Cytoscape.js is a graph theory library for network analysis and visualization, with layouts that position nodes automatically.
The render method returns failures without throwing for invalid DOT syntax.
For coding agents
Found your diagram library? Help your agent use it.
Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.