Skip to content
Proyek

Tentang

Modern BitTorrent Ratio Faker

Produktivitas dan otomatisasi

Cara angka ini diukur

324 bintang20 Fork +1 dalam 24 jam

Yang dapat Anda lakukan

  • Modern GUI: Built with Tauri and Svelte 5
  • 15 built-in themes: Default, Catppuccin, Tokyo Night, Dracula, and Gruvbox palettes
  • Cross-platform: Linux, Windows, and macOS
  • Client emulation: uTorrent, qBittorrent, Transmission, Deluge, BitTorrent, and rTorrent

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+5
dalam 15 hari
+9
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli
Rustatio Logo

🚀 Rustatio

A modern, cross-platform BitTorrent ratio management tool that emulates popular torrent clients. Built with Rust and Tauri for a fast, native desktop experience.

Accurately simulate seeding behavior by emulating uTorrent, qBittorrent, Transmission, Deluge, BitTorrent, or rTorrent with customizable upload/download rates and tracker interactions.

[!IMPORTANT] This tool is for educational purposes only. Manipulating upload/download statistics on BitTorrent trackers may violate the terms of service of private trackers and could result in account suspension or ban. Use at your own risk.

🎥 Demo

A quick walkthrough of the instance grid, torrent details, performance charts, Watch folder, and theme switching.

https://github.com/user-attachments/assets/fb4feeb9-b08e-4326-856b-2c3b4fd745de

📸 Screenshots

Rustatio Light Theme

Light Theme - Main Interface

Rustatio Dark Theme

Dark Theme - Main Interface

Torrent in Progress

Active Torrent with Performance Charts

Authentication

Authentication for Self-Hosted version

Main screenshot set captured with the optional WireGuard VPN integration enabled.

📥 Watch Folder

Rustatio can monitor a directory and automatically load new .torrent files as they appear. The Watch tab shows loaded, pending, and invalid files with per-file reload and delete controls.

Rustatio Watch Folder
Watch Folder - Automatic Torrent Imports

🎨 Themes

Rustatio includes 15 built-in themes across five families. Choose one from Settings → Theme.

Rustatio built-in themes
Catppuccin Latte, Tokyo Night, Dracula, and Gruvbox Dark

Features

  • Modern GUI: Built with Tauri and Svelte 5
  • 15 built-in themes: Default, Catppuccin, Tokyo Night, Dracula, and Gruvbox palettes
  • Cross-platform: Linux, Windows, and macOS
  • Client emulation: uTorrent, qBittorrent, Transmission, Deluge, BitTorrent, and rTorrent
  • Multi-instance support: Run and manage multiple torrents at the same time
  • Realistic statistics: Randomize rates and ratio, or ramp them up progressively
  • Stop conditions: Stop automatically at a target ratio, upload/download amount, or seed time
  • Idle handling: Pause announces when there are no leechers or seeders
  • Performance analytics: Live upload/download stats and interactive charts
  • Watch folder: Automatically load new .torrent files from a directory
  • VPN port sync (Docker): Follow Gluetun's forwarded port automatically
  • TOML configuration and detailed console logging

Getting Started

Rustatio runs as a native desktop app or as a self-hosted Docker server with a web UI.

Desktop

Download the latest release for your platform from Releases.

Windows

  1. Run the setup installer
  2. Launch Rustatio from the Start Menu

macOS

  1. Open the .dmg file and drag Rustatio to your Applications folder
  2. Launch it from Applications (you may need to allow it in System Settings → Privacy & Security)

Linux

Debian/Ubuntu:

sudo apt install ./Rustatio_*.deb

Fedora/RHEL/CentOS:

sudo dnf install Rustatio-*.rpm

Arch Linux (AUR):

yay -S rustatio-bin
# or
paru -S rustatio-bin

AppImage (universal):

chmod +x Rustatio_*.AppImage && ./Rustatio_*.AppImage

Standalone Binary (Self-Hosted)

Each release includes a statically linked Linux x86_64 build (rustatio-server-x86_64-unknown-linux-musl.tar.gz) with the web UI embedded. It runs on any Linux distribution without a glibc version requirement. It needs a writable data directory; DATA_DIR defaults to /data.

curl -fL -O https://github.com/takitsu21/rustatio/releases/latest/download/rustatio-server-x86_64-unknown-linux-musl.tar.gz
curl -fL -O https://github.com/takitsu21/rustatio/releases/latest/download/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missing
tar -xzf rustatio-server-x86_64-unknown-linux-musl.tar.gz
mkdir -p data
PORT=8080 DATA_DIR=./data ./rustatio-server
# http://localhost:8080 (or http://<server-ip>:8080)

Check the installed build with ./rustatio-server --version. Set AUTH_TOKEN to protect the web UI and API. For VPN routing, use the Docker setup below.

Docker (Self-Hosted)

Run Rustatio on a server, NAS, or any Docker-enabled system and access the web UI from any device on your network.

The recommended setup routes all tracker requests through a VPN using gluetun. The VPN is optional, but running Rustatio without one is at your own risk.

Create a docker-compose.yml:

