Idea · Oct 7, 2026
Phantom API
A party game where you list real functions from a library (Python stdlib, NumPy, the DOM) until you invent one by mistake, then compete against an LLM that is trying not to hallucinate either.
What it would do
Inspired by 'List Animals Until Failure' from the HN Arcade roundup, this flips the format onto programming APIs, where fabricated names are a real and costly problem (LLM-invented packages and methods are now a known supply-chain risk). Pick a module such as `itertools`, `str`, `Array.prototype` or `pandas.DataFrame`, then type member names one at a time under a shrinking timer. Every answer is checked against a bundled, version-pinned symbol index generated by introspection, so verification is instant and offline. Typing a plausible-but-fake name ends the round and shows the closest real names by edit distance. A 'versus the model' mode asks Claude for the next name in the same list and scores both of you, which makes a surprisingly clear demo of how often confident-sounding APIs are made up.
Key features
- Version-pinned symbol indexes built by a script that walks `dir()` / `Object.getOwnPropertyNames` for each supported module
- Instant offline validation with 'did you mean' suggestions ranked by Levenshtein distance
- Rarity scoring: obscure-but-real names (e.g. `itertools.pairwise`) earn more points than `append`
- Versus-the-model mode that logs every hallucinated name the LLM produces, with a running fabrication rate
- Shareable result card listing your streak and the one name that sank you