talira

Easily find and remove old and heavy node_modules, artifacts, caches and dev leftovers

open sourceMITself-hostablefree

npkill scans your system for heavy development directories, starting with node_modules and extended through profiles to Python, Rust, game engines and more. Its TUI shows what is taking space, when you last worked in each project, and lets you delete folders individually or in multi-select mode. It warns about node_modules that installed apps need, and has JSON output and an API.

Problems it solves

  • dozens of old projects each have a 500MB node_modules folder
  • find every node_modules on my machine and delete the ones I don't need
  • which old projects haven't I touched in months, and how much space do they use
  • free up gigabytes before backing up my code folder
  • clean Python venvs and Rust target folders too, not only Node
  • run one npx command to clean up without installing anything
  • pick several dependency folders and delete them at once
  • get a JSON list of heavy dev folders for a script

Features

  • profiles for Node, Python, Rust and more
  • last-modified workspace info
  • multi-select
  • search
  • .npkillrc
  • JSON output
  • API

Capabilities

Has an APIplan not known
Has a command line toolplan not known

Alternatives

The same job

These do what npkill does.

  1. Mole Open-source Mac and PC cleaner. Keep your machine clean, light, and running like new.
  2. Kondo Cleans dependencies and build artifacts from your projects.
  3. cargo-sweep A cargo subcommand for cleaning up unused build files generated by Cargo
  4. cargo-cache manage cargo cache (${CARGO_HOME}, ~/.cargo/), print sizes of dirs and remove dirs selectively
  5. Poo Find and safely free the disk space your dev work eats

Compare npkill with the top 3