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

uvkill

v0.1.12

Published

List any Python virtual environment directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space.

Downloads

21

Readme

Easily find and remove old and heavy Python virtual environments folders :sparkles:

This tool allows you to list any Python virtual environment directories in your system, as well as the space they take up. You can then select which ones you want to erase to free up space. Yay!

About

UVKill is a fork of NPKill specifically adapted for Python virtual environments. While NPKill helps you find and remove node_modules directories, UVKill focuses on Python virtual environments like .venv, venv, virtualenv, and others.

Credits

This project is based on NPKill by Nya García Gallardo and Juan Torres Gómez. We've adapted their excellent work to serve the Python community's needs for virtual environment management.

Original NPKill Project: https://github.com/voidcosmos/npkill

Table of Contents

:heavy_check_mark: Features

  • Clear space: Get rid of old and dusty Python virtual environments cluttering up your machine.

  • Last Workspace Usage: Check when was the last time you modified a file in the workspace (indicated in the last_mod column).

  • Very fast: UVKill is written in TypeScript, but searches are performed at a low level, improving performance greatly.

  • Easy to use: Say goodbye to lengthy commands. Using uvkill is as simple as reading a list of your virtual environments, and pressing Del to get rid of them. Could it be any easier? ;)

  • Python-aware: Detects virtual environments by looking for pyvenv.cfg, activate scripts, and Python interpreters.

  • Minified: It barely has any dependencies.

:cloud: Installation

You don't really need to install it to use it! Simply use the following command:

$ npx uvkill

Or if for some reason you really want to install it:

$ npm i -g uvkill
# Unix users may need to run the command with sudo. Go carefully

UVKill requires node>=v18.18.0

:clipboard: Usage

$ npx uvkill
# or just uvkill if installed globally

By default, uvkill will scan for Python virtual environments starting at the path where uvkill command is executed.

Move between the listed folders with , and use Space or Del to delete the selected folder. You can also use j and k to move between the results.

You can open the directory where the selected result is placed by pressing o.

To exit, Q or Ctrl + c if you're brave.

Important! Some virtual environments may be needed by production applications or system tools. UVKill will highlight potentially sensitive directories by displaying a :warning: to be careful.

Multi-Select Mode

This mode allows you to select and delete multiple folders at once, making it more efficient when cleaning up many directories.

Entering Multi-Select Mode

Press T to toggle multi-select mode. When active, you'll see a selection counter and additional instructions at the top of the results.

Controls

  • Space: Toggle selection of the current folder.
  • V: Start/end range selection mode.
  • A: Toggle select/unselect all folders.
  • Enter: Delete all selected folders.
  • T: Unselect all and back to normal mode.

Range Selection

After pressing V to enter range selection mode:

  • Move the cursor with arrow keys, j/k, Home/End, or page up/down
  • All folders between the starting position and current cursor position will be selected/deselected
  • Press V again to exit range selection mode

Options

| ARGUMENT | DESCRIPTION | | -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | -p, --profiles | Allows you to select the profile (set of targets) to use. If no option is specified, the available ones will be listed.. (node by default). | | -d, --directory | Set the directory from which to begin searching. By default, starting-point is . | | -D, --delete-all | Automatically delete all node_modules folders that are found. Suggested to be used together with -x. | | -e, --hide-errors | Hide errors if any | | -E, --exclude | Exclude directories from search (directory list must be inside double quotes "", each directory separated by ',' ) Example: "ignore1, ignore2" | | -f, --full | Start searching from the home of the user (example: "/home/user" in linux) | | --size-unit | Set the unit for displaying folder sizes. (Available: auto, mb, gb). With auto, sizes < 1024MB are shown in MB (rounded), larger sizes in GB (with decimals). | | -h, --help, ? | Show this help page and exit | | -nu, --no-check-update | Don't check for updates on startup | | -s, --sort | Sort results by: size, path or last-mod | | -t, --target | Specify the name of the directories you want to search for (by default, it's 'node_modules'). You can define multiple targets separating with comma. Ej. -t node_modules,.cache,. | | | | -x, --exclude-hidden-directories | Exclude hidden directories ("dot" directories) from search. | | --dry-run | It does not delete anything (will simulate it with a random delay). | | --json | Output results in JSON format at the end of the scan. Useful for automation and scripting. | | --json-stream | Output results in streaming JSON format (one JSON object per line as results are found). Useful for real-time processing. | | -v, --version | Show uvkill version |

