pattont/MTGA-Tapps 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU Affero General Public License v3.0 许可证,目前获得 19 个 Star、2 次 Fork。
仓库全名
pattont/MTGA-Tapps
README 摘要
tappstracker.com Downloads for macOS and Windows, the full feature tour, and the changelog — free, open source, no account, no cloud. Tapps Tracker A real-time tracker that tails Arena's Player.log, a SQLite analytics store, a full React dashboard, and an in-game overlay. No account, no cloud, no automatic game-history uploads: your games, your data, your disk. 💬 Join the community on Discord — for discussion, bug…
Magic: The Gathering Arena local-only tracker for Windows & MacOS with live game events and a local analytics dashboard for matches, decks, cards, draws, rank, and turn timing. Includes a bundled deck finder & downloader for discovering and importing Arena decks.
Downloads for macOS and Windows, the full feature tour, and the changelog —
free, open source, no account, no cloud.
Tapps Tracker
A real-time tracker that tails Arena’s Player.log, a SQLite analytics store,
a full React dashboard, and an in-game overlay. No account, no cloud, no
automatic game-history uploads: your games, your data, your disk.
💬 Join the community on Discord — for
discussion, bug reports, and feature requests.
What it does
Live tracking. One lightweight app — menu bar on macOS, system tray on
Windows — runs everything: it follows your game in real time (casts, draws,
lands, combat, life totals, stack resolution), writes tracked games to the local
analytics database, and serves the dashboard. The Live Scoreboard page
sits right in the dashboard: both players’ life, colors, and deck, your record
with this deck and against this opponent (and, in Brawl, against their
commander), the turn clock, today’s record and games, and a play-by-play
feed that reads exactly like the per-game timeline — no separate window to
manage. Between games the previous game’s final scoreboard stays up until the
next match starts.
In-game overlay. A slim rail docked beside Arena with the turn, the odds
your next draw is a land, and cards left in your library — opening into a
panel with your whole decklist and the chance of drawing each card next. On
from the first launch, in every game mode, and it reads only the tracker.
Stream Kit. Twelve transparent OBS and Streamlabs widgets for streamers: the
whole in-game overlay, a TV-style scorebug, your deck’s odds and record, what the
opponent is on, a flood/screw meter, a Victory/Defeat card after each game, an
intermission card and more. See Stream Kit.
Deck analytics. Every deck gets a drill-down page tinted with its signature
card’s art: per-game combat and resource averages for both players, turn-pace
and draw-quality summaries, card performance, mulligan results, decklist
version history with diffs, land statistics with flood/screw classification,
win & loss streaks, per-queue records (BO1/BO3, ranked/unranked, competitive
Brawl), Bo3 sideboarding records, and Best Against / Worst Against opponent
color highlights.
Game forensics. Each game page reconstructs the match: opening hand and
every mulligan (including the card you bottomed) for you — and how many times
your opponent mulliganed, which Arena reports for both seats — drawn cards
with the turn they arrived, draw-quality analysis with statistically-grounded
flood/screw detection (expected lands come from your actual decklist, not a
generic ratio; a run of lands is only flagged when it was unlikely for the game’s
length, and is not flood unless the land count was high too), a life-total chart, per-seat combat summaries, and the
complete event timeline. Scry totals for both seats show how many cards were
kept on top or bottomed, with the choices recorded in the timeline.
Share a game. Turn any game into a post for X, a YouTube upload or a PDF
report from the Share button on its page, with the opponent’s name hidden
unless you choose otherwise. See Share a game.
Replay (beta). Watch a completed game on a 3D table with card art, both
players’ zones, the stack, life totals, an action log and turn controls.
New games tracked with replay capture show Recorded detail; older saved
games can play as Reconstructed replays with approximate board details.
Export a video locally from the browser. Replay links appear beside games in
the Live Scoreboard, Recent Games, All Games, deck and opponent histories,
and Game Detail; its sidebar page lists recent replays. See Replay
below.
Interaction analytics. Every game records what both players did with their
interaction: removal and board wipes played (and how many you drew), creatures
lost to removal, counter magic — including how many counters actually landed
versus fizzled — bounce, land destruction with replacement rates, token
lifecycles, and poison. Cards are classified from their Arena rules text, and
a one-time backfill computes these stats for the games you tracked before the
feature existed.
Opponent intelligence. Revealed cards identify the opponent’s colors, named
with community archetype names (Dimir, Jeskai, Mono-Red…), tracked across your
history so you can see which matchups actually beat you. With no key and no
account, the opponent’s deck gets a name from the current meta decks — “Mono-Green
Landfall” instead of “Mono-Green”. The Overview’s Matchups section, right
after Decks, shows your record against each opponent deck with each of your decks,
the same by opponent color combination, and your most-faced opponents; each
opponent deck has its own page with your record on the play and on the draw, the
cards it played against you and your latest games against it. Each deck page has a Matchups
list for that deck. A name the tracker got wrong can be changed for one match, or
renamed everywhere; see Opponent deck names.
The All Opponents page lists everyone you’ve ever been paired against (a Bo3
counts once) with a per-opponent page behind each name.
Optionally, bring your own AI key (OpenAI, Anthropic, Google, or xAI), or run a
model on your own computer with Ollama or LM Studio, and the tracker names the
opponent’s archetype — “Jeskai Control”, “Gruul Aggro” — after
each game.
Brawl, done properly. Commanders are tracked from the command zone of
every Brawl game — yours and your opponent’s. The Brawl section on the
Overview shows your overall and per-queue record (Brawl, Brawl (Ranked),
Standard Brawl), Best Commander and Toughest Opponent
Commander boxes with card art, and Your Commanders / Faced
Commanders win-rate tables, because Brawl players think in commanders, not
deck names. Game pages open with a commander-vs-commander strip; deck pages
use the commander as the deck’s signature art, keep it in the decklist and
Arena export, and list the opponent commanders you’ve faced with your record
against each. Recent Games rows expand to show the matchup with colors, and
the Live Scoreboard shows your lifetime record against the commander across
the table. Starting life and command-zone recasts are handled; Brawl is
recognized from Arena’s match format, never from deck size.
Deck Finder. Browse current decklists from seven sites and creators,
including keyless YouTube descriptions, in a site-colored dashboard view.
Inspect the full deck beside the results, open its source, copy Arena import
text, save it to a Deck Manager collection, or use Add to Arena where the
native deck integration is supported.
Deck Manager (beta). Keep decks beyond Arena’s active-deck limit in a
local library separate from your played-deck statistics. Organize them with
named collections, revisions, tags, notes, search and recoverable Trash. Save
from Deck Finder, import a decklist, or capture lists
available in Arena’s log. Copy a saved list into Arena on either platform.
The guarded native integration can also back up, move and restore decks
directly: tested on Apple Silicon Macs, newly enabled on 64-bit Windows. See Deck Manager
below.
Buy on Paper. From Deck Finder, Deck Manager or a deck page, see what a deck
costs in paper card by card, untick what you already own, and compare totals at
TCGplayer, Card Kingdom and Mana Pool from each store’s own prices. Then open the
rest in that store with one click. StarCityGames is coming
soon. See Buy on Paper below.
Backup & restore. Everything the tracker knows — games, settings, Deck
Finder creators, saved deck library, overlay preferences — in one .tappsbackup file, written
into any folder you choose. Point it at a folder your cloud client syncs and
your history follows you to another computer; Merge brings two
computers’ games together.
Startup and updates. Start with Windows or macOS, quietly in the tray or
menu bar, so tracking is ready before you queue. New versions of the installed
app download in the background, are checked against a signed manifest, and
install when you click Restart to update: never mid-game, and only after a
backup of your history. Both live in Settings.
The long game. Match-level records (a Bo3 counts once, like the ladder
does), win-rate trends, How Games End with per-reason percentages — concedes,
damage, decking, poison, timeouts — Constructed Ranked lifetime and per-season
stats beside the rank chart, win rates by weekday, time of day and games into
the day, every day you played with its record, format
breakdowns, and a database health audit that can repair its own
inconsistencies. Historical backfills recover stats where the recorded
events contain enough evidence; unavailable values remain blank.
Settings
Open Settings from the gear at the top right of the dashboard or from the
menu-bar / tray icon. A Tracker card at the top shows your game count,
version and file locations. Below it:
General: Startup (start with Windows or macOS, and whether to open the
dashboard) and Updates (automatic checks, downloads and installs, plus
Check now).
Running Tapps Tracker again while it’s already open does nothing, so you never
get two copies tracking at once.
In-game overlay
A small always-on-top window docked beside Arena, on from the first launch.
Turn it off (or back on) from Settings → In-game overlay or the
menu-bar icon.
The rail
What it shows at rest: the turn, the chance that your next draw is a land, and how much of your deck is left (the bar goes yellow once half the deck is gone, red under 15 cards).
The arrow opens the panel; the ⚙ opens the settings beside the rail.
The panel
Your full decklist with copies left and the chance of drawing each card
next, land-drop odds for the next one, two and three draws, and a Play/Draw
pill. Sort by odds, mana value or name. Hover a row and the card appears
beside the panel with its next-draw, within-2 and within-3 odds. Lands fold
into one row, the sideboard is a row, and in Brawl the cards already drawn
collapse into a Drawn group. When the game ends the final library stays
up, marked FINAL, until you leave the results screen.
Between the games of a Best-of-3, the panel shows your
sideboard plan for this deck against the opponent’s deck in place of
the library: cards in and out, your note, the games so far and who chooses play. With
no plan saved it shows what you boarded in your last match against that deck, and with
neither it stays as it is. The library comes back when the next game starts.
The foot of the panel shows today’s record (every game since midnight):
wins–losses, win rate, and your win rate on the play and on the draw. It stays
up between games. Pick One line (the default), Full (the Stream Kit
Record widget: your rank in ranked games, your record with this deck today, and
Play and Draw columns) or Off under Today’s record in the ⚙ menu.
The opponent panel
A second panel sits on the other edge of the screen, up only during games.
Settings → In-game overlay → Panels picks what the overlay shows: Both
panels (the default), My deck alone, or Opponent alone, for players who
find their own deck list too busy. Open, it shows the opponent’s deck (their
commander in Brawl, a guess from your own past games when Deck AI has named
decks with the same cards, otherwise their colours), your record against that
deck, how many cards and lands they have played, and every card they have
played, grouped by type with mana costs, laid out like the deck panel (lands
fold into one row that opens). A new play lights up for a moment, and hovering
a card shows it. Folded, its rail shows their colours, how many different
cards they have played (it pulses when a new one shows), and your record
against them (your win rate once the record is too long to fit). It has its own pin and its own hotkey (Alt+Shift+O / ⌥⇧O).
It shows only cards the opponent has played in front of you; the deck name is
a guess and says so.
Pin the panel to keep it out, or leave it unpinned and the rail unfolds it on
hover and folds it back a few seconds after the cursor leaves. Scale,
opacity, dock side, max height, hotkeys (Alt+Shift+T / ⌥⇧T toggles,
Alt+Shift+H / ⌥⇧H hides) and a Restore defaults button live in its ⚙
menu. It appears only while Arena is running, on Arena’s screen, and works
in every game — including the practice and event modes the tracker doesn’t
save.
It reads only this tracker’s local GET /api/overlay (card images come from
Scryfall), never Arena’s memory or screen. The macOS shell supports Arena’s
fullscreen Space. On Windows, use windowed or borderless mode if exclusive
fullscreen covers the overlay. It is a separate ~5 MB
native app (Tauri) shipped inside the tracker.
Stream Kit (OBS widgets)
Twelve transparent widgets for OBS and Streamlabs:
Full overlay: the in-game overlay as one source, with its sideboard beside or
below it and a background slider.
Deck tracker: copies left and next-draw odds for each card.
Scorebug: a TV-style bar with both players, life totals that flash when they
change, the turn and whose it is, and the match score in Bo3.
Record: today’s wins, losses and win rate, on the play and on the draw, rank,
and your record with this deck today.
Recent games: today’s games under today’s record (the last 1 to 25).
Deck stats: the current deck’s win rate and record, with ranked and casual,
play and draw, and recent form, each optional.
Matchup: opponent, colors, likely deck, head-to-head, play or draw, Bo3 game.
What they’re on: the opponent’s likely deck and every card they’ve played
this game, grouped by type.
Flood / screw meter: lands seen against what the deck should give you, with
Game Detail’s verdict and the chance the next draw is a land.
Game result: a Victory or Defeat card for a few seconds after each game.
Card spotlight: a large image of each card as it’s cast.
Intermission: your own title over today’s record and results, the deck and
the rank climb since midnight, for a “be right back” scene.
A card list too long for its source (a 100-card Brawl deck) scrolls itself slowly.
On the Stream Kit page (the broadcast icon at the top right, next to Settings),
pick the options, copy a widget’s link and paste it
into a Browser source at the size shown; Preview shows it with sample data.
Each widget has a Show list, so with several on screen you can turn off a
number another one already shows.
Widgets appear only when there’s something to show, and nothing runs until one is
open. They work on the computer that runs the tracker (not yet from a second
streaming PC). Thanks to MrNaosu for the idea.
Screenshots
Live Scoreboard — while you play: both life totals with color pips and
deck, your records with this deck and against this opponent, the turn and
game clock, today’s record and finished games, and a
play-by-play feed identical to the per-game timeline:
Recent Games — outcomes, deck and opponent colors (including the colorless
diamond), formats, Brawl commander matchups, draw status, and game pace at a
glance, with two-tier format pills (Standard, Historic, Limited, Brawl… and a
fly-out of queues) to narrow the table:
Constructed Ranked — lifetime and per-season match records around the ladder
chart, with a season selector to replay any climb:
Your decks — every deck with its signature card, an Aggro/Midrange/Control
profile judged from damage pace, win-rate bars, and per-game combat telemetry,
searchable and sortable. Recorded deck history has no deck-count limit, including
decks later removed from Arena; the table shows ten rows per page. Decks and
All Games offer numbered pages, first/last controls and a Go to page field.
Days (every day you played, with its record) offers the same controls with 15 rows
per page and no cap:
Deck drill-down — combat profile, streaks, decklist performance, land statistics:
Game forensics — turn timing, draw quality, combat & resources, life chart, full timeline:
All Opponents — everyone you’ve been paired against, searchable, each
name opening a page with your full history against them:
Challenges — your Direct Challenge games against friends: your record
against each one, bragging rights (favorite victim, nemesis, best and worst
deck, fastest win, longest game), how each deck has done and every game, with
replays (sample friends):
Replay (beta)
Replay is built into the game pages, so you do not have to hunt for a recording.
Open Replay in the sidebar to browse recent games, use Watch replay on
the Live Scoreboard after a match, or use the play icon in Today’s Games,
Recent Games, All Games, and deck or opponent histories. Game Detail has a
Watch replay button and links in its event timeline that jump to that
moment in the replay.
Scrub by turn, step through actions, inspect cards on the table, and choose
table and sleeve colors in Replay Options. Recorded games use structured
events captured during play; older Reconstructed games use the saved
timeline and may have approximate board details. Replay runs in a desktop
browser; some games without enough saved events have no replay.
Export video renders an MP4 locally in the browser. Choose the range,
speed, pacing, size and quality, and include the action log beside the table
if you want it. The game is not uploaded.
Card artwork loads from Scryfall when needed, and video export depends on the
desktop browser’s graphics and encoder support.
Share a game
Every game page has a Share button beside Watch replay. It opens
Share this game with three tabs:
X: up to three suggested posts written from the game (your note first), an
editable box with X’s character count, the @tappstracker line and
#MTGArena as switches, Copy text and Open X. It shows how long the
game’s video runs at 1×, 2× and 4× against X’s 2:20 limit and suggests a
speed that fits; paste a YouTube link to add a Full game: line.
YouTube: a title and a description, each with Copy, and Open
YouTube for the upload page.
PDF: a light or dark report of the game, downloaded as a file: the
result and both decks, the opening hand, life by turn, the game’s numbers and
your notes, then every turn.
Hide opponent’s name is on each time the dialog opens and keeps their name
out of the post, the YouTube text, the PDF and the video: out of your note
(“my opponent”) and out of their deck’s name too. Your own Arena name is never
added to anything; it is taken out of your note and left in your own deck’s
name, which is yours. Export video opens the game’s replay with the video
export ready at the suggested speed, its own Hide opponent’s name box
ticked to match, so the video says “Opponent” wherever their name would show.
The video and the report are saved under the same name, after both decks and
the date. When a game’s event log and its turn count disagree, nothing shared
names a turn, and the report says where its turn table stops (or leaves out a
table that belongs to another game). Nothing is posted for you: X and YouTube
open in a new tab with the text ready, and you finish there. A link that ends
in ?share=1 (#/game/<id>?share=1) opens a game page with the dialog showing.
Deck Finder
The Deck Finder lives right inside the dashboard — open it from the
“Deck Finder” button at the bottom of the sidebar or the menu bar entry. Pick
a site (AetherHub, magic.gg, Moxfield,
MTGO, TCGplayer, untapped.gg, or youtube.com) and a format or creator, and it lists matching decks in a
table tuned to each site — win rates and matches for untapped.gg archetypes,
event placings for tournament sites, and so on. Open any deck to see its list,
then Export to Arena copies it in Arena’s import format (or Source
opens the original page). The selected deck appears beside the results with
its main deck and any sideboard, commander or companion section; hover a card
to see its image. The
Deck Manager actions below its title can save it to a named collection or
add it directly to Arena on a supported client when Arena is ready on Decks.
“Surprise Me” pulls a random importable deck. Your
own featured creators for AetherHub, Moxfield, TCGplayer, and YouTube are managed on the
Settings page (or in deckfinder_config.json at the top level of the
project folder). Everything it needs installs with the tracker; no separate
setup.
YouTube’s Creators picker starts with Hello Good Game and Sloth.
It reads decklists from the latest 15 video descriptions without an API key,
cleans title emojis and set/platform suffixes, and adds (HGG) or (Sloth)
to the imported deck name. Add another channel URL or @handle in Settings,
one creator per line.
Deck Manager (beta)
Deck Manager is a local library independent of Arena’s active roster and the
dashboard’s played-deck statistics. Keep decks even after removing them from
Arena, with no library deck-count limit. Open it from the sidebar to organize
decks in collections, search by name or tag, browse revisions, add notes, and
recover decks from Trash. Add a list yourself, save one from Deck Finder, or
capture lists available in Arena’s log. The
library works while Arena is closed and is included in tracker backups.
Open a saved deck to inspect its list and revisions. Copy deck list works
with Arena’s normal Import button on macOS and Windows; a full native backup
can also be downloaded for later restoration.
Select two decks and click Compare to see what sets similar lists apart:
how much of the main deck they share, the cards only one of them has (with
extra copies counted), and the cards in both.
On Apple Silicon Macs and 64-bit Windows, explicit Deck Manager jobs can read
Arena’s current roster, back up selected or all decks, move a deck into the
local collection or to Trash, restore an exact copy, and add an importable list.
Saved decks are marked Exact copy (read from Arena; it goes back exactly, with
card styles and deck art) or Deck list (just the cards, added as a new deck).
Click an Arena deck to see its cards as Arena last reported them, with when
Arena says it was last modified and played (both tabs can sort by these; the
Arena tab starts newest edit first, with your Arena favorites in their own section,
and a star on each Arena deck adds or removes it from Arena’s favorites). The
dashboard shows transfer progress and asks for confirmation before removing
a deck from Arena; interrupted transfers have a reconciliation step. This
direct Arena integration is beta: it is tested on Apple Silicon Macs and
64-bit Windows, and other Arena client builds are refused until they are
checked.
The local library and Copy deck list remain available without direct Arena
access. Native jobs require a supported client on the Decks screen outside a
match.
Buy on Paper
Want an Arena deck on the table? The green Buy on Paper button prices it in
paper and sends the list to a store. It sits next to the Arena export on three
screens:
Deck Finder — in the selected deck’s title row.
Deck Manager — in a saved deck’s header.
Deck page — at the top, beside Copy Arena Deck, using the newest list you
played (a Brawl commander included).
The dialog lists every card with its price, per copy and per line. Untick the
cards you already own and the total updates as you go. The Store list on
the left shows what your selection costs at each store, marks the cheapest
complete one Lowest, and switches stores with a click:
Store
Prices
Card Kingdom
Card Kingdom’s own price list
Mana Pool
Mana Pool’s own price list
StarCityGames
Coming soon
TCGplayer
TCGplayer market prices via Scryfall (the default)
Each store only shows its own prices. A card a store doesn’t list shows a dash
and stays out of its total, so a cheaper-looking partial total never wins.
Arena-only cards (Alchemy) are labeled and left out; rebalanced A- cards are
priced as their paper originals.
Options narrow what you buy:
Board checkboxes — Main Deck and Sideboard (plus Commander, Companion or
Maybeboard when the deck has them) on one line. A deck without a sideboard
shows Sideboard greyed out.
Include set codes — asks the store for the printings priced here, where
the store supports it; otherwise the store picks the printing.
Skip basic lands — leaves out Plains, Island, Swamp, Mountain, Forest and
Wastes.
The Buy @ button (for example Buy @ Mana Pool) opens that store’s cart
or deck import in a new tab with your list filled in; you review and check out
there. The tracker never records what you own or buy.
Store links carry Tapps Tracker’s affiliate codes: buying through any of the
listed stores earns Tapps Tracker a small commission at no cost to you, which
helps support its ongoing development. The dialog says so under the store list.
Card Kingdom’s and Mana Pool’s price lists are downloaded in the background the
first time you open the dialog, at most once a day (50–70 MB each, about 16 MB
kept on disk). Settings → Buy on Paper turns the feature off: it hides the
button everywhere, stops downloads and deletes the saved price lists. The
Buy on Paper guide covers the price sources and store
links in detail.
Export your collection
Arena’s log does not provide the full collection, so the Settings page can
read it straight out of the running game’s memory and export it as .json, .csv,
.txt, or an Archidekt-format .csv — ready to import into
Moxfield, Archidekt, and
similar sites. The scan finds your collection by the cards the tracker has seen
you play, so it unlocks after your first recorded game. Open Arena’s Decks tab
once so the collection is loaded, pick a format, and the file downloads when the scan finishes (a copy also lands in
the tracker’s data folder). On macOS an administrator prompt appears, since
reading another app’s memory needs elevated access; the game itself is never
modified. The memory scan and export files stay local; Archidekt printing-ID
lookups use the Scryfall requests described below.
The Archidekt export adds a Scryfall ID column, which removes all
ambiguity about exactly which printing you own (Moxfield reads this format
too). IDs are resolved through Scryfall’s batch API the first time — a few
seconds for a full collection — then cached locally, so later exports are
instant and offline; rows for cards too new to resolve still import by name
and set.
The memory-extraction technique is adapted from
NthPhantom10’s
MTGA-collection-exporter
— full credit to them for working out how to find the collection in Arena’s
process memory.
Backup & restore
Everything the tracker knows in one file: a snapshot of the game database,
settings.json, your Deck Finder creators and the overlay’s preferences,
zipped into a .tappsbackup (about 15 MB for a thousand games). The card is
on the dashboard’s Settings page.
Pick a backup folder — the card offers the Google Drive, iCloud Drive,
Dropbox and OneDrive folders it finds on the machine, and nothing is created
on disk until your first backup lands there — then Back up now. Choose a
folder your sync client mirrors and the file turns up on your other computer
by itself; nothing in the tracker talks to a cloud service, so a USB stick or
an email works just as well.
Backup Files lists what is in the folder with four actions on each:
Action
What it does
Open location
Shows the file in Finder or Explorer.
Restore
Makes this computer match the backup. It tells you first what would change — adds 7 games this computer does not have, or would drop 12 games recorded here, which needs REPLACE typed — pauses the tracker, saves a copy of the current state (Undo puts it back), and brings an older snapshot up to this build’s schema on the way in. Your dashboard port, window size and backup folder stay this computer’s own.
Merge
Adds the backup’s games to the ones already here and removes nothing — for history recorded on two computers. Back up once more afterwards and one file holds everything.
×
Deletes that backup file (never the database), after a confirmation naming it.
Travelling: back up at home into the synced folder, restore on the laptop,
play the week, back up there, then Merge (or restore) at home — see
QUICKSTART.md for the five-line version. The
backup carries your Deck AI key unless you untick Include API keys.
Opponent deck names and Matchups
The tracker names the opponent’s deck from the cards they showed: “Mono-Green
Landfall” where it used to say “Mono-Green”. It compares their cards with the
current meta decks of each Arena constructed format and, failing that, with
archetype rules and the deck’s colors and card types (“Azorius Control”). Under
three cards that aren’t lands, the deck keeps its color name. The name shows on
Game Detail (with where it came from), the Live Scoreboard, the overlay’s
opponent panel, the Stream Kit opponent widget and replays. In Brawl the commander stays the name, with the deck type beside it.
Every name is colors plus a type: “Mono-Red Aggro”, “Azorius Flash”, “Orzhov
Lifegain”. A Bo3 match gets one name, games recorded before this feature are named in the
background, and a name, once given, is never swapped for a vaguer one.
The Overview’s Matchups section, right after Decks, starts with three tiles:
the opponent deck you face most, your best matchup and your toughest (those two
need 8 decided games). Below them, pick one of three views; the section remembers
your choice:
Decks: a row for each opponent deck, with its colors, where its name came
from (Meta list, Archetype, Deck type or Deck AI) and a bar for how often you
face it. The columns are all your decks together, then your seven most played
decks. Each cell is your win rate over your record, on a green or red tint that
gets stronger as games add up; under five decided games the rate is in brackets.
Every column sorts, and you can search by opponent deck. Decks of one archetype
share a row (“Mono-White Lifegain” and “Orzhov Lifegain” are both Lifegain;
Aggro, Midrange, Control, Ramp, Combo and Tempo keep their colors, so “Azorius
Control” stays apart from “Dimir Control”). Group: Archetype | Exact name
beside the search box shows every name on its own row instead.
Colors: the same grid by opponent color combination. A color opens All Games
for those colors.
People: your 50 most-faced opponents, 15 to a page, with a link to All Opponents for the rest.
Each opponent deck has its own page. Click one (its name, a cell or a tile) to see
your record against it, on the play and on the draw, in ranked and casual queues,
in Best-of-1 and in Best-of-3 (with your match record and games 1, 2 and 3 apart)
when you played Bo3, your decks against it, the cards that deck played against you in the
most games (from three games), with the art of the first behind the page’s header, and
your last 30 games against it in a sortable table with the same columns as Recent Games.
A group’s page also lists the names in it, and its games table names each game’s
opponent deck. On a game’s page, the opponent’s deck name links to its matchup page. The page’s address holds the deck and the filters, so it
opens the same in a new tab or from a bookmark, and the browser’s Back button returns
to the Matchups section with its view, grouping, sort, page and search as you left
them.
Each deck page has a Matchups section that looks like the Overview’s, for that
deck alone: by opponent deck (with Bo3 game 1 and games 2–3 split out when Bo3 matches
are in view; a deck opens its page with this deck as the filter), by color (with the
Best Against and Worst Against cards), and by commander for a Brawl deck.
Games where the opponent only has a color name count as Not named and sit at the
bottom. Brawl and limited games are left out; the page’s filters apply.
Fixing a name. A name read from a few cards is sometimes wrong. Both fixes use
the same editor: pick the colors, type the deck type (up to 30 characters, with
suggestions from the format’s decks and the types you have used before) and see the
name it will read.
Change on a game page (Opponent Deck Type, constructed games) names the
opponent’s deck for that match, every game of it. Your name comes before every
other and is never replaced; Use the automatic name again undoes it.
Rename on an opponent deck’s page renames that name everywhere, for the games
you have and the ones to come, except games you named yourself. It is a rule, not
a rewrite: Settings → Deck naming lists your renames, and removing one brings
the old names back.
Your names and renames stay on your computer. Backups carry the renames, and Reset
tracker data clears them.
Sideboard guide
An opponent deck’s page has two tabs: Overview and Sideboard guide. The guide
holds your own plan for one of your decks against that opponent deck: the cards you
bring in and take out, and a note (play/draw differences go there). A plan covers every
deck of the archetype (“Lifegain” covers “Orzhov Lifegain” and “Mono-White Lifegain”).
Pick your deck at the top; the tab starts on the deck you last saved a plan for, or
the one you played most in Best-of-3 against it.
Beside the plan, your Best-of-3 record in finished matches: game 1 and games 2–3, on
the play and on the draw. Below it, What you boarded: every card you swapped
between game 1 and a later game of the same match, how often, and your record in those
games. A plan line says how often you actually made that swap. Start from your last
match fills a new plan with that match’s swaps, and + Add puts one swap in.
When your decklist changes the plan stays, and lines that no longer fit are marked.
Plans stay on your computer: backups carry them (a merge keeps yours when both have
one) and Reset tracker data keeps them. Between games in Arena, the
overlay shows the plan. The sideboard guide reference
covers the details.
The names come from one file that the tracker downloads from the project’s
MTGA-Tapps-DeckNames repository on
GitHub at most once a day; the app also ships a copy, so it
works offline and before the first download. Nothing about your games is sent.
Settings → Deck naming turns the download off; naming goes on with the copy
you have. The file is built from untapped.gg ladder data
and the archetype rules of MTGOFormatData
(MIT license), with thanks to both. The deck names guide covers how a name is
chosen and how the file is made.
AI deck identification (optional)
With an API key, the tracker starts one identification job per completed
tracked game and names the opponent’s deck — the Game Detail page shows it
as the Opponent Deck Type when the deck names
file has no fixed name for it, falling back to plain colors when there’s no guess.
The model is asked for a color word and a deck type, using one of the types the
format’s meta decks go by when one fits (or Aggro, Midrange, Control, Ramp, Combo or
Tempo), so its names match the rest. The
call runs in the background after the game ends (and only when at least three
opponent cards were revealed), so tracking never waits on it. Normally this
is one request; OpenAI and Grok reasoning models can retry once if their token
budget produces an empty reply.
What leaves your machine is only the names of the cards your opponent
revealed in that game — never your deck, your account, or your log. Nothing
else uses the key: the live scoreboard’s colors come from Arena’s local card
database, and its mid-game deck label comes from the deck-names file first
(see deck names), then a local guess that reuses names
from earlier games.
Configure it on the dashboard’s Settings page (gear icon, top right — or
the “Settings” menu-bar entry): turn on the switch beside Deck AI, pick a
provider (OpenAI (ChatGPT), Anthropic (Claude), Google (Gemini), or xAI (Grok)),
paste your key, and optionally pick a model.
The Model dropdown is never a fixed list that goes stale. Once a key is
entered, the tracker asks that provider which models your key can use right
now (listing models is free) and shows them newest first, so new models
appear as soon as the provider releases them; Refresh asks again. Leave it
on Default and the tracker uses a current, low-cost model for that
provider, which moves forward with tracker updates. A link opens the
provider’s model page for comparing them, and you can type a model name
instead. The choice is saved to settings.json at the top level of the project
folder (installed builds keep it in the app data folder), and your key is only
ever sent to the provider you chose. Without a key the feature simply stays off.
A model on your own computer (Ollama or LM Studio)
Pick Ollama (local) or LM Studio (local) as the provider to run the
identification on your own machine: no key, no bill, and the card names never
leave the computer. A dialog first explains what to expect, since a small local
model is not a hosted one:
It has to be running. Start Ollama, or LM Studio with its local server on,
and download a model. While it isn’t running, games are saved as usual and the
opponent’s deck keeps its colour name.
Rougher labels. Small models know fewer Arena decks and newer cards. A
general chat model of about 7–14B parameters works best, and a label naming a
colour the opponent never showed is thrown away, as for every provider.
Speed and memory. The request runs after each game on the same computer as
Arena. With Apple silicon or a graphics card an 8B model answers in a few
seconds; without one it can take 30 seconds or more and keep the computer busy
while the next game loads. An 8B model needs about 5–6 GB of free memory. The
tracker waits up to three minutes, since a model loads on its first request.
Skip “thinking” models, which take many times longer for one short answer
(their reasoning is stripped from the label if they write it out).
The Server address defaults to http://localhost:11434/v1 (Ollama) or
http://localhost:1234/v1 (LM Studio); point it at another computer on your
network to use that one’s GPU, or at any other OpenAI-compatible server. Load
models lists what the server has downloaded and picks the first one; there is
no default model, because none suits every computer. The optional API key is only
for a server that asks for one. python3 scripts/test_deck_ai.py runs your
recent games through the chosen model and prints how long each answer took.
Second Opinion (optional)
An AI can give you a second opinion on your games, using the same provider as
Deck AI: your own key (OpenAI, Anthropic, Google or xAI) or a model on your
computer (Ollama or LM Studio). Nothing is sent until you click.
On a game. Game Detail has a Second opinion section. Ask a question if
you like (“Should I have kept this hand?”) and click Get a second opinion.
The answer picks out the turns that decided the game, each with a link to
that turn in the timeline and in the replay, and is saved with the game.
On your losses. A deck’s page (and an opponent deck’s page, for your deck)
can read your last 5, 10 or 20 losses with it together and say what keeps
going wrong, which losses show it, and what was luck.
A sideboard plan. An opponent deck’s Sideboard guide tab can suggest
cards in and out for your deck, checked against your list. It becomes your
plan only when you click Use as my plan.
Before each click the page shows about what the request costs, how much it
sends, and to which provider and model; What is sent shows the exact text.
A model on your computer is free. Prices come from public price lists the app
looks up itself, and Settings → AI shows this month’s total and every
request. The players are written as “You” and “Opponent”: your name and your
opponent’s are taken out of your notes, tags and deck names, and if one is
still there nothing is sent.
It is optional. Settings → AI has one switch that turns every AI feature
off (Deck AI included) and a switch for each feature; off, no AI button or
section is shown and nothing is sent to any provider.
Coach report. A Coach report button on each deck page and on All Games
makes a PDF of a deck’s results for a period, for a coach or a friend: your
record, what stands out, your matchups and every loss with your notes. It needs
no AI, hides opponents’ names by default, and can include your saved second
opinions.
The Second Opinion guide covers what is sent, what it
costs, the checks on each answer and the settings.
Quick start
[!CAUTION]
The tracker cannot see your games unless “Detailed Logs” is enabled in
MTG Arena. If everything looks fine but no games ever appear, this is
almost always why. In Arena: gear icon (top right) → Adjust Options →
Account → check “Detailed Logs (Plugin Support)” → restart Arena.
Install the app: grab the installer for your OS from
tappstracker.com or the
Releases page — on Windows, MTGA-Tracker-<version>-setup.exe
gives you a Start Menu entry, an Apps & Features uninstaller, and in-place
upgrades (a portable -windows.zip is also published); on macOS, a
drag-to-Applications DMG. One install gets you everything: the tracker, the
dashboard, the in-game overlay, and the Deck Finder. The builds are unsigned,
so expect a one-time Gatekeeper / SmartScreen prompt —
QUICKSTART.md walks through it.
Then launch it, play a game, and open the dashboard from the menu-bar / tray
icon. Prefer to build it or run it from source? See
Command-line tools at the bottom.
What isn’t tracked
Some game modes are left out of your saved stats by default, because
mixing them into constructed analytics would skew win rates and draw math:
Jump In! (Jump_In_* events)
Midweek Magic (MWM_* events)
Momir
Welcome Deck Duels (pre-made deck vs pre-made deck)
Practice games against Sparky (the Arena bot) — this includes bot
Color Challenges; Starter Deck Duels against human opponents ARE tracked
Want them anyway? Switch them on in Settings → Saved game modes, and
their games are saved like any other from the next game on. A Momir event run
as Midweek Magic needs both switched on.
Direct Challenge games against a friend are saved by default, and the
Challenges page (in the sidebar, below Formats) shows your record against
each friend and every game you played. When a friend is helping you test a deck
rather than playing to win, switch off Direct Challenge in the same Settings
card and those games stay out too; switch it back on when you play them for real.
Games the tracker joined mid-way are never saved (it has no reliable
opener or draw data for them).
These games still display live in the tracker window (with a note that
they won’t be saved), and the in-game overlay works in them like in any
other game — a practice game has a library and draw odds too. Only the
history stays out: nothing from them lands in your stats.
Data & privacy
Game history stays in local SQLite. Stored logs are scrubbed of tokens and
personal paths before persistence. Gameplay tracking reads Player.log.
Two optional features work inside the running game, and only when you start
them:
Collection export reads Arena’s process memory to find your collection.
It only reads.
Deck Manager’s Arena actions (beta) attach to Arena with
Frida to read the deck roster and, when you ask, add,
restore, favorite or move decks to Trash. Arena saves each change the way it
saves any deck edit.
Frida ships in every macOS and Windows build whether or not you use these
features, which is the most likely reason an antivirus or sandbox flags the
tracker.
Network requests are limited to the features that use them:
The dashboard, overlay and Stream Kit widgets fetch card art from Scryfall. The dashboard also
uses Scryfall’s batch API for missing mana costs; Archidekt collection
exports use it for printing IDs and cache the results locally.
The tracker downloads a small signed update manifest from GitHub Releases
shortly after start and every six hours (off in Settings → Updates), and
downloads the new version from GitHub when one is available.
Deck Finder requests the public decklist sites you browse.
Buy on Paper asks Scryfall for TCGplayer prices and downloads Card Kingdom’s
and Mana Pool’s public price lists at most once a day (it can be turned off
in Settings). Your list goes to a store only when you click Buy.
Deck naming downloads one file from GitHub,
https://raw.githubusercontent.com/pattont/MTGA-Tapps-DeckNames/main/deck_names.json,
at most once a day, and sends nothing but that request (off in
Settings → Deck naming).
Enabled AI deck identification sends revealed opponent card names to your
chosen provider after a tracked game, with the retry exception described above.
Second Opinion sends one request to your chosen
provider each time you click for one, with no player names in it (the
guide lists what is sent). While AI is on with a
hosted provider, model prices are looked up from the public models.dev list
(or LiteLLM’s) when you open Settings or pick a model, at most once a day for a
price already known; until your key is saved, only your own pick looks one up. Settings → AI turns all of it off.
Share a game sends nothing by itself. Open X, Open YouTube and X’s
video help page open in a new tab only when you click them; the post’s text
travels in the Open X link’s address, so X receives it only then. The PDF
report fetches its card images from Scryfall by printing (set and number) or
card name, nothing else about the game.
Normal card identification uses Arena’s own local card database
(Raw_CardDatabase_*.mtga, found through Arena’s log header and Steam/Epic
locations, or MTGA_DATA_DIR). Unresolved IDs display as Card #<id>.
Where things live:
Arena log — ~/Library/Logs/Wizards Of The Coast/MTGA/Player.log (macOS),
%USERPROFILE%\AppData\LocalLow\Wizards Of The Coast\MTGA\Player.log (Windows)
Source runs — data/mtga_tracker.sqlite3, with settings.json and
deckfinder_config.json at the top level of the project folder
Installed builds — ~/Library/Application Support/MTGA Tracker (macOS),
%LOCALAPPDATA%\MTGA Tracker (Windows), fully independent of the repo
The unified launcher prevents source and installed trackers from running at the
same time for one OS user. Never copy a live database while a tracker owns it —
use SQLite’s backup API for migrations.
Backups are local files too: a backup goes where you point it and is
copied onward only by whatever sync client owns that folder — see
Backup & restore. It carries your Deck AI key unless you
untick Include API keys.
Code signing policy
Windows releases are moving to free code signing provided by
SignPath.io, certificate by
SignPath Foundation. The project has applied; until
signing is in place, Windows builds are unsigned and Windows may warn about
them (see QUICKSTART.md). macOS builds carry the project’s
own self-signed signature and are not notarized by Apple.
What gets signed: only the Windows release files built from this
repository by its GitHub Actions release workflow:
MTGA Tracker.exe, the overlay’s tapps-overlay.exe and
MTGA-Tracker-<version>-setup.exe. Third-party libraries they include
(the Python runtime, Qt, Frida) are shipped as their projects publish them.
Committers and reviewers:Travis Patton.
Changes from anyone else arrive as pull requests and are reviewed before
merging.
Approvers:Travis Patton approves each
release’s signing request by hand, after checking the draft release built
for that tag.
Privacy: see Data & privacy. The app has no telemetry
and no account; its network requests are the ones listed there, each made
for the feature that needs it.
The dashboard
mtga-tracker-app serves it and opens it in your browser automatically unless
Settings → Startup → Open dashboard on launch is off or --no-browser is
passed for that run.
Every tracked game with deck picker, format pills, and period filter
#/opponents
Everyone you’ve been paired against; #/opponent/<name> for one opponent
#/matchup/<name>
One opponent deck: your record against it, your decks against it, the cards it played, your latest games (?group=1 for an archetype group, plus the Overview’s filters)
#/replay
Replay (beta) list; #/replay/<id> plays a completed game and can export video
#/deckfinder
Deck Finder: browse, export or save decklists from creators and sites
Tracker status, startup, updates, saved game modes, overlay, Buy on Paper, Deck AI, creators, backup/restore, collection export
#/stream-kit
Stream Kit: every widget’s options, link, Copy link and Preview
#/challenges
Challenges: your Direct Challenge games and record against each friend
/stream.html?widget=
A Stream Kit widget (links built on the Stream Kit page, #/stream-kit)
#/audit
Database health findings
#/reset
Reset tracker data: what a reset deletes and keeps, and the reset itself
JSON API: GET /api/snapshot, /api/live, /api/overlay, /api/deck,
/api/game, /api/card, /api/cards?q=, /api/games, /api/opponents,
/api/opponent, /api/matchup, /api/deck-types, /api/deck-renames, /api/coach-report, /api/ai-review, /api/ai-usage, /api/paper-prices, /api/update, /api/version — analytics reads are GET requests. POST
actions save game notes/tags
(/api/game/annotation), opponent deck names (/api/game/deck-name,
/api/deck-renames, /api/deck-renames/remove) and settings (/api/settings/*), ask for
or delete second opinions (/api/ai-review/*), run Deck Finder
jobs (/api/deckfinder/*) or its terminal launcher
(/api/deck-downloader/launch), and start collection exports
(/api/collection/export). /api/db/reset clears the analytics database
only with an explicit {"confirm": "RESET"} body and takes a backup first; it
refuses while MTG Arena is open or a game is in progress.
Command-line tools
Everything above runs from the menu-bar / tray app; all of it is also
available from a terminal.
Run from source:
python3 -m venv venv && source venv/bin/activate
pip install -e '.[dev,gui]'
(cd ui && npm ci && npm run build)
mtga-tracker-app # tracker + dashboard (with the Live Scoreboard), one command
Direct python -m mtga_tracker.app launches are owned by the Python
interpreter, so macOS menu-bar managers may label their icon Python. The
app bundle identifies the same process as Tapps Tracker; use the fast build
above when checking menu-bar behavior from current source.
# Windows exe / zip / setup.exe
powershell -ExecutionPolicy Bypass -File scripts\build_windows_app.ps1
Both include the in-game overlay, which needs Rust
(scripts/build_overlay.sh / .ps1 build it on its own).
Development
pip install -e '.[dev,gui]'
# Python suite (menu app tests need a display)
venv/bin/python -m pytest tests -q --ignore=tests/test_menu_app.py \
--deselect "tests/test_log_parser.py::test_find_log_path_error_handling"
# Frontend: tests, types, lint, build (dashboard serves ui/dist — rebuild after UI changes)
(cd ui && npm ci && npx vitest run && npx tsc -b && npm run lint && npm run build)
# UI development with hot reload (API + Vite side by side)
venv/bin/python -m mtga_tracker.dashboard
cd ui && npm run dev
Layout: src/mtga_tracker/ (tracker mixins, analytics store, dashboard
server), ui/ (React/TypeScript dashboard), tests/, packaging/ + scripts/
(PyInstaller builds), docs/. Working on it with an AI agent? Start with
AGENTS.md — it’s kept current on purpose, and it’s the only place agent
guidance lives.
Licensed under the GNU Affero General Public License v3.0 or later
(AGPL-3.0-or-later) — see LICENSE. You may use, modify, and
redistribute this software, but any distributed or network-hosted derivative
must also publish its source under the same license. For commercial licensing
outside these terms, contact the author.
The PDF report embeds the Inter font and a subset of the Mana symbol font, both
under the SIL Open Font License 1.1 (licence texts in
ui/src/share/pdf/fonts/), and is drawn with
react-pdf (MIT).
Tapps Tracker is unofficial Fan Content. Not approved/endorsed by Wizards of
the Coast. Magic: The Gathering and its logos are trademarks of Wizards of the
Coast LLC.
评论