Skip to main content Switch to mobile version routeopt 0.1.1 Cross-platform CDN route optimizer with a mouse-driven TUI and dynamic OS firewall blocking
pip install routeopt Copy PIP instructions
Route Optimizer (routeopt) is a cross-platform CDN route optimizer with a mouse-driven TUI and dynamic OS firewall blocking.
Other Languages: English | 繁體中文 | 简体中文
Monitors active TCP connections across one or more target processes and configurable ports, probing CDN node latency, jitter, and reachability.
Dynamically blocks slow or unstable CDN nodes using native OS firewalls (Windows Filtering Platform per-app rules on Windows, pf anchor rules on macOS).
Runs strictly in the foreground with session-ephemeral cooldowns and no background daemon or auto-startup; exiting or closing the terminal clears every firewall rule and leaves a clean slate for the next session.
Keeps the headless core and platform layers (src/core/, src/platform/) completely decoupled from the TUI (src/tui/) and CLI (src/cli/) so future GUI frontends can share the same engine.
Supports --dry-run mode for safe inspection without modifying OS firewall rules.
Prebuilt binaries and registry packages (GitHub Releases, crates.io, npm, and PyPI) are published when v* release tags are cut. Until the first release is published, build from source with Cargo:
git clone https://github.com/Mai0313/routeopt.git cd routeopt cargo build --release --locked Once published, the routeopt CLI can also be installed via Cargo, npm, or PyPI:
cargo install routeopt # or npm install -g routeopt # or uv tool install routeopt Usage
# Run with the mouse-driven Compact TUI (requires Administrator on Windows or sudo on macOS for live blocking) routeopt --target douyin # Inspect connections and latency probes without modifying OS firewall rules routeopt --target douyin --dry-run # Monitor multiple targets and ports routeopt --target douyin --target bilibili --port 443 --port 8443 # Run headless without the TUI and stream engine events to stdout routeopt --target douyin --headless # Run a one-shot TCP latency/jitter probe without touching OS firewall rules routeopt --probe 1.1.1.1 routeopt --probe 1.1.1.1:8443 # Display version and build metadata routeopt --version CLI Options
The Compact TUI supports full mouse interaction across all four tabs (Monitor, Subnets, Events, Settings) as well as keyboard shortcuts:
The binary embeds dynamic build metadata via build.rs, including git tag version, commit count, short hash, dirty state, and Rust/Cargo versions.
routeopt v0.1.0-2-gf4ae332-dirty Built with Rust 1.99.1 and Cargo 1.99.1 Docker
docker build -f docker/Dockerfile --target prod -t ghcr.io/mai0313/routeopt:latest . docker run --rm ghcr.io/mai0313/routeopt:latest --version Development
Contributor setup, commands, tests, code conventions, CI, and release details live in CONTRIBUTING.md. Architecture and runtime invariants are documented in AGENTS.md.
cli tui cdn network route-optimizer firewall latency rust
Development Status 4 - Beta
Intended Audience End Users/Desktop
License OSI Approved :: MIT License
Operating System OS Independent
Programming Language Python :: 3
Topic System :: Networking
Release files for routeopt 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 10.7 MB
Release files / routeopt-0.1.1.tar.gz
Release files / routeopt-0.1.1-py3-none-any.whl
Security for routeopt 0.1.1
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 3, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




