Skip to content

Cairn 1.0.0

Choose a tag to compare

@Ratpido-dev Ratpido-dev released this 31 Aug 13:52
· 32 commits to main since this release

Cairn is a Hearthstone deck tracker that runs natively on Linux. No Electron, no Overwolf, no Wine on the tracker's side: it reads the logs the game writes on its own, in ~170 MB of private memory instead of the 1.5–4 GB an embedded
browser costs you on top of a game already running under Wine.

It never talks to the game. No injection, no process memory reading, no account, no telemetry.

The two Linux obstacles, solved

  • Hearthstone caps each log at 10 MB. Past that it writes Truncating log… and closes the file descriptor. On Windows it recreates the file and carries on; under Wine that step fails and tracking goes blind for the rest of the session.
    Cairn writes FileSizeLimit.Int=-1 into client.config for you (launcher button, or cairn-doctor --fix), merging non-destructively with Blizzard's existing keys.
  • Under Wayland a client cannot place its own windows. Cairn installs KWin rules in Remember mode, one per widget, plus a layer=overlay rule — the only layer that draws above an exclusive-fullscreen game. On other compositors, the
    windows carry stable titles and the app_id cairn.

Game tracking

  • Live deck: remaining, drawn, draw odds — and what enters the deck mid-game (bombs, plagues, Rafaam's gifts, Azalina's copies).
  • Top and bottom of deck deduced from card text, so there is no per-expansion list to maintain.
  • Contextual, symmetric counters: shown only when the card justifying them has been seen, or when the opposing class could play it.
  • Opponent's hand with arrival turn and origin, secret candidates for the played secret's class, real resurrection pools on hover, Godfrey's Atlas queue on both sides.
  • Game and turn timers, thinking time per player, potential damage on each side (summoning sickness included).
  • Spectator mode: spectated games are displayed but never recorded — they would otherwise corrupt your winrates.

Statistics

  • Local SQLite history, winrates per deck and per class, automatic deck import from Decks.log.
  • Winrate per opposing archetype. Pasted reference lists (deck codes) first, hard-coded signature cards as a fallback. 82% of archived games labelled, 0% false positives over 6,000 simulated draws. A generated card never proves an
    archetype; with no proof, the label stays "unknown".
  • Declared rank: Hearthstone writes it to no log (other trackers read it from game memory), so it is entered by hand in the launcher and attached to shared game metadata.

Privacy

No account, no telemetry, no server. The only network requests are the card database and artwork, from HearthstoneJSON.

Game sharing is off by default, asked once, reversible at any time — and pseudonymisation is unconditional: there is no setting that sends a raw log, because your opponent was never there to have a say. A collection point is provided
(Cloudflare Worker + R2) and its corpus is public to read. envoi.ENDPOINT_DEFAUT is empty in this release: nothing leaves until a collection point is deployed and configured.

Install

git clone https://github.com/Ratpido-dev/cairn.git
cd cairn
./install.sh # --desktop for a desktop icon

No sudo, no system package, everything under ~/.local. Python ≥ 3.10 and its venv module; PySide6 brings Qt along. Prefix detection covers Lutris, Steam/Proton, Heroic, Bottles and plain wine.

Then: cairn, cairn-doctor [--fix], cairn-cards --check. Interface is bilingual FR/EN.

Deliberately out of scope

No community meta data, no mulligan advice, no Battlegrounds, no collection management, no Arena. The angle is a lightweight Linux tracker that reads the logs — the rest can follow if that foundation holds.

Known limits

386 tests, CI on Python 3.10 and 3.13. That said, this is a first public release and I can only test on Arch/KDE Wayland with a Lutris prefix — reports from Proton, Heroic, Bottles, GNOME, Hyprland or Sway are the most useful thing
you can send.
tracker's side: it reads the logs the game writes on its own, in ~170 MB of private memory instead of the
1.5–4 GB an embedded browser costs you on top of a game already running under Wine.

It never talks to the game. No injection, no process memory reading, no account, no telemetry.

The two Linux obstacles, solved

  • Hearthstone caps each log at 10 MB. Past that it writes Truncating log… and closes the file descriptor.
    On Windows it recreates the file and carries on; under Wine that step fails and tracking goes blind for
    the rest of the session. Cairn writes FileSizeLimit.Int=-1 into client.config for you (launcher button,
    or cairn-doctor --fix), merging non-destructively with Blizzard's existing keys.
  • Under Wayland a client cannot place its own windows. Cairn installs KWin rules in Remember mode, one per
    widget, plus a layer=overlay rule — the only layer that draws above an exclusive-fullscreen game. On
    other compositors, the windows carry stable titles and the app_id cairn.

