gt-graph
v0.1.0
Published
Visualize Graphite stacks as an interactive force-directed graph
Downloads
34
Maintainers
Readme
gt-graph
Visualize your Graphite stacks as an interactive force-directed graph in the browser.
Usage
Run from any Graphite-tracked git repo:
npx gt-graphOr install globally:
npm install -g gt-graph
gt-graphOpens http://localhost:4500 (increments port if taken, so multiple repos can run side by side).
Features
- Force-directed graph of all local branches and their stack relationships
- Color-coded nodes by PR status (approved, waiting, changes requested, merged, no PR)
- Click any node for a detail sidebar with PR info and an "Open on Graphite" link
- Hover tooltips for quick glance
- Pulsing ring on the current branch
- Dashed stroke on frozen branches
- Refresh button — re-fetches live data without a page reload
- Zoom, pan, and drag nodes to reorganize the layout
Requirements
- Node.js 18+
gitin PATHgt(Graphite CLI) in PATH- Run from inside a Graphite-tracked git repository
Zero runtime dependencies
Uses only Node built-ins (http, fs, path, child_process, net). TypeScript is a dev-only dependency.
Development
npm install
npm run build
node dist/cli.jsLicense
MIT
