GitHub stars
2.2K
npm downloads / week
1.5M
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,171 stars, 286 forks, and 20 contributors. It is actively developed with 20 commits in the last 12 months. On npm it is downloaded about 1.5M 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 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep Oct
02.557.5 Nov 2025 Feb 2026 May Aug
20 commits from Nov 2025 to Oct 2026.
Show data as a table
force-graph commits per month
MonthCommits
Nov 20250
Dec 20250
Jan 20261
Feb 20262
Mar 20263
Apr 20265
May 20260
Jun 20262
Jul 20260
Aug 20260
Sep 20267
Oct 20260

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
xyflow39,101
G612,398
Sigma.js12,246
Cytoscape.js11,295
Vue Flow6,935
X66,768
force-graph2,171

Alternatives to force-graph

  • 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

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 2 months 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 Nov 21, 2026.