Game tracking

  • Live deck: remaining, drawn, draw odds — and what enters the deck mid-game (bombs, plagues, Rafaam's
    gifts, Azalina's copies).
  • Top and bottom of deck deduced from card text, so there is no per-expansion list to maintain.
  • Contextual, symmetric counters: shown only when the card justifying them has been seen, or when the
    opposing class could play it.
  • Opponent's hand with arrival turn and origin, secret candidates for the played secret's class, real
    resurrection pools on hover, Godfrey's Atlas queue on both sides.
  • Game and turn timers, thinking time per player, potential damage on each side (summoning sickness
    included).
  • Spectator mode: spectated games are displayed but never recorded — they would otherwise corrupt your
    winrates.

Statistics

  • Local SQLite history, winrates per deck and per class, automatic deck import from Decks.log.
  • Winrate per opposing archetype. Pasted reference lists (deck codes) first, hard-coded signature cards as
    a fallback. 82% of archived games labelled, 0% false positives over 6,000 simulated draws. A generated
    card never proves an archetype; with no proof, the label stays "unknown".
  • Declared rank: Hearthstone writes it to no log (other trackers read it from game memory), so it is
    entered by hand in the launcher and attached to shared game metadata.

Privacy

No account, no telemetry, no server. The only network requests are the card database and artwork, from
HearthstoneJSON.

Game sharing is off by default, asked once, reversible at any time — and pseudonymisation is unconditional:
there is no setting that sends a raw log, because your opponent was never there to have a say. A
collection point is provided (Cloudflare Worker + R2) and its corpus is public to read.
envoi.ENDPOINT_DEFAUT is empty in this release: nothing leaves until a collection point is deployed and
configured.

Install

git clone https://github.com/Ratpido-dev/cairn.git
cd cairn
./install.sh # --desktop for a desktop icon

No sudo, no system package, everything under ~/.local. Python ≥ 3.10 and its venv module; PySide6 brings Qt
along. Prefix detection covers Lutris, Steam/Proton, Heroic, Bottles and plain wine.

Then: cairn, cairn-doctor [--fix], cairn-cards --check. Interface is bilingual FR/EN.

Deliberately out of scope

No community meta data, no mulligan advice, no Battlegrounds, no collection management, no Arena. The angle
is a lightweight Linux tracker that reads the logs — the rest can follow if that foundation holds.

Known limits

386 tests, CI on Python 3.10 and 3.13. That said, this is a first public release and I can only test on
Arch/KDE Wayland with a Lutris prefix — reports from Proton, Heroic, Bottles, GNOME, Hyprland or Sway are
the most useful thing you can send.

Full changelog (in French): CHANGELOG.md (https://github.com/Ratpido-dev/cairn/blob/main/CHANGELOG.md) ·
French README: README.fr.md (https://github.com/Ratpido-dev/cairn/blob/main/README.fr.md)
windows carry stable titles and the app_id cairn.

Game tracking

  • Live deck: remaining, drawn, draw odds — and what enters the deck mid-game (bombs, plagues, Rafaam's gifts, Azalina's copies).
  • Top and bottom of deck deduced from card text, so there is no per-expansion list to maintain.
  • Contextual, symmetric counters: shown only when the card justifying them has been seen, or when the opposing class could play it.
  • Opponent's hand with arrival turn and origin, secret candidates for the played secret's class, real resurrection pools on hover, Godfrey's Atlas queue on both sides.
  • Game and turn timers, thinking time per player, potential damage on each side (summoning sickness included).
  • Spectator mode: spectated games are displayed but never recorded — they would otherwise corrupt your winrates.

Statistics

  • Local SQLite history, winrates per deck and per class, automatic deck import from Decks.log.
  • Winrate per opposing archetype. Pasted reference lists (deck codes) first, hard-coded signature cards as a fallback. 82% of archived games labelled, 0% false positives over 6,000 simulated draws. A generated card never proves an
    archetype; with no proof, the label stays "unknown".
  • Declared rank: Hearthstone writes it to no log (other trackers read it from game memory), so it is entered by hand in the launcher and attached to shared game metadata.

Privacy

No account, no telemetry, no server. The only network requests are the card database and artwork, from HearthstoneJSON.

Game sharing is off by default, asked once, reversible at any time — and pseudonymisation is unconditional: there is no setting that sends a raw log, because your opponent was never there to have a say. A collection point is provided
(Cloudflare Worker + R2) and its corpus is public to read. envoi.ENDPOINT_DEFAUT is empty in this release: nothing leaves until a collection point is deployed and configured.

Install

git clone https://github.com/Ratpido-dev/cairn.git
cd cairn
./install.sh # --desktop for a desktop icon

No sudo, no system package, everything under ~/.local. Python ≥ 3.10 and its venv module; PySide6 brings Qt along. Prefix detection covers Lutris, Steam/Proton, Heroic, Bottles and plain wine.

Then: cairn, cairn-doctor [--fix], cairn-cards --check. Interface is bilingual FR/EN.

Deliberately out of scope

No community meta data, no mulligan advice, no Battlegrounds, no collection management, no Arena. The angle is a lightweight Linux tracker that reads the logs — the rest can follow if that foundation holds.

Known limits

386 tests, CI on Python 3.10 and 3.13. That said, this is a first public release and I can only test on Arch/KDE Wayland with a Lutris prefix — reports from Proton, Heroic, Bottles, GNOME, Hyprland or Sway are the most useful thing
you can send.

Full changelog (in French): CHANGELOG.md (https://github.com/Ratpido-dev/cairn/blob/main/CHANGELOG.md) · French README: README.fr.md (https://github.com/Ratpido-dev/cairn/blob/main/README.fr.md)

MIT. Independent project, not affiliated with Blizzard Entertainment.