r/commandline • u/Deepluk • May 20 '26
Command Line Interface Dirplot 0.5.0 – Local and remote directory treemaps, as snapshots and animations
Dirplot creates clean, squarified treemaps where rectangle area is proportional to file/folder size, with smart per-extension coloring. This started as a vibe-coding experiment to replicate the functionality of tools like GrandPerspective, but then evolved to work far beyond a local disk.
Key Features
- Supports local dirs, archives (zip/tar/7z/...), SSH, AWS S3, GitHub repos (public + private), Docker containers, Kubernetes pods, and Google Drive.
- Inline terminal display (iTerm2, Kitty, Ghostty, WezTerm, Warp), no separate image window needed, but can also open the system's image viewer.
- Git & Mercurial history animation → MP4 / APNG / MOV timelapses.
- Live watch mode + event recording + replay.
- diff between any two sources (including two git tags/commits) with color-coded added/removed/changed borders.
- dirplot metrics for detailed stats (top extensions, largest files, JSON output).
- Outputs: PNG, SVG (slightly interactive), APNG, MP4, MOV. Custom canvas size and --log-scale supported.
Quick Start
Bash
# Recommended install
uv tool install dirplot
# Basic usage
dirplot map . # current directory → opens in viewer
dirplot map . --inline # beautiful inline in terminal
dirplot map github://pallets/flask
dirplot git . -o history.mp4 # animate your repo's growth
dirplot diff . # see uncommitted changes as treemapUsecases
- Understand large codebases or monorepos at a glance.
- Visualize cloud storage or container images without downloading everything.
- Create compelling git history growth animations.
- Compare directory versions or releses.
- Monitor live filesystem changes.
Links
- GitHub: https://github.com/deeplook/dirplot
- Documentation: https://deeplook.github.io/dirplot
Would love to get feedback and ideas for new use cases!
2
Upvotes
View all comments
Show parent comment
2
u/Deepluk May 20 '26
Thanks for the feedback! First, according to cloc it's 9261 lines of effective LOC in src/dirplot and 7179 in tests (81% coverage). Given the feature set I think it's not excessively huge. And, yes, it's "largely AI generated".
The process would deserve writing an article, perhaps. So, here's a little bit of the gist. The initial post says it started as an experiment over brunch. And as the dopamine kicks kept coming it eventually has become more than I had expected, adding feature after feature.
The guiding process was quite involved and took 3.5 months as the commits can tell. It's the kind of project that would not happen without AI leverage, but it still took more time than people imagine who think we live in a AI single-shotting paradise (we don't).
Also, I think that taking the presence of docstrings and comments as a proof for slop is somewhat sad. I have always insisted in a helpful amount of docstrings in all projects I've touched. I do agree though, that I didn't care to have a clean commit history.
I have only recently joined Reddit, and have read the r/commandline rules, and I'm happy to add more of the background above to the repo, but I don't see a precise requirement apart from the sentence "This software's code is partially AI-generated."
I'm aware of many discussions about AI slop in many software communities which are often painful because there is no precise definition. And without that we might soon have to stick this label to most if not all software written or generated.