Skip to content

A tool showing network traffic on macos statusbar, write in swift ui 2.0

License

Notifications You must be signed in to change notification settings

cnfatal/NetworkStatusBar

Repository files navigation

Network Status Bar

A macOS menu bar tool for monitoring real-time network traffic per process, written in SwiftUI.

Preview

Status Bar

┌──────────────────────────────────────┐
│        ┊ 12.5KB/s ▲ ┊  Wi-Fi  🔍     │
│        ┊  3.2KB/s ▼ ┊                │
└──────────────────────────────────────┘

Dropdown Menu

┌────────────────────────────────┐
│  Network Traffic               │
│  ↑ 12.5KB/s    ↓ 3.2KB/s       │
├────────────────────────────────┤
│  Chrome           ↑  8.1KB/s   │
│                   ↓  2.0KB/s   │
│  Slack            ↑  3.2KB/s   │
│                   ↓  1.0KB/s   │
│  Terminal         ↑  1.2KB/s   │
│                   ↓  0.2KB/s   │
├────────────────────────────────┤
│  ⚙ Settings            ⌘ ,     │
│  ⏻ Quit                ⌘ Q     │
└────────────────────────────────┘

Settings Window

┌─ Settings ─────────────────────┐
│                                │
│  🕐 Refresh Interval           │
│  ┌────────────────────────┐    │
│  │ 1s  2s  3s  5s  10s    │    │
│  └────────────────────────┘    │
│                                │
│  🏎 Min Traffic Threshold      │
│  ┌────────────────────────┐    │
│  │ All  1KB  10KB  100KB  │    │
│  └────────────────────────┘    │
│                                │
│  🚫 Process Blacklist          │
│  ┌────────────────────────┐    │
│  │ Select process    [▾]  │    │
│  └────────────────────────┘    │
│  ┌─────────────────────┐       │
│  │ ClashX          (x) │       │
│  │ Surge           (x) │       │
│  └─────────────────────┘       │
│                                │
└────────────────────────────────┘

Install

Homebrew

brew tap cnfatal/tap
brew install --cask network-status-bar

Manual

Download the latest NetworkStatusBar.zip from Releases, unzip and drag NetworkStatusBar.app to /Applications.

Note: The app is not notarized. On first launch, right-click → Open, or run xattr -cr /Applications/NetworkStatusBar.app.

Features

  • SwiftUI based macOS menu bar app
  • Real-time network upload/download speed on status bar
  • Per-process network traffic breakdown in dropdown menu
  • Configurable refresh interval (1s / 2s / 3s / 5s / 10s)
  • Configurable minimum traffic threshold filter
  • Process blacklist — select from detected processes to exclude (e.g. proxies)
  • Standalone settings window (⌘,)
  • Settings persist via UserDefaults
  • Localization support (English / 中文)

About

A tool showing network traffic on macos statusbar, write in swift ui 2.0

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages