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
.torrentmetadata and runs independent tracker sessions with explicit counters, speeds, and client profiles.
Download the latest Windows build · Lire la documentation en français
Windows-first · Avalonia · .NET 10 · GPL-3.0
Product surface
| View | What it is for |
|---|---|
| Overview | Confirm proxy health, tracked torrents, simulations, and reported upload at a glance. |
| Interception | Inspect real and rewritten announce counters, peers, status, and last announce per info-hash. |
| Simulation | Load a .torrent, choose a tracker and client profile, configure speeds, then control a session explicitly. |
| Activity | Follow proxy and simulation events without digging through raw logs. |
| Settings | Configure language, themes, accents, ratio rules, logging, autostart, and check the installed version against the official GitHub release. |
| Platform | Opt 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:
| 1 | dotnet 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.
| 1 | dotnet restore .\XRatio.slnx |
| 2 | dotnet build .\XRatio.slnx -c Release --disable-build-servers -m:1 |
| 3 | dotnet test .\XRatio.slnx -c Release --disable-build-servers -m:1 |
Create and smoke-test the self-contained Windows package:
| 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:
| 1 | $env:XRATIO_RUN_QBITTORRENT_SMOKE='1' |
| 2 | dotnet test .\tests-dotnet\XRatio.Desktop.Tests\XRatio.Desktop.Tests.csproj -c Release |
Repository layout
| 1 | src/XRatio.Core shared announce, torrent, simulation, and settings logic |
| 2 | src/XRatio.Proxy local HTTP/HTTPS proxy and redacted activity logging |
| 3 | src/XRatio.Desktop Avalonia desktop shell, tray, themes, localization, and platform trust |
| 4 | tests-dotnet Core, Proxy, and Desktop test suites |
| 5 | scripts 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.