causal graph React library
Make causal graphs something you can explore.
A React library for causal graph interfaces, built on Cytoscape.js. Use a complete workspace or compose interaction components and analysis APIs into your own application.
Start with a small graph
A fictional coffee shop model · live and interactive
Select a node to explore causes and effects. Switch V1 / final to see changes. Select a feedback loop to follow its nodes.
The library
Interactions and APIs shaped around cause and effect.
Cytoscape.js provides the graph engine. cytocausal provides causal semantics, provenance, version comparison and React interaction components.
Explore components and integration →- Trace the evidence →
- Keep sources and contributors attached to nodes and links. Read agreement and disagreement across people's models.
- Compare changes over time →
- Follow renames, merges and splits through explicit node correspondences and stable layouts.
- Explore paths and feedback →
- Navigate causes and effects, find directed paths, and distinguish reinforcing and balancing loops when polarity is known.
One library. Two ways to build on it.
Studio · online drawing
Author causal graphs in the browser
Add nodes and links, edit labels and polarity, then switch to exploration. Saved in this browser, with JSON import and export. The library’s CausalEditor provides editing; Studio adds saving and file operations.
Open Studio ↗Starter · available now
Build your own project
Clone the React / Next.js starter and bring your data. Use the complete workspace or compose its components into your own research tool or product.
Get started →
