{"engine":"Toolz Hardware Resolution","version":"4.1.0","documentation":"https://toolz-app.vercel.app/api/info","infrastructure":"Vercel serverless + Upstash Redis","source":"GSMArena (spec text + images, shown with source link)","catalogUi":"/spec","pipeline":["cache-check: url_map -> specs:url (cached:true on hit)","dedup-lock: lock:specs:<query> (~22s, concurrent callers wait)","discovery: builtin model map -> Samsung parser -> device:<code> dictionary (25k+) -> GSMArena quicksearch scoring","extraction: Cheerio parse of spec page, proxy fallback","store: specs:url:<id> + url_map aliases, no TTL"],"endpoints":[{"method":"GET","path":"/api/specs?model=<name-or-code>&refresh=1?","description":"Resolve one device to full specifications."},{"method":"GET","path":"/api/spec?json=1&q=<query>","description":"Catalog feed for /spec. Returns totalInRedis, count, devices[]."},{"method":"GET","path":"/api/info?json=1","description":"This document, machine-readable."},{"method":"POST","path":"/api/sync-devices","description":"Admin: rebuild device:<model> dictionary; actions invalidate-catalog, invalidate-specs."},{"method":"POST","path":"/reset","description":"Admin: purge specs:url:*, url_map:*, catalog snapshot, or a single model."}],"redisSchema":{"specs:url:<id>":"Full spec payload, permanent","url_map:<query>":"Lowercased query -> GSMArena URL","device:<code>":"Model code -> market name (25k+ entries)","cache:gsm_quicksearch_catalog":"GSMArena catalog snapshot","gsm:quicksearch_url":"Active catalog URL","lock:specs:<query>":"Short-lived dedup lock"},"limits":{"functionBudget":"25s maxDuration (10s for /api/info)","cacheTtl":"none (permanent until purged)","cors":"GET endpoints allow *"}}