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

@nijil71/port-pilot

v2.0.3

Published

A fast CLI tool that detects running localhost ports and lets users manage them.

Readme

⚓ Port Pilot

The smart, lightning-fast CLI & TUI for discovering and managing localhost ports.

npm version Node.js License: MIT PRs Welcome


About Port Pilot

Port Pilot is a modern, developer-friendly developer tool that detects running processes on your localhost ports and lets you manage or terminate them effortlessly. It features an incredibly fast machine-readable CLI list output, and a stunning, terminal user interface (TUI) inspired by modern AI coding assistants.

Ever typed lsof -i :3000, scanned for the PID, and ran kill -9? Never again.

Let Port Pilot do the heavy lifting in style. It securely maps open network ports back to the underlying node processes, containers, or native binaries, showing memory usage, absolute project paths, and allowing you to safely kill processes without breaking system stability.

✨ Features

  • Split-Panel TUI — A gorgeous interactive UI featuring a process list and a detailed metadata panel.
  • Auto-Refresh — Background polling that automatically reflects new or cleanly exited processes every 3 seconds (flicker-free).
  • Deep Process Introspection — Extracts absolute file paths, memory usage (MB), and project root names associated with the ports.
  • Search & Filter — Quickly isolate processes by pressing / and typing a port number, project name, or process label.
  • Sort Toggle — Cycle sorts (port → memory → name) natively inside the TUI by pressing s.
  • System Protection — Automatically protects Windows services and critical OS daemons (svchost, lsass, System) from accidental deletion.
  • Smart Security — Redacts API keys, secrets, and auth tokens from process command lines before displaying them.
  • Quick Links — Press o to instantly open the selected port in your default web browser!
  • Automation Ready — Standard list commands optionally support --json for machine-readable output in CI/CD or scripts.

📦 Installation

Install globally via npm (requires Node.js >= 18):

npm install -g @nijil71/port-pilot

🛠️ Usage

Interactive TUI

Just run the command to launch the dashboard:

port-pilot
# or explicitly:
port-pilot ui

TUI Keybindings

| Key | Action | |-----|--------| | / | Navigate processes | | / | Search or filter by name/port | | s | Cycle sort format (port, memory, name) | | o | Open selected localhost:port in browser | | space| Toggle multi-select (for batch killing) | | k | Kill selected (prompts for confirmation) | | f | Force kill selected (prompts for confirmation) | | r | Manual refresh | | y / n | Confirm / Cancel dialogs | | q / Esc| Quit Port Pilot |


Standard CLI Commands

If you just need a quick terminal output without the full TUI:

List Ports

port-pilot list

Use port-pilot list --json to output a raw JSON array of processes and ports.

Kill a Port Directly

port-pilot kill 3000

Use port-pilot kill 3000 -f to force-kill without asking gracefully.

Open a Port in Browser

port-pilot open 8080

🤝 Contributing

Contributions, issues, and feature requests are more than welcome! Feel free to check the issues page.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📝 License

Distributed under the MIT License. See LICENSE for more information.