A self-contained React component library for rendering git commit graphs:
GitGraphPanel— the full panel with virtualized commit list, expand/collapse, lane renderingCommitNode— individual node with lane connectorsCommitDetail— diff/file/show panelgraphLayout— pure layout function (lanes, node positions)cache— in-memory git log cache + preload helpers
import { GitGraphPanel } from '@papercusp/git-graph';
import '@papercusp/git-graph/git-graph.css';
<GitGraphPanel
commits={commits}
onCommitClick={(c) => …}
/>aviynw/Restart— main monorepo (admin harness UI)papercupai/papercup-public-site— papercupai.com (public harness mirror)
Both consume this lib via git submodule at libs/git-graph/ (kept as a workspace
package so monorepo workspace resolution works the same).
react^18 || ^19lucide-react(any version)
The host app must also bundle git-graph.css (imported once in the root layout).