129
A git log drawn as a graph: each branch gets its own coloured lane, merges sweep in on smooth curves, refs and tags sit on their commits, and hovering a row slides a detail card along with you.
akagit·commit graph·git log
Run this in any project set up for the shadcn CLI. It copies the Branch Graph source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/branch-graph.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { BranchGraph } from "@/components/branch-graph";
export default function Page() {
return <BranchGraph />;
}A free React component in the Dev Tools collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Branch Graph source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| commitsrequired | Commit[] | — |
| title | string | "History" |
| onSelect | (commit: Commit) => void | — |
| className | string | — |