services:
  gluetun:
    image: qmcgaw/gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    environment:
      # Configure your VPN provider - see https://github.com/qdm12/gluetun-wiki
      - VPN_SERVICE_PROVIDER=protonvpn # or: mullvad, nordvpn, expressvpn, etc.
      - VPN_TYPE=wireguard # or: openvpn
      - VPN_PORT_FORWARDING=on # if you want to enable port forwarding
      # Provider-specific settings (example for ProtonVPN WireGuard)
      - WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
      - SERVER_COUNTRIES=${SERVER_COUNTRIES:-Switzerland}
      # Gluetun control server auth (v3.39.1+ defaults to private routes)
      # Generate a key with: docker run --rm qmcgaw/gluetun genkey
      - HTTP_CONTROL_SERVER_AUTH_DEFAULT_ROLE={"auth":"apikey","apikey":"${GLUETUN_API_KEY:-CHANGE_ME}"}
    ports:
      - "${WEBUI_PORT:-8080}:8080" # Rustatio Web UI
    restart: unless-stopped

  rustatio:
    image: ghcr.io/takitsu21/rustatio:latest
    container_name: rustatio
    environment:
      - PORT=8080
      - RUST_LOG=${RUST_LOG:-trace}
      - VPN_PORT_SYNC=${VPN_PORT_SYNC:-on} # follow gluetun's forwarded port
      - GLUETUN_CONTROL_SERVER_API_KEY=${GLUETUN_API_KEY:-CHANGE_ME}
      - PUID=${PUID:-1000}
      - PGID=${PGID:-1000}
      # Optional: set AUTH_TOKEN in .env to protect the web UI and API.
      # Required for MCP. Leave empty to disable authentication.
      - AUTH_TOKEN=${AUTH_TOKEN:-}
      # Optional: enable the MCP server for AI agents (requires AUTH_TOKEN)
      - MCP_ENABLED=${MCP_ENABLED:-false}
      - MCP_READ_ONLY=${MCP_READ_ONLY:-false}
    volumes:
      - rustatio_data:/data
      # Optional: mount a folder to auto-load torrents from
      # - ${TORRENTS_DIR:-/path/to/your/torrents}:/torrents
    restart: unless-stopped
    network_mode: service:gluetun
    depends_on:
      gluetun:
        condition: service_healthy

volumes:
  rustatio_data:

Set your VPN provider credentials, then start it and open the web UI:

docker compose up -d
# http://localhost:8080 (or your server's IP)

To enable authentication or the MCP server, create a .env file next to docker-compose.yml:

AUTH_TOKEN=<output of: openssl rand -hex 32>
MCP_ENABLED=true
# MCP_READ_ONLY=true

Compose reads .env automatically for these substitutions. Do not commit it.

Variable Description Default
PUID / PGID User and group ID used for file permissions on mounted volumes 1000
AUTH_TOKEN Secret token required to access the web UI and API (generate with openssl rand -hex 32) disabled
PORT Internal server port 8080
RUST_LOG Log level (error, warn, info, debug, trace) info (trace in the example above)
VPN_PORT_SYNC Follow Gluetun's forwarded port automatically (requires VPN_PORT_FORWARDING=on) on in the example above
MCP_ENABLED Enable the MCP server for AI agents (requires AUTH_TOKEN) false
MCP_READ_ONLY Disable mutating MCP tools false

Watch folder: create the host directory before starting the container (otherwise Docker creates it as root and the container can't read it), then uncomment the volume mount. New .torrent files are picked up automatically.

Changing ports: ports are published on the gluetun service. Change the host port there (for example "3000:8080"), and update the target port too if you change PORT.

No VPN? Remove the gluetun service and the network_mode line, then publish the port on rustatio directly. This is optional and done at your own risk.

AI Agents (MCP)

Rustatio can expose its instances to AI agents through a Model Context Protocol server. Enable it with MCP_ENABLED=true and an AUTH_TOKEN, then point Claude Code, Cursor, VS Code, Codex, OpenCode, or another MCP client at your public Rustatio URL plus /mcp (for example https://rustatio.example.com/mcp). Claude Desktop connects through the npx mcp-remote bridge described in docs/MCP.md.

Add AUTH_TOKEN and MCP_ENABLED=true to the .env file next to docker-compose.yml, then restart the container. In the desktop app, enable Settings → AI Agents instead; Rustatio shows ready-to-paste client configurations. In the Docker web UI, Settings → AI Agents shows the server endpoint, setup snippets, and active and known clients (active means a request within the last five minutes). See docs/MCP.md for client configuration, available tools, torrent upload options, and security notes.

Usage

  1. Select Torrent: choose your .torrent file
  2. Configure: pick the client to emulate, set upload/download rates, port, and other options
  3. Start: click Start to begin announcing
  4. Monitor: watch live statistics and performance charts
  5. Stop: click Stop when done

Supported Clients

Client Latest supported version
uTorrent 3.6.0
qBittorrent 5.3.0
Transmission 4.1.4
Deluge 2.2.0
BitTorrent 7.11.0
rTorrent 0.16.26

Each client is emulated with its proper peer ID format, User-Agent header, HTTP protocol version, and query parameter ordering; older versions remain selectable in the UI.

How It Works

  1. Torrent parsing: reads the .torrent file and extracts the info hash and tracker URL
  2. Client spoofing: generates authentic-looking peer IDs, keys, and headers for the selected client
  3. Stats simulation: announces to the tracker with fake upload/download stats and re-announces at the tracker's interval

Contributing

Contributions are welcome! See CONTRIBUTING.md for project setup and workflow.

License

MIT License - see LICENSE for details.

Credits

Jelajahi proyek terkait

Memuat…