Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ort

A tiny macOS menu bar app that shows which TCP ports are listening and what's running on them.

  • Click the ○ icon → ports are scanned at that moment (no background polling, ~0% idle CPU).
  • Each port has a submenu: Open (browser for web servers; postgres://, mysql://, redis://, mongodb:// for databases, routed to your default DB tool), Stop (SIGTERM), Force Stop (SIGKILL), and Copy URL.
  • Show/Hide System Processes reveals macOS noise (rapportd, ControlCenter/AirPlay, etc.) in its own section below your ports. Off by default, remembered across launches.
  • Start at Login registers/unregisters the app as a login item.

Build & install

Requires only the Xcode Command Line Tools (xcode-select --install) — no Xcode.

make app        # builds Ort.app in this directory
make install    # copies it to /Applications
open /Applications/Ort.app

Development

make run                      # run from terminal (Ctrl+C to quit)
swift build && .build/debug/ort --scan       # print scanned ports and exit
.build/debug/ort --scan --all                # include system processes

How it works

One lsof -iTCP -sTCP:LISTEN call per menu open, parsed in PortScanner.swift. Click-to-open URL mapping and process stopping live in PortActions.swift. The menu is rebuilt in menuWillOpen in AppDelegate.swift.

About

A tiny macOS menu bar app that shows which TCP ports are listening and what's running on them.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages