Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

winload onefetch

Winload

A lightweight, real-time CLI tool for monitoring network bandwidth and traffic, inspired by Linux's nload.

๐Ÿ“– English ๐Ÿ“– ็ฎ€ไฝ“ไธญๆ–‡(ๅคง้™†) ๐Ÿ“– ็น้ซ”ไธญๆ–‡(ๅฐ็ฃ) ๐Ÿ“– ๆ–‡่จ€ๆ–‡ ๐Ÿ“– ๆ—ฅๆœฌ่ชž ๐Ÿ“– ํ•œ๊ตญ์–ด

GitHub Gitee

Windows x64 | ARM64 Linux x64 | ARM64 macOS x64 | ARM64 Android x64 | ARM64

PyPI Python Versions

Crates.io

npm

Scoop.sh AUR APT RPM Homebrew

๐Ÿ“– Build Docs

๐Ÿš€ Introduction

Winload brings an intuitive, visual network monitor to the modern terminal. It started as a Windows-focused tool to fill the nload gap, and now targets Linux and macOS as well.

๐Ÿ™ Acknowledgements

Winload is inspired by the classic ใ€Œnloadใ€ project by Roland Riegel. Many thanks for the original idea and experience. https://github.com/rolandriegel/nload

โœจ Key Features

  • Dual implementations
    • Rust edition: fast, memory-safe, single static binaryโ€”great for everyday monitoring.
    • Python edition: easy to hack and extend for prototyping or integrations.
  • Cross-platform: Windows, Linux, and macOS (x64 & ARM64).
  • Real-time visualization: live incoming/outgoing graphs and throughput stats.
  • Minimal UI: clean TUI that mirrors nload's ergonomics.

๐Ÿ“Š Performance Benchmarks

โšก Winload (Rust) achieves ~10ms startup and <2MB binary size, significantly outperforming Python and matching C++ nload in efficiency.

Winload Benchmark

๐Ÿ”ง Run from Source

Python

git clone https://github.com/VincentZyuApps/winload.git
# or clone from Gitee (faster in China Mainland):
# git clone https://gitee.com/vincent-zyu/winload.git
cd winload/python
uv run python -m winload

Rust

git clone https://github.com/VincentZyuApps/winload.git
cd winload/rust
cargo run --release
cargo run --release -- --help    # Show help
cargo run --release -- --version # Show version

๐Ÿ Python Edition Installation

๐Ÿ’ก Implementation Note: Only PyPI and GitHub/Gitee provide Python edition.
Only Cargo provides Rust source code for local compilation.
All other package managers (Scoop, AUR, npm, APT, RPM) and GitHub Releases distribute Rust binaries only.

Python (pip)

pip install winload
# recommend use uv:
# https://docs.astral.sh/uv/getting-started/installation/
# https://gitee.com/wangnov/uv-custom/releases
uv venv --python 3.13
uv pip install winload
uv run python -c "import shutil; print(shutil.which('winload'))"
uv run winload

๐Ÿ“ฅ Rust Edition Installation (recommended)

npm (cross-platform)

# Recommended (scoped)
npm install -g @vincentzyuapps/winload
# Alternative (unscoped)
npm install -g winload-rust-bin
# Alternative (GitHub Packages)
npm install -g @vincentzyuapps/winload --registry https://npm.pkg.github.com
# on Windows, use win-nload to avoid conflict with System32\winload.exe
# on Linux/macOS, both winload and win-nload work
# or use npx directly
npx @vincentzyuapps/winload

Includes 4 precompiled binaries for x86_64 & ARM64 across Windows, Linux, and macOS.

Cargo (Build from source)

cargo install winload
cargo install --list

Windows (Scoop)

๐Ÿ“„ Scoop Bucket (GitHub) ๐Ÿ“„ Scoop Bucket (Gitee)

scoop bucket add vincentzyu https://github.com/VincentZyuApps/scoop-bucket
# or from Gitee:
# scoop bucket add vincentzyu https://gitee.com/vincent-zyu/scoop-bucket
scoop update   # optional: manually refresh bucket list before install
scoop install winload
# execute bin file
win-nload
Get-Command win-nload # Powershell
where win-nload # CMD

๐Ÿ’ก Recommended: use Windows Terminal instead of the legacy Windows Console for correct CJK character rendering and better TUI experience.

