Skip to content

Turbo CDNIntelligent Download Accelerator

Next-generation download tool with automatic CDN optimization, geographic detection, and real-time quality assessment

Turbo CDN

Quick Start

Installation

bash
# 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

CLI Usage

bash
# 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 stats

Library Usage

rust
use 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(())
}

Supported Package Managers

Package ManagerMirrors AvailableGeographic Optimization
GitHub7 mirrorsChina, Asia, Global
Python PyPITsinghua, Aliyun, DoubanChina optimized
Rust CratesTsinghua, USTCChina optimized
Go Modulesgoproxy.cn, AliyunChina optimized
Docker HubUSTC, NetEase, Docker ChinaChina optimized
Maven CentralAliyun, TsinghuaChina optimized
jsDelivr5 global CDN nodesAll regions
npm/unpkgMultiple CDN alternativesGlobal

Performance Highlights

MetricValue
CDN Rules16+ optimization rules
GitHub Mirrors7 high-quality sources
Package Managers6+ supported
Quality AssessmentReal-time monitoring
ConcurrencyAdaptive control
Resume SupportFull capability

Released under the MIT License.