← Back

Omaport: keeping track of local dev servers in Omarchy

When you have a few repos, git worktrees, and coding agents going at the same time, it doesn’t take long to lose track of what’s running where. Something is still holding port 4321, another Vite server is sitting in a forgotten terminal, and you end up running lsof or ss just to figure out which branch is on which port.

I wanted a small indicator in the Omarchy bar that tells me what’s running at a glance and lets me open or stop a server without hunting for its terminal. That became omaport.

github.com/pipetogrep/omaport ↗

Omaport popup in the Omarchy bar using the Tokyo Night theme, listing four local dev servers with their ports, directories, frameworks, git branches, PIDs, and Open or Kill buttons

What it does

In the bar, omaport sits as a small dot and a count of active dev servers (or an outline circle when nothing is running). Clicking it, or hitting a Hyprland keybinding, opens a list of every local dev server showing its port, project folder, git branch, framework, and PID.

From there you can open http://localhost:<port> in your default browser or kill the server in one click. Everything is keyboard-driven too: j/k or arrow keys to move, Enter or o to open, x to kill, a to switch between Dev servers and All user-owned listening TCP ports, and / to search once six or more servers are running.

Under the hood

The bar widget is QML for omarchy-shell, backed by a zero-dependency Rust CLI (omaport). Keeping the scanner in plain Rust with no external crates keeps the binary small, fast to build, and easy to reason about.

  • Direct /proc scanning. Rather than shelling out to ss, lsof, or git, omaport reads /proc/net/tcp, /proc/net/tcp6, and /proc/<pid>/* directly. A full scan takes roughly 1 to 3 ms and never needs sudo.
  • Worktree-aware git branches. It walks up from each process’s working directory and reads .git/HEAD directly, handling gitdir: worktree pointers and detached HEAD short SHAs.
  • Dev server filtering. Common tools (vite, next, astro, sveltekit, node, bun, python, rails, cargo, go, hugo, caddy, and similar) are separated from desktop and editor noise, with a one-click All toggle when you want to see every port.
  • Safer kills. Before sending SIGTERM (with a SIGKILL fallback), omaport checks that you own the process and that the PID is still listening on the expected port. It also deduplicates IPv4/IPv6 listeners and targets the parent process when a server forks workers.

The CLI works on its own outside the bar as well: omaport list, omaport list --all, omaport list --json, and omaport kill <pid>.

Fits into Omarchy

The widget follows your active Omarchy theme, accent colour, font, and Hyprland corner rounding live, so it blends into whichever theme you switch to.

Omaport popup following the light Catppuccin Latte theme in Omarchy

Omaport is MIT licensed. You can add the plugin with omarchy plugin add https://github.com/pipetogrep/omaport.git --enable and build the omaport binary straight from the cloned source with cargo, or install the CLI via the included PKGBUILD.