Skip to content

3031 source-verified AI-built games from 2724 repos, attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet and Claude Fable

3.7 KB
Raw Blame
{
  "repo": "Gipppp121/cacheball",
  "created_at": "2026-10-04T10:24:33Z",
  "pushed_at": "2026-10-04T10:38:19Z",
  "description": null,
  "homepage": null,
  "default_branch": "main",
  "language": "HTML",
  "readme": "<p align=\"center\">\n  <img src=\"assets/banner.png\" alt=\"cacheball\" width=\"100%\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://gipppp121.github.io/cacheball/\"><img src=\"https://img.shields.io/badge/%E2%96%B6%20play-in%20browser-5fe3f0?style=flat-square\" alt=\"play in browser\"></a>\n  <img src=\"https://img.shields.io/badge/runs%20on-any%20web%20page-5fe3f0?style=flat-square\" alt=\"runs on any web page\">\n  <img src=\"https://img.shields.io/badge/deps-none-0b0f15?style=flat-square\" alt=\"no dependencies\">\n  <img src=\"https://img.shields.io/badge/size-12%20KB-1f6fd0?style=flat-square\" alt=\"12 KB\">\n  <img src=\"https://img.shields.io/badge/models-sonnet%205.5%20%C2%B7%20opus%205.5-c8a6ff?style=flat-square\" alt=\"models\">\n  <img src=\"https://img.shields.io/badge/license-MIT-7d8794?style=flat-square\" alt=\"MIT\">\n</p>\n\n# cacheball\n\n**[Play it in your browser](https://gipppp121.github.io/cacheball/)**\n\nRoll your agent's context up any web page. Every word you pick up grows the ball, and the ball is what the next turn re-reads from cache.\n\nCache reads cost $0.20 per 1M on both Sonnet 5.5 and Opus 5.5. So the bigger the ball gets, the smaller the gap between the two models:\n\n| context in cache | Sonnet 5.5 / turn | Opus 5.5 / turn | Opus / Sonnet |\n|---|---|---|---|\n| 20K  | $0.033 | $0.062 | 1.88x |\n| 150K | $0.059 | $0.088 | 1.49x |\n| 400K | $0.109 | $0.138 | 1.26x |\n\nThe counter in the corner shows that ratio live while you roll.\n\n## Run it\n\nFastest way: open the [play page](https://gipppp121.github.io/cacheball/) and press **roll this page**.\n\nOn any other page, this README included, and paste `cacheball.js` into the browser console. Or save `bookmarklet.txt` as a bookmark and click it on any page.\n\n| input | what it does |\n|---|---|\n| mouse, touch | roll toward the pointer |\n| arrows, WASD | roll |\n| `M` | mute |\n| `Esc` | quit and put every word back |\n\nSmall words first. Big headings and images stay put until the ball is big enough to take them. Stop for 5 seconds and the cache goes cold: the next pickup pays a cache miss.\n\nNothing leaves the page. The script only hides the words it picked up and shows them again on `Esc`.\n\n## Measure your own logs\n\n`cost.py` reads one JSON line per Messages API call and prints $/turn and $/pass per model.\n\n```bash\npython cost.py usage.example.jsonl\n```\n\n```json\n{\"task\": \"fix-auth\", \"model\": \"claude-sonnet-5-5\", \"passed\": true, \"usage\": {\"input_tokens\": 40, \"output_tokens\": 1500, \"cache_read_input_tokens\": 150000, \"cache_creation_input_tokens\": 5500}}\n```\n\nRead it in this order: the $/turn ratio, the avg turns ratio, then $/pass.\n\n## Rules worth remembering\n\n```\nswitching models mid-session   -> new session + handoff, never the transcript\nswitch at 300K context         -> 300,000 x $5 / 1M = $1.50 just to re-cache\nsame switch with 20K handoff   -> $0.10\none cache miss at 150K         -> $0.38 Sonnet / $0.75 Opus\n```\n\nPrices are Anthropic's standard API rates as of October 3, 2026. The ratio in the game is arithmetic on an assumed turn shape (5,500 new tokens, 1,500 output), not a measured bill.\n\n## Demo\n\n![demo](assets/demo.gif)\n\n## Files\n\n```\ncacheball.js           the ball, readable source\ncacheball.min.js       same thing, minified\nbookmarklet.txt        paste as a bookmark URL\ncost.py                $/turn and $/pass from your usage logs\nusage.example.jsonl    sample log\nassets/                banner and demo\n```\n\n## License\n\nMIT",
  "commits": []
}