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

pup-portman

v0.1.0

Published

Cross-platform CLI to find and kill processes on any port. Zero dependencies.

Downloads

16

Readme

pup-portman

Cross-platform CLI to find and kill processes on any port. Zero dependencies.

CI npm version Node.js License: MIT Zero dependencies

Stop googling lsof -i :3000 every day.

$ pup-portman 3000
  ● port 3000
    process   node (v20.11.0)
    pid       48291
    cmd       next dev
    started   4m ago

  kill this process? (y/N) y

  ✓ killed pid 48291 — port 3000 is free

Install

npm install -g pup-portman

The package and the installed binary share the same name: pup-portman.

Requires Node.js 16 or higher. Works on macOS, Linux, and Windows.

Commands

| Command | What it does | |---|---| | pup-portman <port> | Show what's on a port; prompt to kill | | pup-portman kill <port> | Kill the process on a port immediately | | pup-portman list | Show all occupied ports + your saved ports | | pup-portman watch <port> | Wait for a port to become free; beep when it does | | pup-portman save <port> <name> | Name a port for a project | | pup-portman projects | Show your saved port-to-name map | | pup-portman forget <name> | Remove a saved project entry | | pup-portman --help | Show help | | pup-portman --version | Show version |

Global flags

| Flag | What it does | |---|---| | --json | Output JSON instead of human-formatted text | | --no-color | Disable ANSI colors (also honors NO_COLOR env var) | | --no-beep | Disable terminal bell on watch | | --yes, -y | Skip confirmation prompts | | --force | Send SIGKILL immediately, skip graceful SIGTERM |

Scriptable output

Every command supports --json:

$ pup-portman list --json
[
  { "port": 3000, "pid": 48291, "command": "node", "protocol": "tcp", "family": "ipv4" },
  { "port": 5432, "pid": 1042, "command": "postgres", "protocol": "tcp", "family": "ipv4" }
]

Exit codes

| Code | Meaning | |---|---| | 0 | Success | | 2 | Usage error (bad arguments) | | 3 | Port not found / no process listening | | 4 | Permission denied | | 5 | Unsupported platform / required tool missing | | 70 | Internal error |

See docs/EXIT-CODES.md for the full contract.

How it works

| OS | Tool used | |---|---| | macOS | lsof -i :<port> -P -n | | Linux | ss -tlnp + /proc/<pid>/comm | | Windows | netstat -ano + tasklist /FI "PID eq <pid>" |

All shell calls go through execFile(file, args[]) — never string concatenation. See docs/ARCHITECTURE.md for the layered design.

Why zero dependencies?

  • Installs in under a second.
  • No supply-chain attack surface.
  • Survives every npm audit.
  • Smaller than the package.json of any competitor.

Contributing

See CONTRIBUTING.md. All PRs welcome.

Security

Report vulnerabilities privately via GitHub Security Advisories. See SECURITY.md.

License

MIT © Ali Malik