← Binderdex dev log

A coverage checker for binder idea gaps

#tcg#data#product

Eight cards on a baseline, each with a stack of idea chips above it and a dotted threshold line; the three cards whose stacks fall short of the line glow amber

When a new set drops, I couldn't say which of its best cards my recommender was under-serving. Each special illustration rare on Binderdex gets binder ideas on its card page, and I only knew some pages were thin as a hunch.

Binderdex is my Pokémon card collection and price app. A special illustration rare is a full-art card where the picture runs across the whole card, and collectors chase them. A binder idea is a ready-made, themed page of nine cards that someone can copy into their own binder planner. The recommender is the code that chooses which ideas appear on a card's page.

How ideas reach a card page

Each illustration rare and special illustration rare gets idea pages built from related cards that share overlap tags, the labels that link a card to ideas that fit it. When few published ideas overlap with a card's tags, its page comes up short, and nothing flagged that.

A read-only audit that asks the site's own question

The new checker walks every full-art candidate in a set and calls the same lookup the site uses to find a card's published ideas. For each card it prints the idea count and the overlap tags behind it. It changes nothing.

One flag sets the bar, and any card below --min-ideas lands on the gap list:

pnpm --filter content-generation binder:set-coverage -- \
  --set-slug pitch-black --min-ideas 3 --json

From there the loop is short. I feed the gap cards' themes to the generator that makes new idea pages, rebuild, and swap them in.

Audit with the production code path

Because the checker calls the lookup a visitor's page load calls, there's no drift between what the audit reports and what a visitor sees. A separate audit query is quicker to write, and it slowly stops being true as the real one changes.

Next I'll wire the checker into the new-set workflow, so coverage is measured right after a set is added. A hunch became one number per card, and a number is something I can fix.

This is the build log for Binderdex (www.binderdex.com) · All entries · Weekly essays