GitHub stars
1.9K
npm downloads / week
576.8K
Commits, last 12 months
274
Contributors
58
Last commit
Latest release
v15.30.0Nov 16, 2026

Overview

diagram.js is an open-source JavaScript graph visualization library released under the MIT license. Its GitHub repository has 1,930 stars, 455 forks, and 58 contributors. It is actively developed with 274 commits in the last 12 months. The latest release, v15.30.0, was published on Nov 16, 2026. On npm it is downloaded about 576.8K times per week.

Its GitHub description: A toolbox for displaying and modifying diagrams on the web.

GitHub topics: diagram-jsjavascriptsvghacktoberfestdiagram-editor

Install

npm
npm install diagram-js
v15.29.1

Development activity

Commits per month to the default branch over the last 12 complete months.

050100 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep Oct
050100 Nov 2025 Feb 2026 May Aug
274 commits from Nov 2025 to Oct 2026.
Show data as a table
diagram.js commits per month
MonthCommits
Nov 20254
Dec 20252
Jan 202640
Feb 202611
Mar 202615
Apr 202617
May 202611
Jun 202650
Jul 202677
Aug 202617
Sep 202622
Oct 20268

Popularity among JavaScript graph & network visualization libraries

GitHub stars for diagram.js and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
xyflow39,070
G612,397
Sigma.js12,245
Cytoscape.js11,296
Vue Flow6,939
X66,768
diagram.js1,930

Alternatives to diagram.js

  • xyflow

    React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.

    39.1K starsTypeScriptMIT

  • G6

    Graph visualization library powered by Javascript & Typescript, maintained by Alibaba

    12.4K starsTypeScriptMIT

  • Sigma.js

    JavaScript library dedicated to graph drawing.

    12.2K starsTypeScriptMIT

  • Cytoscape.js

    JavaScript library for graph drawing maintained by Cytoscape core developers.

    11.3K starsJavaScriptMIT

  • Vue Flow

    Flowchart and node-based graph component for Vue 3.

    6.9K starsTypeScriptMIT

  • X6

    Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba.

    6.8K starsTypeScriptMIT

diagram.js FAQ

Is diagram.js open source?

Yes. diagram.js is released under the MIT license, and its source code is on GitHub.

Is diagram.js still maintained?

Yes. diagram.js is actively developed, with 274 commits in the last 12 months and the latest commit yesterday.

How do I install diagram.js?

From npm: npm install diagram-js.

What are the best alternatives to diagram.js?

The most popular alternatives listed in JavaScript graph & network visualization libraries are xyflow, G6, and Sigma.js. See the full ranking.

What language is diagram.js written in?

diagram.js is primarily written in JavaScript, according to GitHub.

Data: GitHub API, npm. Updated Nov 18, 2026.