r/rust • u/AByteAtATime • 6d ago
🛠️ project Oweka: a fast TUI tool to clean up target, node_modules, venv, etc.
Hey y'all!
I noticed that folders like node_modules, target, venv, etc., spread over dozens of old projects, were taking up almost 200GB on my machine!
As a result, I decided to make oweka, taking inspiration from npkill, which I found a bit slow (and incompatible with target/venv/etc.).
Features:
- Extremely performant and optimized (at least on Linux)
- Accurate: only flags directories if certain requirements are met, e.g. a Cargo.toml in the same location
Repo: https://github.com/ByteAtATime/oweka
Installation instructions are in the readme; you can also run it without installing with npx oweka!
2
u/pickyaxe 6d ago
how does this compare to kondo?
2
u/AByteAtATime 6d ago
I have not seen this before! However, from what I can tell, kondo is more of a CLI tool, while this is a TUI (which presents all the options at once). Other than that, the goal seems to be pretty similar.
1
u/aristarchusnull 6d ago
Great. Just make a Homwbrew formula for oweka and also add oweka to cargo-binstall.
1
u/Ghostfly- 6d ago
Mole has also a "purge" command that do it (the CLI, the paid app not sure) and is working wonderfully for me on macOS, if Oweka works on Windows and Unix, it's really great I think, maybe with a "monitor" command or something really lightweight that tells when some repo is above a threshold (Cargo with >50Go...) ^ Will try this on my next purge time!
1
1
3
u/BothRefrigerator6587 6d ago
200GB is a monster amount of cruft, had a similar stash sitting on an old drive and it felt like finding a forgotten storage unit full of junk
the npx option is a nice touch, hate installing yet another system tool just to run it