Visualize your codebase as a treemap, with colored diffs. Zero-dependency, no install needed, and language-agnostic.
Project description
diffmap
Visualize your codebase as a treemap, with colored diffs.
No install needed, zero-dependency, and works with any codebase. Requires uv and git.
Usage
uvx diffmap
uvx runs it directly from PyPI in a temporary environment, nothing to install or clean up.
Options
diffmap # diff HEAD vs HEAD~1
diffmap --ref HEAD~5..HEAD # last 5 commits
diffmap --ref main..HEAD # compare against main
diffmap --repo /path/to/repo # different repo
diffmap --output my-treemap.svg # custom output path
diffmap --exclude "*.lock" -e docs/ # exclude files/folders (gitignore-style)
diffmap --changed # only show changed files
diffmap --width 1920 --height 1080 # custom dimensions
diffmap --quiet # quiet mode
How it works
- Lists tracked files via
git ls-files(respects.gitignore) - Counts lines per file
- Gets per-file diff stats via
git diff --numstat - Lays out a hierarchical treemap (directories contain their children)
- Renders an SVG with proportional green/red fills inside each file rectangle
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diffmap-0.1.2.tar.gz.
File metadata
- Download URL: diffmap-0.1.2.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb8781fe049aebbb79ee2d06835aa4600e2f5f6093c127c48dc6781dc70727a1
|
|
| MD5 |
0ff276808a70dc023cd9e7a3da9e1b84
|
|
| BLAKE2b-256 |
e3b93642c7a33c2091eca4cd293ed1b200355174a0c0b8046150ddf44b028c7f
|
Provenance
The following attestation bundles were made for diffmap-0.1.2.tar.gz:
Publisher:
publish.yml on Ulyssean/diffmap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffmap-0.1.2.tar.gz -
Subject digest:
eb8781fe049aebbb79ee2d06835aa4600e2f5f6093c127c48dc6781dc70727a1 - Sigstore transparency entry: 1097974289
- Sigstore integration time:
-
Permalink:
Ulyssean/diffmap@31cc4800166b0a0937ef1e06519ffc6a0d77f07c -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Ulyssean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31cc4800166b0a0937ef1e06519ffc6a0d77f07c -
Trigger Event:
release
-
Statement type:
File details
Details for the file diffmap-0.1.2-py3-none-any.whl.
File metadata
- Download URL: diffmap-0.1.2-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5e2e1a5a858ea60a5dee0a3678e7499912c971a758de9f33f1528630a2119091
|
|
| MD5 |
f62ff69c06337729a679a435343f6aea
|
|
| BLAKE2b-256 |
b16563005171e2559710d97ca82776747e99a38dddeb8add42058616b627898c
|
Provenance
The following attestation bundles were made for diffmap-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on Ulyssean/diffmap
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
diffmap-0.1.2-py3-none-any.whl -
Subject digest:
5e2e1a5a858ea60a5dee0a3678e7499912c971a758de9f33f1528630a2119091 - Sigstore transparency entry: 1097974471
- Sigstore integration time:
-
Permalink:
Ulyssean/diffmap@31cc4800166b0a0937ef1e06519ffc6a0d77f07c -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Ulyssean
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@31cc4800166b0a0937ef1e06519ffc6a0d77f07c -
Trigger Event:
release
-
Statement type: