Candidate API
Scanner Playground
Try preset card handlers, edit the JavaScript, and see how the applet can fit into your own page. This playground keeps everything local in your browser: apply a handler, then scan a card. Need to disable cross-origin isolation for debugging? Open with ?coi=0.
Scan settings
Waiting for cards…
Card handler JavaScript
Start with the Scryfall example, or change the rows, logs, and fetches to fit your own page.
async function onCardScanned(card, mygui) {
}
Try this: choose a preset, click Load preset, then scan a card. The examples are starting points—edit them freely.
card.cardIdis the confirmed CollectorVision card id.card.secondaryIdis the optional grouped id.card.secondaryIdFieldis auto-detected from catalog metadata (for exampleoracleId).card.scoreis the match confidence.mygui.bounceCard()adds one bouncing image per scan.- When cross-origin isolation is enabled for max performance, cross-origin card art may render as a local fallback tile.
- The handler runs only on your device; refreshing restores your saved code.
Detected cards will appear here.