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

@burakboduroglu/portkill

v0.4.7

Published

Kill processes listening on TCP ports — CLI for macOS/Linux: dry-run, port ranges, --list, local web UI (--gui) on loopback. Node.js 18+.

Readme

.portkill

Free stuck TCP ports in one command — without memorizing lsof, fuser, and kill pipelines.

npm License: MIT Node.js

The name reads like .portkill — a small, local dev utility (think .env-style prefix). The CLI binary is still portkill.

Published on npm: @burakboduroglu/portkill — install with npm i -g @burakboduroglu/portkill or npx @burakboduroglu/portkill (see Install).

When Node or another stack prints EADDRINUSE, .portkill shows who owns the port, lets you preview (--dry-run), then stops only what you intend — or use the local web UI (--gui on loopback), same logic as the CLI.


Why .portkill

| Instead of… | You get… | | --- | --- | | Copy-pasting lsof / xargs / kill -9 | One tool, clear output, safe defaults | | Guessing PIDs | Process name + PID per port | | Accidentally nuking the wrong thing | --dry-run first; --gui with browser confirm | | Another Electron app | Node only; --gui is a tiny HTTP server on 127.0.0.1 / ::1 |


Install

Registry page: npmjs.com/package/@burakboduroglu/portkill.

npm i -g @burakboduroglu/portkill
portkill --version

No global install:

npx @burakboduroglu/portkill --list

From Source

git clone https://github.com/burakboduroglu/portkill.git && cd portkill
npm install && npm run build
npm link   # optional: puts `portkill` on PATH

GUI Demo

Introduction to portkill --gui (local web UI on loopback — list listeners, dry-run, kill with browser confirm).

Open on YouTube


Quick Start

# What is listening everywhere?
portkill --list

# See what would happen (no signals sent)
portkill 3000 8080 --dry-run

# Stop listeners on those ports (prompts unless --force)
portkill 3000 8080

# Range (inclusive, max 4096 ports per range token)
portkill 9000-9002

# Local web UI — same logic as the CLI
portkill --gui

Press Ctrl+C to stop the GUI server. The printed URL is loopback-only. Video: GUI Demo.


CLI Flags (Short)

| Flag | Meaning | | --- | --- | | -n, --dry-run | Show targets only; do not send signals | | -f, --force | Skip the terminal confirmation | | -s, --signal | Signal to send (default SIGTERM) | | -l, --list | List all TCP listeners | | --gui | Open the local web UI | | -v, --verbose | More detail on stderr |

Full reference: CLI reference · Exit codes and outcomes: same doc.


Requirements

  • Node.js ≥ 18
  • macOS or Linux — uses lsof (Linux may use fuser as fallback where applicable)

Docs & Product Spec

| Doc | What it is | | --- | --- | | AGENTS | Start here — doc map, rules, and links for contributors & AI agents | | PRD | Product requirements & shipped scope | | Implementation | Architecture & data flow | | Testing strategy | Vitest mocks, coverage, test file map | | Data dictionary | Types, GUI API shapes | | Security notes | GUI scope, npm audit, reporting | | Release | npm publish (2FA), tags, GitHub Release | | Contributing | Fork, branch, tests, PR expectations | | Code of Conduct | Community standards (Contributor Covenant 2.0) |


Development

npm run build
npm test
npm run test:coverage
npm run lint

Terminal colors use chalk; set NO_COLOR=1 to disable (no-color.org).


License

MIT — see LICENSE.