scoop bucket add versions
scoop install windows-terminal-preview
wtp

๐Ÿ’ก All builds require Windows 10+ (Rust 1.77+ dropped Windows 7/8 support). Scoop and npm provide MSVC + Npcap for x86_64 and ARM64 by default. These builds now delay-load wpcap.dll, reducing startup failures before --npcap is used, but loopback capture still requires Npcap installed on the system.

Arch Linux (AUR):

paru -S winload-rust-bin
which winload

Debian & RedHat Distros / Termux (one-liner)

Supports Debian/Ubuntu and derivatives โ€” Linux Mint, Pop!_OS, Deepin, UOS, etc. (apt)

Supports Fedora/RHEL and derivatives โ€” Rocky Linux, AlmaLinux, CentOS Stream, etc. (dnf)

Also supports Termux on Android (aarch64)

curl -fsSL https://raw.githubusercontent.com/VincentZyuApps/winload/main/docs/scripts/install/install.sh | bash
which winload

๐Ÿ“„ View install script source

๐Ÿ‡จ๐Ÿ‡ณ Gitee mirror (faster in China Mainland):

curl -fsSL https://gitee.com/vincent-zyu/winload/raw/main/docs/scripts/install/install_gitee.sh | bash
which winload

๐Ÿ“„ View Gitee install script

โš ๏ธ The two curl ... | bash install scripts above support x86_64 / aarch64 systems with apt (Debian/Ubuntu), dnf (Fedora/RHEL), or Termux (Android). For other platforms, use npm (npm install -g @vincentzyuapps/winload) or Cargo (cargo install winload) instead.

macOS / Linux (Homebrew)

๐Ÿ“„ Homebrew Formula (GitHub) ๐Ÿ“„ Homebrew Formula (Gitee) Recent Homebrew versions may require trusting third-party tap formulae before installation.

brew tap vincentzyuapps/tap
brew trust vincentzyuapps/tap
# or from Gitee (manual tap clone):
# git clone https://gitee.com/vincent-zyu/homebrew-tap.git "$(brew --prefix)/Library/Taps/vincentzyuapps/homebrew-tap"
brew update && brew install winload
which winload

๐Ÿ’ก Homebrew supports macOS (Intel & Apple Silicon) and Linux (x86_64 & ARM64).

Manual install

DEB (Debian/Ubuntu):

# Download the latest .deb from GitHub Releases
sudo dpkg -i ./winload*.deb
# or use apt (auto-resolves dependencies)
sudo apt install ./winload*.deb
which winload

RPM (Fedora/RHEL):

sudo dnf install ./winload*.rpm
which winload

Or download binaries directly from GitHub Releases.

โŒจ๏ธ Usage

winload              # Monitor all active network interfaces
winload -t 200       # Set refresh interval to 200ms
winload -d "Wi-Fi"   # Start with a specific device
winload --title "My Monitor" # Use a custom header title
winload -e           # Enable emoji decorations ๐ŸŽ‰
winload --max-mode smart --max-half-life 10 # Smooth adaptive Y-axis (default)
winload --max-mode legacy # nload-style visible-history scaling
winload --max-mode fixed --max-y-value 10M # Fixed Y-axis max
winload --graph-style line --x-axis 5s --y-axis unit # Rust: line graph with time and traffic axes
winload --npcap      # Capture 127.0.0.1 loopback traffic (Windows, requires Npcap)
winload --netlink    # Manually enable RTNETLINK (Linux/Android, off by default)

Options

Flag Description Default
-t, --interval <MS> Refresh interval in milliseconds 500
-a, --average <SEC> Average calculation window in seconds 300
-d, --device <NAME> Default device name (partial match) โ€”
--title [TITLE] Add a title line above device header: no value shows winload <version>; empty string (or omitted) shows only the default device header โ€”
-e, --emoji Enable emoji decorations in TUI ๐ŸŽ‰ off
-U, --unicode Use Unicode block characters for the classic graph (โ–ˆโ–“โ–‘ยท) off
--graph-style <STYLE> [Rust Only] Graph style: classic, line, scatter, or bar classic
--x-axis <MODE> [Rust Only] X-axis grid: none or a positive seconds interval such as 5s none
--y-axis <MODE> [Rust Only] Y-axis labels/grid: none, percent, or unit none
-u, --unit <UNIT> Display unit: bit or byte bit
-b, --bar-style <STYLE> Bar style: fill, color, or plain plain
--in-color <HEX> Incoming graph color, hex RGB (e.g. 0x00d7ff) cyan
--out-color <HEX> Outgoing graph color, hex RGB (e.g. 0xffaf00) gold
--max-mode <MODE> Y-axis scaling mode: smart, legacy, or fixed smart
--max-half-life <SECS> Half-life for smart Y-axis decay 10
--max-y-value <VALUE> Fixed Y-axis max for --max-mode fixed (e.g. 10M, 1G, 500K) โ€”
-n, --no-graph Hide graph, show stats only off
--hide-separator Hide the separator line (row of equals signs) off
--no-color Disable all TUI colors (monochrome mode) off
--npcap [Windows Rust Only] Capture loopback traffic via Npcap (recommended) off
--netlink [Linux/Android Only] Use RTNETLINK instead of the default backend (for Termux proot distro or restricted environments) off
--debug-info Print network interface debug info and exit โ€”
-h, --help Print help (--help --emoji for emoji version!) โ€”
-V, --version Print version โ€”

Y-axis scaling modes

Mode Flag Behavior
smart --max-mode smart --max-half-life 10 Default. Jumps up on traffic spikes, then smoothly decays back down.
legacy --max-mode legacy nload-style scaling based on the visible graph history peak.
fixed --max-mode fixed --max-y-value 10M Locks the Y-axis to the specified value.

--max-y-value is only valid with --max-mode fixed; --max-half-life is only valid with --max-mode smart.

Keyboard Shortcuts

Key Action
โ† / โ†‘ Switch to the previous network device
โ†’ / โ†“ Switch to the next network device
Tab / Enter Switch to the next network device
PageUp / PageDown [Python Only] Switch to the previous/next network device
F3 Toggle debug info overlay (Minecraft-style)
= Toggle separator line visibility
c Toggle color on/off
C [Python Only] Toggle color on/off
g / G [Rust Only] Cycle classic โ†’ line โ†’ scatter โ†’ bar
x / X [Rust Only] Toggle the time axis; use 5s when no interval was configured
y / Y [Rust Only] Cycle Y-axis mode: none โ†’ percent โ†’ unit
q / Q or Ctrl+C Quit
Esc [Rust Only] Quit

Implementation notes: PageUp, PageDown, and uppercase C are Python-only; Esc and the g/x/y graph controls are Rust-only. classic remains the default Rust graph style, and runtime graph changes affect only the current session. All four Rust graph styles share the same X/Y grid and scaling viewport. --unicode affects only classic; the Ratatui styles use their native markers.

๐ŸชŸ Windows Loopback (127.0.0.1)

Windows cannot report loopback traffic through standard APIs โ€” this is a functional deficiency in Windows' network stack.

To capture loopback traffic on Windows, use the --npcap flag:

winload --npcap

This requires Npcap installed with "Support loopback traffic capture" enabled during setup.

I previously tried polling Windows' own GetIfEntry API directly, but the counters are always 0 for loopback โ€” there is simply no NDIS driver behind the loopback pseudo-interface to count anything. That code path has been removed.

๐Ÿ“– For a deep dive into why Windows loopback is broken, see docs/win_loopback.md

๐Ÿง Linux / Android / Termux Netlink

On Linux and macOS, loopback traffic works out of the box โ€” no extra flags needed.

On Linux/Android, if /proc/net/dev is not accessible (e.g. inside a Termux proot distro or other restricted environments), use --netlink to collect network stats via RTNETLINK directly:

winload --netlink

Note: --netlink is an opt-in backend, similar to --npcap; it is never enabled unless you pass the flag. Normal Linux/Android runs still use the default backend (Rust: sysinfo, Python: psutil). The Python edition uses pyroute2 for RTNETLINK on Linux/Android. macOS does not support netlink.

๐Ÿ“– For a deep dive into Linux/Android network statistics collection, see docs/linux_android_netlink.md

๐Ÿ–ผ๏ธ Previews

Python Edition Preview

docs/images/preview-py.png

Rust Edition Preview

docs/images/preview-rust.png

Rust Edition Preview GIF

docs/images/preview-rust.gif

Terminal Recording

asciicast

โ†‘ Recorded by asciinema

๐Ÿ“ฆ Dependencies

Python Edition

Package Version Description
Python 3.13.11 Programming language
psutil โ‰ฅ7.0 Process and system utilities
pyroute2 โ‰ฅ0.9.6 RTNETLINK backend on Linux/Android
windows-curses โ‰ฅ2.0 Windows curses support

Rust Edition

Package Version Description
Rust 1.93.0 Programming language
ratatui 0.29 Terminal UI framework
crossterm 0.28 Cross-platform terminal library
sysinfo 0.32 System information library
clap 4 Command-line argument parser
pcap 2 Packet capture (optional, Windows)

๐Ÿงญ Epilogue

Network traffic flows formless through the void โ€” yet Winload gives it shape. Packets traverse the terminal, silent and unseen, but through this window, every thread of throughput takes form before your eyes. If you seek to know the pulse of a machine's connection to the world, this tool is at once a humble lamp upon your desk and a guiding star for the journey ahead.

๐Ÿงฑ Source Layout

python/
โ”œโ”€โ”€ src/
โ”‚   โ””โ”€โ”€ winload/
โ”‚       โ”œโ”€โ”€ i18n/
โ”‚       โ”‚   โ”œโ”€โ”€ __init__.py // 32 lines | Selects the active language and exposes stable translation helpers.
โ”‚       โ”‚   โ”œโ”€โ”€ en_us.py // 154 lines | Stores the English localization catalog.
โ”‚       โ”‚   โ”œโ”€โ”€ zh_cn.py // 154 lines | Stores the Simplified Chinese localization catalog.
โ”‚       โ”‚   โ””โ”€โ”€ zh_tw.py // 154 lines | Stores the Traditional Chinese localization catalog.
โ”‚       โ”œโ”€โ”€ ui/
โ”‚       โ”‚   โ”œโ”€โ”€ __init__.py // 266 lines | Coordinates curses layout, colors, application state, and public UI access.
โ”‚       โ”‚   โ”œโ”€โ”€ debug.py // 111 lines | Draws the interactive F3 diagnostics overlay.
โ”‚       โ”‚   โ””โ”€โ”€ panels.py // 219 lines | Draws classic traffic graphs and formatted statistics panels.
โ”‚       โ”œโ”€โ”€ __init__.py // 2 lines | ๐Ÿ“ฆ Marks the Python package and exposes package-level metadata.
โ”‚       โ”œโ”€โ”€ __main__.py // 6 lines | โ–ถ๏ธ Runs the Python CLI entry point when invoked with python -m winload.
โ”‚       โ”œโ”€โ”€ app.py // 135 lines | Owns mutable application state, traffic updates, and device navigation.
โ”‚       โ”œโ”€โ”€ cli.py // 205 lines | Builds, localizes, parses, and validates the Python command-line interface.
โ”‚       โ”œโ”€โ”€ collector.py // 121 lines | ๐Ÿ“ก Collects network interface counters with psutil or the optional Netlink backend.
โ”‚       โ”œโ”€โ”€ config.py // 65 lines | Defines immutable, strongly typed runtime configuration for the Python application.
โ”‚       โ”œโ”€โ”€ diagnostics.py // 162 lines | Reports version, build, system, and network-interface diagnostic information.
โ”‚       โ”œโ”€โ”€ emoji.py // 41 lines | โœจ Decorates CLI-facing labels with optional emoji icons.
โ”‚       โ”œโ”€โ”€ graph.py // 108 lines | ๐Ÿ“Š Renders incoming and outgoing traffic graphs for terminal display.
โ”‚       โ”œโ”€โ”€ main.py // 46 lines | Wires the Python CLI to diagnostics or the interactive terminal runtime.
โ”‚       โ”œโ”€โ”€ netlink.py // 120 lines | ๐Ÿ”— Reads Linux and Android network counters directly through RTNETLINK.
โ”‚       โ”œโ”€โ”€ runtime.py // 62 lines | Manages the curses lifecycle, input mapping, refresh cadence, and UI rendering loop.
โ”‚       โ””โ”€โ”€ stats.py // 206 lines | ๐Ÿ“ˆ Calculates rolling traffic rates, totals, and adaptive graph scale values.
โ””โ”€โ”€ _build_info.py // 73 lines | ๐Ÿงพ Resolves source or packaged Git metadata for Python version output.

