Next Freeports
CLI utility to list and free active ports, with interactive and direct kill modes.
How many times have you restarted a dev server only to get "port 3000 already in use"? Enough times to write a CLI tool that lists active network ports and kills the processes using them. It scans for active ports, shows what is running on each one, and supports two modes: an interactive mode where you pick which processes to kill, and a direct mode for quick one-liner kills. It also provides kp and killport aliases for convenience.

The tool is built in JavaScript and published to npm, running via npx with no global install required. It uses Node.js networking APIs to enumerate active ports and process utilities to identify and terminate the owning processes, with readline powering the interactive terminal UI.