r/macapps • u/AlteredStateOfMind • 10d ago
Free Ports: a menu bar app that shows every local server on your Mac, the project it belongs to and what started it - Free
Hi all, I'm Miko, the developer of Ports. I built it to fix my own problem: too many dev servers running, half of them started by coding agents, and no quick way to see which one was holding which port.
Problem: Ports shows every server listening on your Mac, tells you which project it belongs to and what started it, and lets you stop or restart it in a click.
What it does
- Finds servers by itself. There is nothing to set up or add.
- Shows the project folder, the framework (Vite, Next.js, Rails, Postgres and about 100 others) and the launcher: your terminal, your editor, a coding agent, Docker or a launch agent.
- Stops a server gracefully, and force-stops it only if it won't go.
- Keeps a "recently stopped" list so you can start a server again with the same command, in your own terminal (tmux, Muxy and Herdr recipes are on the site).
- Docker containers, databases and Laravel Valet/Herd sites are included. Type a Valet site's name in the filter to open it.
- Watch a port to pin it and get a notification when it goes down.
- Global shortcuts, a filter, and buttons to open the project in your editor or terminal.
Comparison: the two closest rivals are LocalPorts and Manfath.
- LocalPorts (free, Pro $19): you add each service by hand and it then manages it. It is better than Ports at running services: live log viewer, health history, auto-restart on crash, webhooks, profiles, and it supports macOS 13+. Ports is better at discovery: it needs no setup and tells you the project, framework and launcher of servers you never registered.
- Manfath (free, open source): also finds ports automatically. It is better at sharing: one-click Cloudflare Tunnel or ngrok, a QR code for your phone, Homebrew install, and macOS 14+. Ports goes further on context and control: what launched each server, Docker and Valet/Herd awareness, graceful stops, start again, and watched ports.
Pricing: $0, free. No account, no in-app purchases. https://ports.graffio.co
Trust: Website, https://www.linkedin.com/in/mikomagni/, https://ports.graffio.co/privacy
Signed and notarised by Apple.
Changelog: https://ports.graffio.co/changelog
My other open source work (Ports itself is closed source): https://github.com/mikomagni/
Good to know before you download
- Requires macOS 26 and Apple silicon.
- Not open source.
- The app has no analytics or crash reporting. Its only outside connection is the update check.
Happy to answer questions, and bug reports are welcome at the address on the privacy page.
•
u/macapps-ModTeam 10d ago
Hi, your app is in one of our saturated categories. These apps qualify for the main feed only through the Mac App Store, a Dev Flair, or a top 3 spot in The App Pile.
This post counts as your app post for the next 30 days. You're welcome to enter this month's App Pile. Details
13
u/filip_gl 10d ago
Very nice man, I used it and it pretty much caught everything I have.
Cheers!
7
u/Thiinad 10d ago
Ports 1.0.9 is rejected by macOS Tahoe 26 on an M4 Pro.
codesign --verify --deep --strict --verbose=4 /Applications/Ports.app
reports:
unsealed contents present in the root directory of an embedded framework
In subcomponent:
.../Contents/Frameworks/Sparkle.framework
spctl -a -vvv -t execute /Applications/Ports.app reports:
rejected (unsealed contents present in the root directory of an embedded framework)
Could you check and re-sign/notarize the release?
2
u/Difficult_Duty2198 10d ago
does it pick up servers running inside docker containers too, or just stuff started on the host? the agent-started ones sound handy
2
u/indian_geek 10d ago
Any chance of open-sourcing the project? I have a great idea if you would like to implement which is to build on the new AlfredUI (introduced in Alfred 6) to view the main interface through Alfred launcher!
2
u/South_Literature_39 10d ago
Nice, this is a real problem with agents spinning up servers everywhere. Curious about the implementation: are you reading sockets and cwd straight from libproc (proc_pidinfo / proc_pidfdinfo), or shelling out to lsof on a timer? lsof gets slow when there are a lot of processes, so I'm wondering how you keep the menu fresh without it costing battery. And for the project folder, is that just the process's working directory walked up to the nearest package.json / Gemfile / .git, or something smarter?
1
u/Ok_Woodpecker_9104 10d ago
how does it work out the launcher once the parent is gone? some of my long running scripts get started with nohup from a terminal or an agent session and then that shell exits, so the process gets reparented to launchd and the parent chain just says pid 1.
does it fall back to the cwd or env vars there, or does it show up as a launch agent? that is exactly the case where i lose track of what is holding a port
1
u/linzjalinzj 10d ago
When a reloader or wrapper like
uvicorn --reload,nodemon, ornpm run devspawns a child worker that owns the listening socket, does Stop signal the process group / watcher parent too, or just the socket-holding PID (which the watcher immediately respawns)?1
u/SnapState 10d ago
Does a row show the bind address/interface as well as the port? With agent-started dev servers, the difference between 127.0.0.1, ::1, and 0.0.0.0 matters a lot; a small "local-only" vs "LAN-visible" label would make it much easier to spot something accidentally exposed on a shared network.
1
u/ale_benassi 9d ago edited 9d ago
This is really really cool, and really useful in this time and age with agents leaving behind so much junk. Well done!
Would you consider adding some extra icons? There is a crazy amount of menu bar apps out there already using a circle or a circle within a circle. On my mac alone I currently have 6:
Mos - Opie - Monocle - Ports - 1Password - Loop
Edit:
Oh and it would be absolutely amazing if you implemented the tunnel feature from Manfath. That app is nice but has received only one initial release seven months ago so I'm not sure about its future.
1
u/Agreeable_Act7083 17h ago
This fills a real gap for me. I always end up with a forgotten dev server on some port and have to hunt for it with lsof. Can it stop a server from the menu too, or does it only show them?
2
u/Cultural_Lock_3552 9d ago
I've seen a few apps trying to achieve that but this one seem to be really polished and taken to the finish line. Good job.
2
u/mathiswrong 9d ago
This is legitimately useful. Thank you.
1
u/Swimming-Ad6447 10d ago
Coding agents leaving orphan dev servers behind on random ports is way too familiar lately. Showing which project folder and which launcher started the process saves a lot of lsof guessing, definitely giving this a try.
1
u/cl0udminer 10d ago
This is awesome, much better than looking through the terminal command output to figure out whats running. Thank you!
0
u/nyteschayde 9d ago
Love the idea, unfortunate choice of name as it collides with Mac Ports (alternate package manager to Homebrew)
0
u/movingimagecentral 9d ago
“ the project it belongs to and what started it ”
Can’t even be bothered to write a headline that isn’t full of garble backwards AI speak
-3
u/Yellow_Robot 10d ago
ok, good buy
0
u/ThanhDongNguyen 10d ago
The 1.0.9 chain thing is nice, but the catch you mention (Ports has to be running when the server starts) is exactly the case people will hit after a reboot or first install.
Maybe make "launch at login" on by default in first run, and mark rows where the chain is only the fallback (responsible app) with a small icon or "guessed" label. Otherwise I think people will see "Ghostty" for an orphan server and assume it's wrong.
Also would be useful to copy the full command + cwd from a row, for when I want to restart it manually from terminal.