README.md

XRatio

A native control plane for tracker announce interception and controlled torrent simulation.

XRatio is a Windows-first .NET 10 / Avalonia desktop application for people who need a clear, local view of tracker announces. It brings two deliberately separate workflows into one compact tool:

  • Interception — a RatioGhost-derived local HTTP/HTTPS proxy rewrites tracker announces from a real torrent client while leaving payload and peer traffic alone.
  • Simulation — a RatioMaster-derived engine reads .torrent metadata and runs independent tracker sessions with explicit counters, speeds, and client profiles.

XRatio overview in the dim theme

Download the latest Windows build · Lire la documentation en français

Windows-first · Avalonia · .NET 10 · GPL-3.0

Product surface

ViewWhat it is for
OverviewConfirm proxy health, tracked torrents, simulations, and reported upload at a glance.
InterceptionInspect real and rewritten announce counters, peers, status, and last announce per info-hash.
SimulationLoad a .torrent, choose a tracker and client profile, configure speeds, then control a session explicitly.
ActivityFollow proxy and simulation events without digging through raw logs.
SettingsConfigure language, themes, accents, ratio rules, logging, autostart, and check the installed version against the official GitHub release.
PlatformOpt in to HTTPS interception and manage the local CA trust for the current Windows user.

Design principles

  • One control plane, two paths. Interception and simulation remain visibly separate so a real client session is never confused with an independent simulation.
  • Local and explicit. The proxy is bound locally by default (127.0.0.1:3773), and HTTPS trust requires a deliberate confirmation.
  • Fail closed. Direct tracker simulation keeps the operating system's TLS validation; XRatio does not copy the legacy accept-all certificate behavior.
  • Observable by default. Counters, statuses, activity, and validation messages stay close to the action that produced them.

Download and run

End users should use the packaged Windows build from Releases. The self-contained package does not require a separate .NET installation.

When running from source, the desktop app starts with:

powershell
1dotnet run --project .\src\XRatio.Desktop\XRatio.Desktop.csproj

The first launch keeps simulations stopped. Configured sessions are stored in %APPDATA%\XRatio\simulations.json; the proxy password is never persisted.

Build, test, and package

Prerequisite: .NET SDK 10.0.302.

powershell
1dotnet restore .\XRatio.slnx
2dotnet build .\XRatio.slnx -c Release --disable-build-servers -m:1
3dotnet test .\XRatio.slnx -c Release --disable-build-servers -m:1

Create and smoke-test the self-contained Windows package:

powershell
1.\scripts\package-win-x64.ps1
2.\scripts\smoke-win-x64.ps1

Installed-qBittorrent smoke tests are opt-in. Enable them only when an isolated qBittorrent launch is acceptable:

powershell
1$env:XRATIO_RUN_QBITTORRENT_SMOKE='1'
2dotnet test .\tests-dotnet\XRatio.Desktop.Tests\XRatio.Desktop.Tests.csproj -c Release

Repository layout

text
1src/XRatio.Core shared announce, torrent, simulation, and settings logic
2src/XRatio.Proxy local HTTP/HTTPS proxy and redacted activity logging
3src/XRatio.Desktop Avalonia desktop shell, tray, themes, localization, and platform trust
4tests-dotnet Core, Proxy, and Desktop test suites
5scripts Windows packaging and smoke-test entry points

Responsible use

Trackers can prohibit modified or simulated statistics. Use XRatio only with services and torrents for which you are authorized, and follow the tracker rules and applicable law. XRatio handles tracker announces only; it is not a peer-to-peer client and does not process payload traffic.

License

XRatio is distributed under the GNU GPL v3. Third-party attributions are listed in THIRD_PARTY_NOTICES.md.