Inspiration "Address already in use" is one of the most common errors in development. The usual fix is to remember lsof -i :3000, read the output, find the PID and run kill. I wanted a tool that answers "what is using port 3000?" at a glance, in plain language, and lets me free the port without memorizing commands.

What it does Port Whisperer is a terminal app for Linux. It shows every listening port as a node on a live map, grouped into Web, Databases, Developer tools, System and Other. Each port gets a readable name such as "Web server (Node.js)", along with its process ID, its owner and who can connect: only this computer, or your whole network. You can stop the program behind a port with one key and a clear confirmation. A Time Machine view records who held each port and when.

What I learned How Linux exposes network and process state through /proc, and how to join sockets to the processes that own them. How to build a responsive terminal UI with an event loop, a render loop and background scanners that don't block each other. How to make a destructive action safe: confirm what will be stopped, send a graceful signal first, and explain the outcome. How to keep animation useful and optional (intro, pulses, travelling dots, collapsing sparkles), so it can be turned off. How I built it The project is written in Rust:

ratatui and crossterm draw the map, list, details panel and activity feed. procfs reads sockets and processes. nix handles signals, users and process control. The code is split into separate scanners (ports, processes, network, vitals, graveyard), a history store for the Time Machine, and a ui module with one file per view.

Activity and the data rate are measured over a sliding window. For a port with byte counters $b(t)$, the rate shown is

𝑟 ( 𝑡

)

𝑏 ( 𝑡 ) − 𝑏 ( 𝑡 − Δ 𝑡 ) Δ 𝑡 r(t)= Δt b(t)−b(t−Δt) ​

The details panel keeps the last 60 samples as a sparkline, so $t \in {-59, \dots, 0}$ seconds.

Challenges Mapping ports to programs. A socket only gives an inode, so each one has to be matched to a process through its open file descriptors. Some processes belong to other users, and their details can't always be read. Friendly naming. Turning a raw port number and a process name into a label people understand needs a naming layer that still handles unknown programs. Safe termination. Stopping the wrong process is costly, so the app confirms first and handles failures like permission errors clearly. Smooth UI in a terminal. Animations, resizing and live updates had to work without flicker or blocking, and the layout had to stay readable at small terminal sizes. Detecting changes. The activity feed needs diffs between scans to report new connections, opened ports, closed ports and freed ports without duplicates. What's next More platform support beyond Linux, richer history in the Time Machine, and more program names in the naming layer.

Built With

Share this project:

Updates

Submission history