A lightweight macOS menu bar app that monitors network latency with real-time sparkline visualization.
MacPing continuously pings google.com and displays the last 60 ping results as a pixel-based histogram in your menu bar. Taller bars = higher latency. Updates in real-time. Bars above 100ms shown in red.
Click the menu bar icon to access:
- Show Details - Opens a detailed latency graph window with live updates
- Quit - Exit the application
uv sync
uv run macping.py- macOS 10.14+
- Python 3.8+
rumps- macOS menu bar frameworkping3- ICMP ping librarypillow- Image generation for histogram renderingpyobjc-framework-Cocoa- Native macOS window components for detail view
- Pings google.com every 1 second
- Maintains rolling buffer of last 60 results
- Generates pixel-based histogram (configurable bar width and height)
- Scales latency from 0-100ms (hardcoded min/max)
- Updates menu bar in real-time
- Failed pings or latency >100ms shown as red bars
- Detail window shows full latency graph with native macOS appearance
- Graph adapts to system light/dark mode automatically
MIT