Skip to content
PapercuspPublic

About

Reusable git commit graph React component library

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

133 Commits

Folders and files

Repository files navigation

@papercusp/git-graph

A self-contained React component library for rendering git commit graphs:

  • GitGraphPanel — the full panel with virtualized commit list, expand/collapse, lane rendering
  • CommitNode — individual node with lane connectors
  • CommitDetail — diff/file/show panel
  • graphLayout — pure layout function (lanes, node positions)
  • cache — in-memory git log cache + preload helpers

Usage

import { GitGraphPanel } from '@papercusp/git-graph';
import '@papercusp/git-graph/git-graph.css';

<GitGraphPanel
  commits={commits}
  onCommitClick={(c) => …}
/>

Repos using this lib

  • 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).

Peer deps

  • react ^18 || ^19
  • lucide-react (any version)

The host app must also bundle git-graph.css (imported once in the root layout).

About

Reusable git commit graph React component library

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages