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

rmnode

v1.1.0

Published

Fast and beautiful CLI tool to find and remove node_modules folders to free up disk space

Readme

rmnode

 $$$$$$\  $$$$$$\$$$$\  $$\   $$\  $$$$$$\   $$$$$$\   $$$$$$\  
 $$  __$$\ $$  _$$  _$$\ $$$\  $$ |$$  __$$\ $$  __$$\ $$  __$$\ 
 $$ |  \__|$$ / $$ / $$ |$$$$\ $$ |$$ /  $$ |$$ /  $$ |$$$$$$$$ |
 $$ |      $$ | $$ | $$ |$$ $$\$$ |$$ |  $$ |$$ |  $$ |$$   ____|
 $$ |      $$ | $$ | $$ |$$ \$$$$ |$$ |  $$ |$$ |  $$ |$$ |      
 $$ |      $$ | $$ | $$ |$$ |\$$$ |$$ |  $$ |$$ |  $$ |$$ |      
 $$ |      $$ | $$ | $$ |$$ | \$$ |\$$$$$$  |\$$$$$$$ |\$$$$$$$\ 
 \__|      \__| \__| \__|\__|  \__| \______/  \_______| \_______|

Features

  • Instant startup - Results appear in milliseconds, not seconds
  • Beautiful TUI - Interactive terminal interface with colors
  • Fast scanning - Parallel directory scanning
  • Smart filtering - Skips nested node_modules and system directories
  • Search - Filter projects by name or path
  • Multi-select - Select multiple folders to delete at once
  • Safe - Confirmation before deletion, dry-run mode available
  • Non-blocking - Continue browsing while deletion happens in background

Installation

# Run directly with npx (no install needed)
npx rmnode

# Or install globally
npm install -g rmnode

Usage

# Scan current directory
rmnode

# Scan specific path
rmnode --path ~/projects

# Dry run (show what would be deleted without deleting)
rmnode --dry-run

Keyboard Shortcuts

| Key | Action | |-----|--------| | j / | Move down | | k / | Move up | | Space | Select/deselect item | | Enter | Select and move to next | | a | Select all | | c | Clear selection | | s / / | Search | | d | Delete selected | | q | Quit | | Esc | Close search / Clear filter |

Screenshots

Main Interface

 Found: 15    Total: 2.5 GB    Selected: 3    Size: 850 MB

    ... 2 more above
 > [x] my-project              450.5 MB  ~/projects/my-project/node_modules
   [ ] another-app             125.3 MB  ~/projects/another-app/node_modules
   [x] old-website             275.8 MB  ~/projects/old-website/node_modules
   [ ] test-repo                45.2 MB  ~/projects/test-repo/node_modules
    ... 8 more below

j/k: navigate | space: select | a: all | s: search | d: delete | q: quit

Search Mode

Search: react_  (Esc to close, Enter to keep filter)

How It Works

  1. Scans your filesystem for node_modules directories
  2. Calculates the size of each folder
  3. Displays results sorted by size (largest first)
  4. Deletes selected folders in parallel using native rm -rf

What Gets Skipped

rmnode automatically skips:

  • Nested node_modules (inside other node_modules)
  • Package manager caches (.npm, .yarn, .pnpm)
  • System directories (Library, Applications, etc.)
  • Hidden directories

Project Structure

src/
├── components/          # React components (Ink TUI)
│   ├── App.tsx         # Main application
│   ├── MainView.tsx    # Main interface
│   ├── Item.tsx        # List item component
│   ├── NodeModulesList.tsx
│   ├── StatsBar.tsx
│   └── ConfirmDialog.tsx
├── hooks/              # React hooks
│   ├── useScanner.ts   # File scanning
│   ├── useSelection.ts # Selection state
│   └── useKeyboard.ts  # Keyboard input
├── scanner/            # Core scanning logic
│   └── index.ts
├── utils/
│   ├── format-size.ts
│   └── delete-folder.ts
├── types.ts
├── cli.ts
└── index.tsx

Requirements

  • Node.js 18.0.0 or higher

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development

# Clone the repo
git clone https://github.com/firaslatrach/rmnode.git
cd rmnode

# Install dependencies
npm install

# Run in development
npm run dev

# Build
npm run build

License

MIT License - see LICENSE file for details.

Author

Firas Latrach