Intelligent Geographic Detection
Automatic IP geolocation with multiple API fallbacks and network performance testing for optimal region selection.
Next-generation download tool with automatic CDN optimization, geographic detection, and real-time quality assessment
# From crates.io
cargo install turbo-cdn
# Or from source
git clone https://github.com/loonghao/turbo-cdn.git
cd turbo-cdn
cargo build --release# Smart download (default - auto-selects best method)
turbo-cdn dl "https://github.com/user/repo/releases/download/v1.0/file.zip"
# Get optimized CDN URL
turbo-cdn optimize "https://github.com/user/repo/releases/download/v1.0/file.zip"
# View performance statistics
turbo-cdn statsuse turbo_cdn::*;
#[tokio::main]
async fn main() -> turbo_cdn::Result<()> {
let downloader = TurboCdn::new().await?;
let result = downloader.download_from_url(
"https://github.com/user/repo/releases/download/v1.0/file.zip"
).await?;
println!("Downloaded {} bytes at {:.2} MB/s",
result.size, result.speed / 1024.0 / 1024.0);
Ok(())
}| Package Manager | Mirrors Available | Geographic Optimization |
|---|---|---|
| GitHub | 7 mirrors | China, Asia, Global |
| Python PyPI | Tsinghua, Aliyun, Douban | China optimized |
| Rust Crates | Tsinghua, USTC | China optimized |
| Go Modules | goproxy.cn, Aliyun | China optimized |
| Docker Hub | USTC, NetEase, Docker China | China optimized |
| Maven Central | Aliyun, Tsinghua | China optimized |
| jsDelivr | 5 global CDN nodes | All regions |
| npm/unpkg | Multiple CDN alternatives | Global |
| Metric | Value |
|---|---|
| CDN Rules | 16+ optimization rules |
| GitHub Mirrors | 7 high-quality sources |
| Package Managers | 6+ supported |
| Quality Assessment | Real-time monitoring |
| Concurrency | Adaptive control |
| Resume Support | Full capability |