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%
2.3 KB · 32 lines markdown
Rendered Raw Blame History
1# Everything Games connector (`everything-games`)23- Source: https://www.everythinggames.ca · dealer · CA · CAD · Shopify storefront4- 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)5- Records: `listing` (asking prices, one per variant; out-of-stock variants → `ended`)6- Refresh: every 12 h (ACTIVE→NORMAL boundary, large catalogue) · history: none (listings only)78Winnipeg TCG/wargame store. Shopify storefront; singles titled 'Name [SET - number]' with condition/language/finish variants.910## Collections → taxonomy11| collection handle | category | brand / franchise / series |12|---|---|---|13| `mtg-singles` | `magic_the_gathering` | Magic: The Gathering |14| `pokemon-singles-instock` | `pokemon` | Pokémon |15| `grand-archive-1` | `other_tcg` | Grand Archive |16| `flesh-and-blood-singles` | `flesh_and_blood` | Flesh and Blood |17| `weiss-singles` | `weiss_schwarz` | Weiß Schwarz |18| `riftbound-singles` | `other_tcg` | Riftbound |19| `shadowverse` | `other_tcg` | Shadowverse Evolve |20| `board-games` | `board_games` | — |2122Excluded (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`2324Title pattern: `^(?<name>.+?) \[(?<set>[A-Z0-9]+)(?: - (?<number>\S+))?\]$` (name / set / number)2526## Access & compliance27See `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.2829## Fixtures & tests30`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.31`pnpm vitest run connectors/api/everything-games` · live probe: `pnpm tsx connectors/api/_g3-shops-na-lib/probe.ts everything-games`.32