Skip to content
forked from Tao93/NetTool

macOS 状态栏小工具实时显示网速. macOS menubar tool to monitor network speed.

License

Notifications You must be signed in to change notification settings

dddpeter/SpeedScout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpeedScout

macOS 状态栏显示实时网速的小工具,功能强大的网络监控应用。

A powerful macOS menubar app to monitor internet speed and network statistics.

系统要求 / System Requirements

  • macOS 12.0 或更高版本 / macOS 12.0 or later
  • Xcode 15.0+ with Swift 5.9

主要功能 / Features

基础功能 / Basic Features

  • ✅ 实时显示上传/下载速度 / Real-time upload/download speed display
  • ✅ 显示占用网速最高的应用 / Show top network-consuming apps
  • ✅ 自定义显示选项(颜色、单位、字体大小等)/ Customizable display options (colors, units, font size, etc.)
  • ✅ 快捷操作
    • 单击应用名称复制路径 / Click app name to copy path
    • 双击应用名称打开应用或在 Finder 中显示 / Double-click app name to open or show in Finder
    • 快捷键 ⌘⇧N 显示/隐藏网速信息 / Hotkey ⌘⇧N to show/hide speed info
  • ✅ 偏好设置面板 / Preferences panel
    • 自定义上传/下载颜色 / Custom upload/download colors
    • 选择速度单位(自动/B/S/KB/S/MB/S)/ Choose speed unit (auto/B/S/KB/S/MB/S)
    • 调整字体大小 / Adjust font size
    • 设置刷新间隔 / Set refresh interval
    • 选择显示内容(上传/下载)/ Choose what to display (upload/download)

高级功能 / Advanced Features

  • 🚀 网络测速功能 / Speed test

    • Cloudflare 官方节点(全球 Anycast)/ Cloudflare official nodes
    • 延迟测试(10次取平均 + 抖动)/ Latency test (10 pings + jitter)
    • 下载速度测试(1/10/25/100 MB 并发)/ Download speed test
    • 上传速度测试(10 MB)/ Upload speed test
    • 国内 20-60ms 延迟,支持 10Gbps 带宽 / 20-60ms latency in China
    • 实时速度计显示 / Real-time speedometer display
    • 测试进度可视化 / Test progress visualization
    • 线程安全的并发测试 / Thread-safe concurrent testing
    • 随时停止测试功能 / Stop test anytime
  • 📊 网络统计功能 / Network statistics

    • 实时流量统计窗口 / Real-time traffic statistics window
    • 记录和保存网速历史数据 / Record and save network speed history
    • 实时图表可视化展示(面积图、平滑曲线)/ Real-time chart visualization (area chart, smooth curves)
    • Y轴分离显示(上传在负轴,下载在正轴)/ Split Y-axis display (upload on negative, download on positive)
    • 流量统计(总量、平均速度、峰值速度)/ Traffic statistics (total, average speed, peak speed)
    • 网络质量监控(连接状态、延迟、丢包率、质量评分)/ Network quality monitoring (connection status, latency, packet loss, quality score)
    • 美化的界面设计 / Beautiful UI design
  • 🔔 流量提醒功能 / Traffic alert

    • 自定义上传/下载速度阈值 / Custom upload/download speed thresholds
    • 超过阈值时系统通知 / System notifications when thresholds exceeded
    • 可独立启用/禁用 / Can be enabled/disabled independently
    • 60秒冷却时间避免频繁提醒 / 60-second cooldown to avoid frequent alerts
  • 🌐 网络质量监控 / Network quality monitoring

    • 实时网络连接状态 / Real-time network connection status
    • 延迟监控(Ping 测试)/ Latency monitoring (Ping test)
    • 丢包率检测 / Packet loss detection
    • 网络质量评分(0-100)/ Network quality score (0-100)
    • 连接类型识别(WiFi/以太网/蜂窝网络)/ Connection type identification
  • 🔧 工具功能 / Utility features

    • 查看 nettop 原始输出 / View nettop raw output
    • 关于窗口 / About window
    • 菜单快捷操作 / Menu shortcuts
  • 性能优化 / Performance optimization

    • 批量数据保存减少磁盘IO / Batch data saving to reduce disk IO
    • 后台线程处理数据持久化 / Background thread for data persistence
    • 内存优化(智能数据点管理)/ Memory optimization (smart data point management)
    • 定时器优化减少CPU占用 / Timer optimization to reduce CPU usage

版本历史 / Version History

Version 1.3 (Build 4)

  • ✨ 新增实时网络统计窗口
  • ✨ 新增美化的界面设计
  • ✨ 新增实时图表可视化(面积图、平滑曲线)
  • ✨ 新增 Y 轴分离显示
  • ✨ 新增关于窗口
  • 🐛 修复多个界面显示问题
  • 📝 更新版权信息

Version 1.2:

  • Added speed test functionality
  • Added network statistics
  • Added traffic alerts
  • Added network quality monitoring

Version 1.1:

  • Basic speed monitoring features
  • Top apps display
  • Preferences panel

工作原理 / How It Works

应用使用 macOS 的 nettop 命令获取各进程的上传和下载字节数。通过持续执行 nettop 命令并计算差值,可以得出每个进程的网速详情。

The app uses macOS's nettop command to get the uploaded and downloaded bytes of each process. By continuously executing the nettop command and calculating the difference, we can determine the network speed details for each process.

使用的 nettop 命令:

nettop -x -t wifi -t wired -J time,bytes_in,bytes_out -P -l 1

开源协议 / License

本项目采用 MIT License 开源协议。这意味着你可以自由地:

  • ✅ 使用本软件进行商业用途
  • ✅ 修改源代码
  • ✅ 分发和再分发
  • ✅ 私有使用

唯一的要求是在所有副本中保留版权声明和许可声明。

This project is licensed under the MIT License. This means you are free to:

  • ✅ Use for commercial purposes
  • ✅ Modify the source code
  • ✅ Distribute and redistribute
  • ✅ Private use

The only requirement is to include the copyright notice and license notice in all copies.

详见 LICENSE 文件。/ See LICENSE file for details.

版权信息 / Copyright

Copyright © 2025 SpeedScout. All rights reserved.


English README: See README_EN.md for English version.

About

macOS 状态栏小工具实时显示网速. macOS menubar tool to monitor network speed.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%