r/swift • u/Affectionate_Pea3516 • 12d ago
Sysbar: a menu bar system monitor built with SwiftPM only (no .xcodeproj), AppKit + SwiftUI, IOKit/Mach APIs. Open source, plus a few lessons learned
Sysbar is a small menu bar app for macOS that shows CPU, GPU, memory, disk, network and top processes. It's written in Swift with no dependencies and uses about 35 MB of RAM.
Since the last few versions it can also serve `/metrics` for Prometheus.
The metric names follow node_exporter, so dashboards like Node Exporter Full work as they are, and it adds what node_exporter can't see on a Mac: GPU, E/P core usage, memory pressure and battery health. It's off by default and only listens where you choose (localhost or Tailscale, for example). A Grafana dashboard is included in the repo.
Download (DMG): https://github.com/rodrigotrombeta/Sysbar/releases/latest
Source (Apache-2.0): https://github.com/rodrigotrombeta/Sysbar
It isn't notarized, so macOS will block it on the first launch. The README explains how to allow it, but basically it is:
xattr -dr com.apple.quarantine /Applications/Sysbar.app
Feedback is welcome, especially from anyone who knows AppKit well
-1
u/ThanhDongNguyen 12d ago
Nice that it's all public APIs and no helper. A few things I'd check:
1
u/honestly_i 6d ago
Jesus christ it's an ai post with ai comments
This is hell
-2
u/[deleted] 12d ago
[removed] — view removed comment