force-graph
Force-directed graph component rendered on HTML5 canvas.
- Active
- MIT
- JavaScript
- JavaScript graph & network visualization libraries
- 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
Development activity
Commits per month to the default branch over the last 12 complete months.
Show data as a table
| Month | Commits |
|---|---|
| Oct 2025 | 0 |
| Nov 2025 | 0 |
| Dec 2025 | 0 |
| Jan 2026 | 1 |
| Feb 2026 | 2 |
| Mar 2026 | 3 |
| Apr 2026 | 5 |
| May 2026 | 0 |
| Jun 2026 | 2 |
| Jul 2026 | 0 |
| Aug 2026 | 0 |
| Sep 2026 | 7 |
Popularity among JavaScript graph & network visualization libraries
Show data as a table
| Tool | Stars |
|---|---|
| xyflow | 38,584 |
| G6 | 12,321 |
| Sigma.js | 12,180 |
| Cytoscape.js | 11,232 |
| Vue Flow | 6,890 |
| X6 | 6,716 |
| force-graph | 2,136 |
Alternatives to force-graph
-
xyflow
React Flow and Svelte Flow: libraries for building node-based editors, flow charts and interactive diagrams.
-
G6
Graph visualization library powered by Javascript & Typescript, maintained by Alibaba
-
Sigma.js
JavaScript library dedicated to graph drawing.
-
Cytoscape.js
JavaScript library for graph drawing maintained by Cytoscape core developers.
-
Vue Flow
Flowchart and node-based graph component for Vue 3.
-
X6
Diagramming library for DAGs, ER diagrams, flowcharts and other graph editors, maintained by Alibaba.
force-graph FAQ
Is force-graph open source?
Is force-graph still maintained?
How do I install force-graph?
npm install force-graph.What are the best alternatives to force-graph?
What language is force-graph written in?
Data: GitHub API, npm. Updated Oct 5, 2026.