GitHub stars
2.1K
npm downloads / week
1.1M
Commits, last 12 months
20
Contributors
20
Last commit

Overview

force-graph is an open-source JavaScript graph visualization library released under the MIT license. Its GitHub repository has 2,136 stars, 285 forks, and 20 contributors. It is actively developed with 20 commits in the last 12 months. On npm it is downloaded about 1.1M times per week.

Its GitHub description: Force-directed graph rendered on HTML5 canvas

GitHub topics: force-directed-graphcanvasd3jsforcesimulation

Install

npm
npm install force-graph
v1.52.0

Development activity

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

02.557.5 Oct 2025 Nov Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep
02.557.5 Oct 2025 Jan 2026 Apr Jul
20 commits from Oct 2025 to Sep 2026.
Show data as a table
force-graph commits per month
MonthCommits
Oct 20250
Nov 20250
Dec 20250
Jan 20261
Feb 20262
Mar 20263
Apr 20265
May 20260
Jun 20262
Jul 20260
Aug 20260
Sep 20267

Popularity among JavaScript graph & network visualization libraries

GitHub stars for force-graph and the most-starred alternatives.
Show data as a table
GitHub stars
ToolStars
xyflow38,584
G612,321
Sigma.js12,180
Cytoscape.js11,232
Vue Flow6,890
X66,716
force-graph2,136

Alternatives to force-graph

  • 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

force-graph FAQ

Is force-graph open source?

Yes. force-graph is released under the MIT license, and its source code is on GitHub.

Is force-graph still maintained?

Yes. force-graph is actively developed, with 20 commits in the last 12 months and the latest commit 7 days ago.

How do I install force-graph?

From npm: npm install force-graph.

What are the best alternatives to force-graph?

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

What language is force-graph written in?

force-graph is primarily written in JavaScript, according to GitHub.

Data: GitHub API, npm. Updated Oct 5, 2026.