skip to content

// macos app

Sever

Every running process and open port on your Mac, one click from the menu bar.

A menu bar app that lists processes and open network ports side by side, refreshed every few seconds, filtered as you type, and lets you end either by PID: gracefully by default and forcefully one right-click away. It always tells you why something would not die.

source
// scissors14/22
year
2026
type
macos app
group
macos apps

//in plain words

Sometimes a program on your Mac keeps running when you want it gone, or holds on to a network port your new program needs. Sever shows everything that is running and every port in use in a small menu bar panel, and stops any of them with one click, politely first and forcefully if you insist, always saying whether it worked.

for developers with a dev server that will not let go of its port

the problem

//01the problem

Killing a stray dev server means kill -9 $(lsof -ti:3000) or three windows of Activity Monitor, and neither tells you why a process survived.

how it works

//02how it works

  1. 01

    Two lists, one action

    Processes with CPU, memory and user, and ports with their process, protocol and bind address, share one control. SIGTERM by default; SIGKILL is a separate affordance behind a right-click or a hover, never the default button, so a slip of the mouse cannot force-kill anything.

  2. 02

    Never fails silently

    Every attempt reports what happened: severed, denied because the process is root-owned or protected, already gone, or a readable error. Already gone is treated as success, since the goal was for it to stop.

  3. 03

    Fresh enough, and pausable

    Both lists poll every three seconds off the main thread, pause on request, refresh on demand and stop when the panel closes. One search field matches name, PID, address, port or protocol, and processes sort by CPU, memory, name or PID.

  4. 04

    Honest about its sources

    Today the lists come from ps and lsof, parsed by pure functions that are tested against captured output. Both listers sit behind protocols so a libproc implementation can drop in later without touching the interface. Killing calls kill(2) directly.

measured

//03measured

825
lines of swift
the app and its kit, tests excluded; the smallest app on this site
23
automated tests
parsers checked against captured ps and lsof output, no process spawned
4
outcomes every attempt reports
severed, denied, already gone, or the errno by name
27 min
from repository creation to last push
29 commits on 21 aug 2026

decisions

//04decisions

  1. 01

    chose shelling out to ps and lsof

    over libproc and the socket APIs

    Simple, observable and fast enough at a refresh interval of a few seconds. The parsers are pure functions behind protocols, so a native implementation is a drop-in later without changing the interface.

  2. 02

    chose a timer-driven poll

    over an event source

    macOS has no cheap system-wide notification for a process starting or a port opening. A three-second poll that pauses and stops with the panel is bounded and predictable, which matters more here than sub-second freshness.

  3. 03

    chose reporting permission denied

    over a privileged helper

    Root-owned processes reject the signal and show blank fields from an unprivileged lsof. Sever says so instead of pretending. A launchd helper is a later step with its own security surface.

try it

//05try it

  1. //build and run in xcode

    git clone https://github.com/KhaledSaeed18/sever && cd sever && open Sever.xcodeproj

    xcode 16 or later, macos 14 or later

  2. //run the kit tests

    swift test --package-path SeverKit

highlights

//06highlights

  • No Dock icon, no permissions requested, no App Sandbox
  • Live refresh every three seconds, search as you type, sortable
  • SIGTERM by default, SIGKILL one right-click away
  • Honest error reporting, including processes it is not allowed to kill
  • Monospaced, dense and scannable

built with

  • Swift
  • SwiftUI
  • Swift Testing

on githubsever

license
MIT
language
Swift
last push
aug 21, 2026

printings

//07printings

  1. Built and published in one sitting

    Kit, parsers, kill controller with typed results, the panel, tests, CI and docs, in 29 commits over 27 minutes of pushes.

questions

//08questions

Does Sever need Accessibility or any other permission?
No. It runs ps and lsof and calls kill as your user. Its Info.plist declares no usage strings.
Can it kill root or system processes?
No. Those return permission denied, and Sever shows that instead of failing silently. It ships no privileged helper on purpose.
Does it use CPU in the background?
It polls every three seconds while the panel is open and stops when it closes. You can pause the poll from the header.
Which ports does it show?
Listening TCP sockets and active UDP sockets, with the process name, protocol and bind address.

related sheets

//09related sheets

//10contact

Say hello.I read everything.

Email is the fastest way to reach me. For anything that needs a conversation, book a call.

to

name
Khaled Saeed
country
Lebanon