SPB Git forge

spb/rareindex

Public
54commits 1branches 0releases
7.1 MBsize
maindefault branch
10 days agolast push
TypeScript 61.9% HTML 37.2% SQL 0.7%

# Everything Games connector (everything-games)

  • Source: https://www.everythinggames.ca · dealer · CA · CAD · Shopify storefront
  • Acquisition: public /collections/<handle>/products.json?limit=250&page=N (shared ShopifyStoreConnector adapter wrapped by MarketPinnedShopifyConnector, which adds a localization=CA cookie so Shopify Markets never geo-converts prices; no store-specific code)
  • Records: listing (asking prices, one per variant; out-of-stock variants → ended)
  • Refresh: every 12 h (ACTIVE→NORMAL boundary, large catalogue) · history: none (listings only)

Winnipeg TCG/wargame store. Shopify storefront; singles titled 'Name [SET - number]' with condition/language/finish variants.

# Collections → taxonomy

collection handle category brand / franchise / series
mtg-singles magic_the_gathering Magic: The Gathering
pokemon-singles-instock pokemon Pokémon
grand-archive-1 other_tcg Grand Archive
flesh-and-blood-singles flesh_and_blood Flesh and Blood
weiss-singles weiss_schwarz Weiß Schwarz
riftbound-singles other_tcg Riftbound
shadowverse other_tcg Shadowverse Evolve
board-games board_games —

Excluded (regex): gift card|sleeves?|deck box|binder|playmat|toploader|top loader|storage box|dice|tokens? only|bundle of|mystery|buylist|submission|event ticket|\bentry\b|tournament|store credit|pre-?release event|supplies|card savers?|\brepack|bulk lot|\blot of\b|\bpaints?\b|primer|brushes|online (pack|code)|digital code|code card|unused digital|ptcgo|ptcg live

Title pattern: ^(?<name>.+?) \[(?<set>[A-Z0-9]+)(?: - (?<number>\S+))?\]$ (name / set / number)

# Access & compliance

See accessNotes in meta.json: robots.txt verified 2026-09-08 (standard Shopify rules, products.json paths allowed), honest UA, 1 req / 1.5 s, listings only, no personal data. Not fetched: Warhammer/miniature ranges, paints, dice, RPG books, supplies.

# Fixtures & tests

data/fixtures/everything-games/ — live captures (pnpm tsx connectors/api/_g3-shops-na-lib/capture.ts everything-games), trimmed single-product payloads incl. a sold-out variant. pnpm vitest run connectors/api/everything-games · live probe: pnpm tsx connectors/api/_g3-shops-na-lib/probe.ts everything-games.