forcefield

v0.1.0

A dependency-free force-directed graph engine: Barnes-Hut many-body simulation, velocity-Verlet integration, drag / pin / filter / zoom, behind a swappable Canvas 2D renderer. TypeScript in, ESM out, nothing in node_modules.

An Obsidian graph view next to the same hierarchy rendered by forcefield
Same hierarchy, two renderers. Live in the tree demo: 2,864 nodes at 60fps, 59.2 1%-low, measured in-browser — not a screenshot claim.

Try it — one click, drag anything

Measured, not claimed

Built for single-digit-thousands of nodes in a browser tab, not hundreds of thousands on a GPU — past roughly 100k nodes a GPU-backed engine wins on brute force alone, and this repo says so rather than pretending otherwise.