Show HN: Port Kill – A lightweight macOS status bar development port monitor

54 lexokoh 21 8/24/2025, 3:08:15 AM github.com ↗

Comments (21)

faangguyindia · 2h ago
On macOS i've this in my zshrc file:

`killport() { kill -9 $(lsof -t -i :$1 -sTCP:LISTEN) }`

i use it like killport 8000

lexokoh · 2h ago
Nice. I have this too. I wanted something more visual and expansive.
donatj · 35m ago
Ports 2000 - 6000?

I know I am getting old but when did we stop running things on 8xxx? The more 8's the more dev it was. 8000, 8080, 8088, 8888

dsab · 2h ago
What is "development process" ??? What is "business use case" of this tool? Such a big readme and no introduction to why I should be interested in this tool.
lexokoh · 2h ago
It's just a tool I built for myself. There's no business case. It just helps me
motorest · 2h ago
> Such a big readme and no introduction to why I should be interested in this tool.

This.

Why in the hell would anyone want to kill random processes that open a port in the tange 2000-6000? And why is this need so pressing as to require a full blown monitor integrated in a task bar?

Without context, this sounds like a complete random silly project that makes no sense and serves no purpose at all.

bigyabai · 2h ago
Without context, it sounds like something someone vibe-coded and git push-ed up to the internet. Which is fine, but it's just unusually precise and verbose for something that would end up being a shell alias for most developers.
todotask2 · 1h ago
The author also posted it on Reddit. He used it for himself, but some people use it even though it’s bad practice.
hbbio · 1h ago
Didn't expect to see the FSL for that kind of project :)

The part I'm interested in is the tray_icon crate but I'll look at the package directly https://docs.rs/tray-icon/latest/tray_icon/.

_def · 2h ago
I'm not looking forward to the near future where it will become harder and harder to distinguish little projects like this from AI generated tools.
userbinator · 2h ago
The README already has a rather repugnant LLM-ish feel to it; lots of lists and verboseness, while saying very little.

Also, this is a perplexing choice (which also serves to illustrate the above point regarding verboseness):

    White background with red center: 1-9 processes (some development servers) 
    White background with orange center: 10+ processes (many development servers)
nojs · 38m ago
> Quit: Exits the application
lexokoh · 2h ago
A lot of ReadMe's are generated with AI. Doesn't really mean anything.
userbinator · 1h ago
You're right. A lot of words that don't really mean anything; and that's exactly why you should not do it if you want actual humans to read it.
AbuAssar · 2h ago
the ascii tree in "Project Structure" is a dead giveaway that AI is used in this project
pacifika · 1h ago
Why would you need to do that?
userbinator · 1h ago
To filter out the spam.
nbbaier · 2h ago
Neat! There's also a raycast extension for this kind of thing for anyone who wants to go that route:

https://www.raycast.com/lucaschultz/port-manager

password4321 · 3h ago
Interesting idea ("manages development processes running on ports 2000-6000"), and props for hitting the front page though technically this is a "Show HN". Screenshot(s)?
lexokoh · 3h ago
Not sure I can add images here, but if you check the repo, I'll be adding one shortly.
incanus77 · 2h ago
These would be good additions to SwiftBar/BitBar.