main
Card Collection
Dashboard for my trading card collection: https://kburchtree.cloud/card-collection/
- Rare Candy sync:
.github/workflows/sync.ymlrunsscripts/sync_rarecandy.pyevery 30 minutes on the Gitea runner (git.kburchtree.cloud) and commitsdata/rarecandy.json+data/history.jsonwhen the collection changes; the site updates a few seconds after each push. To sync right away, tap Sync now on the site: it starts the workflow through the Gitea API, follows the run and reloads when the new data is live. Each device needs thecard-syncaccount's token once (that account can only write this repo), saved in that browser's localStorage. Without a token you can still run it from the repo's Actions tab. It also saves per-card price change points (data/prices.json, starting 2026-10-13, since Rare Candy's own price-history endpoint is broken) and, once a day, the full card list of every owned set (data/sets/<setId>.json) for the missing-cards view. Anything Rare Candy tracks (Pokémon, Lorcana, MTG, …) shows up automatically under its brand. - Backups: owned cards' pictures are saved as WebP in
images/cards/(the page falls back to Rare Candy's image host if one is missing). If the collection suddenly drops by more than half, the sync refuses to save and the run fails; if the drop is real, run the workflow with force checked. - Manual cards:
data/manual.jsonholds cards Rare Candy can't track (e.g. baseball). Use the same fields asrarecandy.json:id(unique,m:prefix),brand,set,name,number,rarity,price,qty, optionalimg/imgLarge/url/setRelease/setTotal. - Decks: the Decks tab builds 60-card Pokémon decks from cards you own (capped at your copies,
4-copy rule, Basic Pokémon, ACE SPEC, evolution lines, Standard/Expanded legality; Standard = regulation
mark H and later). Basic Energy is always available. Paste a Pokémon TCG Live / Limitless list to see what
you already own; "Copy list" exports in PTCG Live format. Decks are saved in the browser (localStorage).
Card types come from the open Pokémon TCG dataset (
data/cardinfo.json,data/tcgsets.json), looked up by the sync only for cards it hasn't seen.
Languages
HTML
81.9%
Python
16.5%
JavaScript
1.6%