Repository navigation
Releases
Cairn 1.1.0 - Chinese UI, multi-desktop fixes
What's new
- Chinese interface (中文): third language, selectable in the launcher (
FR | EN | 中). Card names and texts follow. Thanks @Sabiary (#7)! - Bottom of the deck (#5): Sir Finley, Sea Guide and Sphere of Sapience now show the cards they send to the bottom. New counter for The Ceaseless Expanse (both sides).
- "Game folder" field in the launcher (#10): paste your Wine/Proton prefix or the game's
Logsfolder, Cairn figures out which one it is.
Fixes
- Widget positions are remembered (#9): they used to be saved before the move. The deck and opponent panels now remember theirs too.
- GNOME (#11): Cairn runs through XWayland so the overlays stay above the game (switch in the launcher).
- Card preview on Sway / Niri / Hyprland (#5, #8): the preview is drawn inside the panel, no more focus loop, and hovering works again.
- Secrets popup (#6): at most ten rows, the rest scrolls.
- "Conceded" in the history follows the interface language.
Update
git pull && ./install.sh
v1.0.4 - Native ports, Wild secrets fix, hide drawn cards
Native Hearthstone ports (#2)
- New
CAIRN_HS_LOGSenvironment variable (andhs_logsconfig key): point Cairn straight at the game's
Logs/folder, no Wine prefix needed. Works for native ports like hearthstone-linux-gui, Bottles, and
unusual setups. - New launcher setting, "Check that Hearthstone is running": turn it off for native ports. They have no
Hearthstone.exe, so the game was never detected and the overlays stayed hidden. cairn-doctornow runs without a Wine prefix instead of exiting with an error.
Game tracking
- Duplicate secrets in Wild (#3): each secret showed up once per reprint (Ice Barrier three times). It
now appears once, Classic-format cards are excluded from Wild, and copies already played are counted across
reprints. Paladin and Rogue secrets were also duplicated in Standard. - Drawn cards (#4): new launcher setting, "Hide drawn cards", removes a card from the tracker once
its last copy leaves the deck, instead of dimming it. Off by default.
Install
- KDE outside Arch (Fedora…):
install.shfailed to reload thecairn-followKWin script because it only
looked forqdbus6. It now tries every D-Bus client, and asks you to log out and back in if none works
instead of reporting success.
Full changelog (French): CHANGELOG.md
Cairn 1.0.3
Dual-screen support (#1)
- Panels and widgets now open on Hearthstone's screen, at the same relative place, and follow it if it
moves. Under Wayland an app can't pick its screen, so thecairn-followKWin script does it. - Card previews stick to their actual panel instead of a fixed position — also useful on a single screen
when you move a panel. - Want the tracker on your other screen?
kwriteconfig6 --file kwinrc --group Script-cairn-follow --key suivreEcranDeHearthstone false, then re-run./install.sh.
Game tracking
- Reconnection: Cairn recognizes a game Hearthstone rewrites after a disconnect and keeps tracking it,
instead of restarting from a full deck. - Manual deck selection (click the panel title), "cards I played" section, win/loss shape per deck in
stats.
Misc
- Sharing no longer freezes the UI (1150 ms → 21 ms);
install.shreloads the KWin script so updates apply
without logging out.
v1.0.2 — Ready for distro packaging
Housekeeping release: no change to how Cairn behaves in game.
Packaging
- Cairn now looks for its KWin rules script in the system locations
($prefix/share/cairn,/usr/share/cairn) on top of the source tree and the
user data directory. Installed from a distribution package, it can now install
and reset its own window rules — previously it silently couldn't. - Ships a PKGBUILD in
packaging/aur/, so the Arch package can be rebuilt from
the repository at every release. - Fixed the version in
pyproject.toml, which still said 1.0.0.
An AUR package (cairn-tracker) is on the way.
v1.0.1 — Battlegrounds, and a much faster start
Fixed
- Battlegrounds and Mercenaries are now ignored. Cairn kept showing the
constructed deck from your previous game on top of a Battlegrounds match, and
then recorded that match into your win rates. These modes have no deck, so they
are now excluded from both the overlay and the history.
Performance
A single Battlegrounds game writes ~86 MB of log, against ~5 MB for a constructed
one. Starting Cairn on such a session froze the interface.
- The log is now read in 8 MB slices instead of one large block.
- Deckless games are skipped without being parsed.
Measured on a 104.7 MB log: freeze 1,520 ms → 145 ms, peak memory
534 MB → 144 MB, full catch-up 1.52 s → 1.13 s.
393 tests.
Cairn 1.0.0
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) ...