npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dustoff

v1.0.0

Published

Find and remove JS/TS build artifacts wasting disk space

Readme



🧹 What It Does

Scan your filesystem for JavaScript/TypeScript build artifacts — node_modules, .next, dist, .cache, coverage, .turbo, and 30+ more — then interactively browse, sort, select, and safely delete them to reclaim disk space.

🚀 Quick Start

npx dustoff

That's it. No install required.

Global Install

npm install -g dustoff
# or
bun install -g dustoff

Requires Node.js >= 18.18.0.

CLI Options

dustoff [options]

  -d, --directory <path>    Set scan root directory (default: current directory)
  -E, --exclude <names>     Exclude directories by name, comma-separated
  -t, --target <names>      Override default targets, comma-separated
  -V, --verbose             Write debug log to dustoff-debug.log
  -h, --help                Show this help message
  -v, --version             Show version number

Examples:

dustoff -d ~/projects                        # scan a specific directory
dustoff --exclude "dist,build"               # skip dist and build directories
dustoff --target "node_modules,.next"         # only scan for specific artifacts

✨ Features

Smart Sorting

Sort by size, path, or age with s to find the biggest space hogs.

Search & Filter

Press / to search — instantly filter artifacts by path. Press f to open the type filter and show only specific artifact types (e.g. just node_modules or .next).

Directory Grouping

Press x to group artifacts by parent directory. Collapse and expand groups with Enter or arrow keys. Select an entire group at once with Space on the group header.

Range Multi-Select

Hold Shift + arrow keys (or use J/K) to select a contiguous range of artifacts. Shift+Space extends selection from an anchor point.

Safe Deletion

Select artifacts with Space, delete with d. Confirmation dialog and live progress tracking.

10 Built-in Themes

Cycle with t. Your choice is saved across sessions.

⌨️ Keybindings

Vim-style navigation is fully supported alongside arrow keys.

| Key | Action | |-----|--------| | k | Move cursor up | | j | Move cursor down | | Shift+↑ K | Range select up | | Shift+↓ J | Range select down | | g / G | Jump to top / bottom | | PgUp PgDn | Page up / down | | Space | Toggle selection | | Shift+Space | Extend selection from anchor | | a | Select all | | d | Delete selected | | s | Cycle sort mode | | / | Search / filter | | f | Type filter | | x | Toggle directory grouping | | Tab | Toggle detail panel | | + / - | Scroll detail panel | | t | Cycle theme | | Esc | Clear selection | | q | Quit |

🎨 Themes

Cycle through themes with t during a session. Your preference is saved to ~/.config/dustoff/config.json (or $XDG_CONFIG_HOME/dustoff/config.json) and persisted across sessions.

🔍 Detected Artifacts

dustoff scans for these directories:

| Category | Directories | |----------|-------------| | Package managers | node_modules, .npm, .pnpm-store | | Framework builds | .next, .nuxt, .angular, .svelte-kit, .vite, .turbo, .nx | | Bundler caches | .parcel-cache, .rpt2_cache, .esbuild, .rollup.cache, .cache | | Linter/formatter | .eslintcache, .stylelintcache | | Transpiler | .swc | | Test/coverage | coverage, .nyc_output, .jest | | Docs/storybook | storybook-static, gatsby_cache, .docusaurus | | Runtime | deno_cache | | Build outputs | dist, build, .output |

🤝 Contributing

Contributions are welcome! Check the CONTRIBUTING.md guide to get started.

📄 License

MIT