qmetrics.net

React Force Graph

React force-directed graph components in 2D, 3D, VR, AR

Design & VisualizationDesktop/CLI app
React Force Graph screenshot

react-force-graph wraps the force-graph suite as React components for 2D canvas, 3D WebGL, VR, and AR graph layouts. It uses d3-force-3d physics with rich interaction props.

Overview

react-force-graph publishes four related npm packages—2D, 3D, VR, and AR—that share parallel APIs for visualizing networks as force-directed layouts. Each accepts a graphData object with nodes and links, then iterates positions using a physics simulation while rendering with HTML canvas, Three.js, A-Frame, or AR.js as appropriate.

Common capabilities include zoom and pan, draggable nodes, hover and click handlers, customizable node and link colors, labels, widths, curvatures, and dynamic data updates. Two-dimensional mode allows custom canvas drawing callbacks for nodes and links; three-dimensional modes support custom Three.js objects, post-processing effects, and camera controls such as fit-to-canvas or automatic orbit.

The suite builds on d3-force-3d for layout forces and exposes extensive props for styling, visibility accessors, collision behavior, DAG tree modes, directional particles on links, and highlight selection patterns. VR and AR variants add stereoscopic navigation and marker-tracked placement options with configurable scale and offset.

Consumers install the specific package they need plus its peer dependencies, or load bundles via script tags in simpler setups. Example galleries demonstrate arrows, particles, text nodes, images, expandable trees, and large graphs.

Key features

  • 2D, 3D, VR, and AR graph packages
  • Force-directed d3-force-3d layout
  • Zoom, pan, drag interactions
  • Custom node and link styling hooks
  • Dynamic graph data updates
  • Click and hover event handlers
  • DAG and tree layout modes
  • Canvas or WebGL rendering paths

Use cases

  • Network relationship exploration
  • Knowledge graph visualization
  • VR or AR graph demos
  • Interactive dependency diagrams

Tags

Similar software

Excalidraw

Open-source collaborative whiteboard for hand-drawn style diagrams

Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.

★ 136.4k⟳ todayMIT
Open Source Alternative to:Miro

three.js

Cross-browser JavaScript library for 3D graphics

Three.js is a lightweight JavaScript 3D library for browsers. Default builds target WebGL and WebGPU, with optional SVG and CSS3D renderers as add-ons.

★ 119.5k⟳ todayMIT
Design & VisualizationDesktop/CLI app

Archify

Agent skill for interactive HTML diagrams and explainers

Archify is an open-source agent skill that turns descriptions, plans, or repositories into validated, self-contained interactive HTML maps and one-page explainers for Claude Code, Codex, Cursor, OpenCode, and Copilot.

★ 100.9k⟳ 2 days agoApache-2.0

Manim

Programmatic animation engine for explanatory math videos

ManimGL drives precise programmatic animations for explanatory math videos. The 3Blue1Brown variant installs via the manimgl package

★ 97k⟳ 2 months agoMIT
Frameworks & PlatformsDesktop/CLI app

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

★ 91.3k⟳ 5 days agoMIT

ImGui

Minimal immediate-mode C++ graphical user interface library

Dear ImGui is a portable C++ GUI library that emits draw batches for your renderer. It targets debug tools, editors, and in-engine tooling rather than consumer-facing apps.

★ 77.3k⟳ yesterdayMIT
Frameworks & PlatformsDesktop/CLI app