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

kill-port-now

v1.1.1

Published

API-compatible kill-port replacement that's 3000x+ faster.

Readme

kill-port-now logo

kill-port-now

Free a local port in milliseconds.

kill-port-now is an API-compatible replacement for kill-port. It keeps the familiar Node API, adds a short kp CLI, and uses one native Rust binary for lookup and killing.

Install

npm i -g kill-port-now

Node.js 18+ is required for the package API.

The package does not run preinstall, install, or postinstall scripts. The kp launcher selects the bundled native binary at runtime. If a release is missing the native binary for your platform, it fails loudly instead of falling back to shell tools.

CLI

kp 3000
kp 3000 5173
kp 3000 --dry-run --json
kp 3000 --tcp-only
kp 3000 --udp-only
kp 3000 --graceful --graceful-timeout 300

By default, kp 3000 kills every process holding local port 3000, across TCP and UDP. Protocol filters are escape hatches: use --tcp-only or --udp-only only when you need them. Run kp --help for every option.

Node API

const kill = require('kill-port-now')
const { findPortProcesses } = require('kill-port-now')

await kill(3000)
await kill(3000, 'udp') // legacy kill-port method argument still works
await kill(3000, { signal: 'SIGTERM' })
await kill(3000, { graceful: true, gracefulTimeoutMs: 300 })

const processes = await findPortProcesses(3000)

findPortProcesses() returns process metadata when the native backend can provide it:

type PortProcess = {
  pid: number
  port: number
  protocol: 'tcp' | 'udp'
  command?: string
  path?: string
}

Benchmark

Watch kill-port-now recover a dev server while kill-port kills the wrong one:

Side-by-side terminal comparison of kill-port and kill-port-now

Download the MP4.

Local macOS benchmark, 3 iterations. Lower latency is better.

| Operation | kill-port | kill-port-now | Faster | | --- | ---: | ---: | ---: | | Empty port | 11032.29 ms | 3.02 ms | 3,653x | | UDP kill | 10219.75 ms | 3.25 ms | 3,140x | | TCP kill | 10311.02 ms | 3.24 ms | 3,185x |

xychart-beta
    title "Speedup over kill-port"
    x-axis ["Empty port", "UDP kill", "TCP kill"]
    y-axis "Faster (x)" 0 --> 4000
    bar [3653, 3140, 3185]
npm run bench:native
open benchmarks/index.html

Development

See docs/development.md for architecture, benchmarks, native prebuilds, and release steps.

License

MIT