deltaviz
v0.1.1
Published
A live treemap of a git repo's codebase, with the branch's changes highlighted
Downloads
467
Maintainers
Readme
deltaviz
A live treemap of a git repo: the whole codebase sized by lines, the branch's changes coloured in, imports on hover. It updates as you edit.

npx deltaviz # in any folder of a git repo
npm i -g deltaviz # or install it, then: dvIt opens http://127.0.0.1:4848 (or the next free port) and keeps running until Ctrl-C. Run it again in the same repo and it opens the running one.
- Branch compares against where the branch left the default branch (
origin/HEAD, elsemain/master); Uncommitted againstHEAD. - Click a folder to zoom in, a file for its diff (or its code). Run it in a subfolder to start zoomed into it.
- Imports are read from JS/TS sources.
deltaviz [dir] [--port <n>] [--base <ref>] [--no-open]dv is an alias for deltaviz. Run dv inside any project to view that repo.
Needs Node 24 and git.
Develop
pnpm install
pnpm dev # serve this repo; rebuilds and reloads the page on save
pnpm typecheck && pnpm testTo use this checkout globally, run pnpm build && pnpm link --global, then run dv from
any project directory. Run pnpm build again after changing the source.
To re-record the demo GIF (needs Chrome and ffmpeg): pnpm build && pnpm --dir scripts/demo install && node scripts/demo/record.ts assets/demo.mp4, it writes assets/demo.gif beside it (the mp4 is gitignored).
Release
On main, with a clean tree:
npm version patch # or minor / major: bumps package.json, commits, tags vX.Y.Z
git push --follow-tagsThe tag runs release.yml: checks, npm publish (trusted
publishing, with provenance), and a GitHub Release with generated notes.
MIT
