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

portly-cli

v1.2.2

Published

A pretty CLI tool to explore and manage open ports. Like lsof, but with style.

Readme

🔍 portly

A CLI tool to explore and manage open ports. Like lsof, but with style.

Terminal Terminal Terminal npm

🚀 Quick Start

Install via npm

npm install -g portly-cli

Run

portly

⌨️ Keyboard Shortcuts

Navigation

| Key | Action | |-----|--------| | / | Navigate up/down through the port list | | Page Up / Page Down | Jump 10 entries at a time | | Home / End | Jump to first/last entry |

Views

| Key | Action | |-----|--------| | Enter / | Open detail view for selected port | | Escape / | Go back / close detail view |

Actions

| Key | Action | |-----|--------| | F | Open filter / search | | F (when filter active) | Clear filter | | A | Toggle auto-refresh (2 second interval) | | R | Manual refresh of port list | | K | Kill the selected process (confirmation required) | | Q | Quit portly |


🔍 Filter Syntax

The filter supports multiple search modes:

| Example | Result | |---------|--------| | 3000 | Show only port 3000 | | node | Show all processes containing "node" | | Google | Show all Google processes | | 10-4000 | Show all ports between 10 and 4000 |

Press Enter to apply the filter, Escape to cancel, or F again to clear.


📋 Views

List View (Default)

PORTLY - Port Explorer
-------------------------------------------
74 ports found | [AUTO-OFF]

PORT    PROTO  STATE  COMMAND          PID     USER
--------------------------------------------------------
> 9       TCP   [L]   identitys        643     promptnpray
  2738    TCP   [L]   identitys        643     promptnpray
  5000    TCP   [L]   ControlCe        602     promptnpray
  ...
--------------------------------------------------------
[UP/DOWN] Navigate  [ENTER] Details  [F] Filter  [A] Auto-Refresh  [R] Refresh  [Q] Quit

[1/74] 9 -> identitys | [K] Kill

Detail View

PORTLY - Port Explorer
-------------------------------------------
74 ports found | [DETAIL] | [AUTO-OFF]

========================================
           PORT DETAILS
========================================
  Port:     5000
  Protocol: TCP6
  State:    LISTEN
  Category: Registered (1024-49151)
----------------------------------------
  Command:  ControlCe
  PID:      602
  User:     promptnpray
----------------------------------------
  Local:    *:5000
  Remote:   -
========================================

[K] Kill  [C] Copy Port  [P] Copy PID  [ESC] Back

[5/74] 5000 -> ControlCe (PID: 602)

🔴 Killing Processes

When you press K on a port, a confirmation dialog appears:

+----------------------------------+
|      WARNING: KILL PROCESS       |
+----------------------------------+
|                                  |
|  Process: ControlCe              |
|  PID:     602                    |
|  Port:    5000                   |
|                                  |
|  Are you sure you want to kill   |
|  this process?                   |
|                                  |
|   [Y] KILL   [N]/[ESC] CANCEL    |
|                                  |
+----------------------------------+

Press Y to kill, N or Escape to cancel.


🔄 Auto-Refresh

When auto-refresh is enabled ([AUTO-ON]), portly automatically scans every 2 seconds. Useful for monitoring ports that come and go.


🛠️ Requirements

  • macOS, Linux, or Windows
  • Node.js 16 or higher
  • lsof command (macOS/Linux, standard on those platforms)
  • netstat and tasklist commands (Windows, built-in)

📦 Installation

# Install globally via npm
npm install -g portly-cli

# Run the app
portly

🎨 Port States

| State | Icon | Meaning | |-------|------|---------| | LISTEN | [L] | Port is listening for connections | | ESTABLISHED | [E] | Active connection | | TIME_WAIT | [W] | Connection closing | | Other | [-] | Unknown state |


📝 License

MIT