
5,000 nodes. 60fps. One draw call.
GPU-accelerated force-directed graph engine for real-time data streams.
Onchain transactions, AI agent orchestration, infrastructure telemetry — any event source, rendered as particles in 3D space.
Repository · Documentation · Demos · Benchmarks
The hosted demo at swarming.dev is offline while hosting is being migrated. Run npm run dev from a clone for the full live experience.
Conventional graph libraries render each node as an individual DOM element or canvas draw — $O(n)$ draw calls per frame. swarming uses GPU-instanced rendering: a single InstancedMesh call submits all node geometry in one batch, while a SpatialHash grid resolves proximity queries in $O(1)$ amortized time. The result is 5,000+ live-streaming nodes at 60fps in a standard browser, with force-directed physics running per-frame.
Get Started in 30 Seconds
git clone https://github.com/nirholas/visualize-web3-realtime.git
cd visualize-web3-realtime
npm install && npm run dev
Open http://localhost:3100 — live visualization starts immediately. No API keys needed for the default providers.
Or use the packages directly. They are npm workspace packages inside this repo and are not published to the public registry yet, so consume them from a clone rather than from npm install:
git clone https://github.com/nirholas/visualize-web3-realtime.git
cd visualize-web3-realtime
npm install # links every packages/* workspace
import { ForceGraph } from '@web3viz/react-graph'
function App() {
return <ForceGraph topTokens={hubs} traderEdges={edges} background="#0a0a0f" showLabels />
}
Or scaffold a full project with the in-repo generators (also unpublished, run them from the clone):
node packages/create-swarming-app/dist/index.js my-viz # React + swarming, ready to go
node packages/create-swarming-plugin/dist/index.js my-plugin # Plugin scaffold with hot reload
Build the generators first with npm run build -w create-swarming-app -w create-swarming-plugin.
What You Get
localhost:3100/
├── /world Force-directed 3D graph — live Solana/ETH/Base streams, desktop shell, AI chat
├── /agents Agent orchestration graph — task DAGs, tool calls, reasoning traces
├── /embed Embeddable widget — iframe or <script> tag, URL-parameterized
├── /demos/* 6 simulation scenarios (GitHub activity, K8s pods, API traffic, agents, social, IoT)
├── /playground Live editor — modify graph parameters, observe results in real time
├── /docs Full reference documentation
└── /plugins Extensible plugin registry — data sources, renderers, themes
Features