Git repository visualizer using D3.js graph visualization
npm install gitseeInteractive repository visualization library with D3.js.
``html`
`js`
// Create the GitSee server with both API and SSE support
const gitSeeServer = createGitSeeServer({
token: process.env.GITHUB_TOKEN,
cache: { ttl: 300 },
});
`bashStart server
yarn dev
$3
`bash
.env
GITHUB_TOKEN=your_token
LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=your_key
`Framework Integration
$3
`jsx
function RepoViz({ owner, repo }) {
const ref = useRef(); useEffect(() => {
const viz = new GitVisualizer(ref.current);
viz.visualizeRepository(
${owner}/${repo});
return () => viz.destroy();
}, [owner, repo]); return
;
}
``