rust/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ i18n/
โ”‚   โ”‚   โ”œโ”€โ”€ en_us.rs // 130 lines | Provides the complete English localization catalog.
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs // 54 lines | ๐ŸŒ Provides localized UI, help, and debug strings for supported languages.
โ”‚   โ”‚   โ”œโ”€โ”€ zh_cn.rs // 130 lines | Provides the complete Simplified Chinese localization catalog.
โ”‚   โ”‚   โ””โ”€โ”€ zh_tw.rs // 130 lines | Provides the complete Traditional Chinese localization catalog.
โ”‚   โ”œโ”€โ”€ ui/
โ”‚   โ”‚   โ”œโ”€โ”€ debug.rs // 105 lines | Draws the F3 runtime diagnostics overlay.
โ”‚   โ”‚   โ”œโ”€โ”€ mod.rs // 261 lines | Coordinates the ratatui layout, header, help bar, panels, and debug overlay.
โ”‚   โ”‚   โ””โ”€โ”€ panels.rs // 488 lines | Draws traffic histories in classic, line, scatter, and bar styles with optional axes.
โ”‚   โ”œโ”€โ”€ app.rs // 190 lines | Owns mutable application state, traffic collection, and device navigation.
โ”‚   โ”œโ”€โ”€ cli.rs // 375 lines | Parses localized command-line arguments and produces a validated RunConfig.
โ”‚   โ”œโ”€โ”€ collector.rs // 238 lines | ๐Ÿ“ก Collects network interface counters and prepares traffic snapshots for the TUI.
โ”‚   โ”œโ”€โ”€ config.rs // 183 lines | Defines validated, strongly typed runtime configuration shared by the Rust modules.
โ”‚   โ”œโ”€โ”€ diagnostics.rs // 45 lines | Prints build, platform, and network-interface diagnostics outside the TUI.
โ”‚   โ”œโ”€โ”€ emoji.rs // 40 lines | โœจ Decorates CLI-facing labels with optional emoji icons.
โ”‚   โ”œโ”€โ”€ graph.rs // 279 lines | ๐Ÿ“Š Renders incoming and outgoing traffic graphs for terminal display.
โ”‚   โ”œโ”€โ”€ loopback.rs // 227 lines | ๐ŸชŸ Captures and counts Windows loopback traffic through Npcap when enabled.
โ”‚   โ”œโ”€โ”€ main.rs // 42 lines | Boots the Rust application and dispatches CLI actions to focused modules.
โ”‚   โ”œโ”€โ”€ netlink.rs // 175 lines | ๐Ÿ”— Reads Linux and Android network counters directly through RTNETLINK.
โ”‚   โ”œโ”€โ”€ runtime.rs // 99 lines | Runs the terminal lifecycle, refresh loop, and semantic keyboard controls.
โ”‚   โ””โ”€โ”€ stats.rs // 231 lines | ๐Ÿ“ˆ Calculates rolling traffic rates, totals, and adaptive graph scale values.
โ””โ”€โ”€ _build_info.rs // 51 lines | ๐Ÿงพ Injects Git metadata and configures platform-specific linker behavior.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

winload-0.2.0a5.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

winload-0.2.0a5-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

Details for the file winload-0.2.0a5.tar.gz.

File metadata

  • Download URL: winload-0.2.0a5.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for winload-0.2.0a5.tar.gz
Algorithm Hash digest
SHA256 f7f8e5e3739eaccd54316f126f5b8e72f2201e48dc24a6ac5155f3c08cc6b441
MD5 8c532b5de82ad52abc7283e07de8e15d
BLAKE2b-256 aa1b9d0e60fec15cb1c999aed1064cfe87709e46fa99b2d34ab9ac50345a4c7c

See more details on using hashes here.

File details

Details for the file winload-0.2.0a5-py3-none-any.whl.

File metadata

  • Download URL: winload-0.2.0a5-py3-none-any.whl
  • Upload date:
  • Size: 44.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.3 {"installer":{"name":"uv","version":"0.12.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for winload-0.2.0a5-py3-none-any.whl
Algorithm Hash digest
SHA256 683ec068be4455ac746e2d1b61cfb75d9fde935ddf5d5e83c4e7442913b564c5
MD5 04cb834bf41761b0a07a344914c66279
BLAKE2b-256 ed199312ef04345dd3df4eaa94176b33362c3feb03643f163b769270a2991ccd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0a5 This release

2 files

0.1.12

2 files

0.1.11

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page