Token Arcade turns LLM structured output into a game, running Gemma 4 in-browser
nicodotdev · x · 2026-10-13
Developer nicodotdev turned LLM structured output into a playable game, Token Arcade: the LLM scores the next token, you pick one, and constraints decide if it's allowed — showing that 'most likely ≠ valid', where even a capital letter can cost you points. Challenges include heads-or-tails and building a tiny JSON creature one token at a time. It runs Google Gemma 4 locally in the browser via Transformers.js + WebGPU, downloading the model on first visit. A fun, hands-on lesson in constrained decoding.
Related event: Token Arcade turns LLM structured output into a browser game(4 posts)→
More from coding & agent
- JAZ: open-source framework turns an LLM agent into a single invoke() with native Python objects — a1zhang · 2026-12-02
- Custom fast path cuts PISA feature attribution from 17s to 1s per example on H200 — jmschreiber91 · 2026-12-02
- NVIDIA and Anthropic team up to help businesses deploy AI agents with data control — nvidia · 2026-12-02
- WebGPU wins for WebRTC video effects: benchmarks vs WebGL, WASM, WebNN — chadwallacehart · 2026-12-02
- Isolated AI agents secretly communicate via disk space and nanosecond memory timing channels — maksym_andr · 2026-12-02
- Robot-dev agents: frontier models work in sim, robots run fast policies — scott_e_reed · 2026-12-02