Warning: In future versions some commands may change

Examples

  • Search virtual environments in your projects directory:
uvkill -d ~/projects

# other alternative:
cd ~/projects
uvkill
  • List directories named ".venv" and show errors if any occur:
uvkill --target .venv -e
  • List virtual environments in your projects directory, sort by size, and show size in gb:
uvkill -d '~/my projects' --size-unit gb --sort size
  • List virtual environments in your projects directory, excluding the ones in production and ignore-this directories:
uvkill -d 'projects' --exclude "production, ignore-this"
  • Automatically delete all virtual environments that have sneaked into your backups:
uvkill -d ~/backups/ --delete-all
  • Get results in JSON format for automation or further processing:
uvkill --json > results.json
  • Stream results in real-time as JSON (useful for monitoring or piping to other tools):
uvkill --json-stream | jq '.'
  • Save only successful results to a file, ignoring errors:
uvkill --json-stream 2>/dev/null | jq -s '.' > clean-results.json

JSON Output

UVKill supports JSON output formats for automation and integration with other tools:

  • --json: Output all results as a single JSON object at the end of the scan
  • --json-stream: Output each result as a separate JSON object in real-time

For detailed documentation, examples, and TypeScript interfaces, see JSON Output Documentation.

Quick Examples:

# Get all results as JSON
uvkill --json > results.json

# Process results in real-time
uvkill --json-stream | jq '.result.path'

# Find directories larger than 100MB
uvkill --json | jq '.results[] | select(.size > 104857600)'

:pager: Set Up Locally

# -- First, clone the repository
git clone https://github.com/manascb1344/uvkill.git

# -- Navigate to the dir
cd uvkill

# -- Install dependencies
npm install

# -- And run!
npm run start


# -- If you want to run it with some parameter, you will have to add "--" as in the following example:
npm run start -- -f -e

:bookmark_tabs: API

The API allows you to interact with uvkill from node to create your own implementations in your scripts (automations, for example).

You can check the basic API here.

:crystal_ball: Roadmap

  • [x] Release 0.1.0 !
  • [x] Improve code
    • [x] Improve performance
    • [ ] Improve performance even more!
  • [x] Sort results by size and path
  • [x] Allow the search for other types of directories (targets)
  • [ ] Reduce dependencies to be a more minimalist module
  • [ ] Allow to filter by directories that have not been used in a period of time
  • [ ] Create option for displaying directories in tree format
  • [x] Add some menus
  • [x] Add log service
  • [ ] Periodic and automatic cleaning (?)

:bug: Known bugs :bug:

  • Sometimes, CLI is blocked while folder is deleting.
  • Some terminals that do not use TTY (like git bash in windows) do not work.
  • Sorting, especially by routes, can slow down the terminal when there are many results at the same time.
  • Sometimes, size calculations are higher than they should be.
  • (SOLVED) Performance issues when searching from high level directories (like / in linux).
  • (SOLVED) Sometimes text collapses when updating the cli.
  • (SOLVED) Analyzing the size of the directories takes longer than it should.

If you find any bugs, don't hesitate and open an issue :)

:revolving_hearts: Contributing

If you want to contribute check the CONTRIBUTING.md

:scroll: License

MIT License

UVKill - Python virtual environment management tool
Adapted from NPKill

Original NPKill Authors: Nya García Gallardo and Juan Torres Gómez
UVKill Adaptation: manascb1344

This project is a fork of NPKill, adapted for Python virtual environments while maintaining the same MIT license.