GitHub stars
1.9K
npm downloads / week
392.6K
Commits, last 12 months
268
Contributors
58
Last commit
Latest release
v15.28.0Oct 1, 2026

Overview

diagram.js is an open-source JavaScript graph visualization library released under the MIT license. Its GitHub repository has 1,926 stars, 450 forks, and 58 contributors. It is actively developed with 268 commits in the last 12 months. The latest release, v15.28.0, was published on Oct 1, 2026. On npm it is downloaded about 392.6K 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.28.0

Development activity

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

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

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
xyflow38,582
G612,323
Sigma.js12,180
Cytoscape.js11,232
Vue Flow6,888
X66,716
diagram.js1,926

Alternatives to diagram.js

  • xyflow

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

    38.6K starsTypeScriptMIT

  • G6

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

    12.3K 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.2K 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.7K 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 268 commits in the last 12 months and the latest commit 3 days ago.

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 Oct 4, 2026.