User repository on GitHub
Snake autoplay powered by TypeSafe Jev (System One)
- Forks
- 0
- Last pushed
- Updated Oct 2026
Repo stats from the GitHub API, cached Oct 2026.Homepage
A Next.js Snake game where every move is a live System One Choice call: run it on Jev, on the wire-compatible Drex, or send the same state to both in parallel and watch the probabilities side by side.
User repository on GitHub
Snake autoplay powered by TypeSafe Jev (System One)
Repo stats from the GitHub API, cached Oct 2026.Homepage
Snake autoplay where every move decision is a live System One Choice via POST /v1/systemone. Pick Jev (TypeSafe), Drex, or Compare both side by side. Safe straight-line holds may reuse the last legal direction without a new API call. Drex is wire-compatible with TypeSafe Jev (noul / choice / score). The TypeSafe SDK can talk to Drex by swapping three settings: API key, base URL, and default model (drex-latest). Some TypeSafe-shaped requests may return 422 from Drex on purpose (stricter validation).
Quoted from the project's README. Read the full README.
Watch out
Drex has no public base URL: api.drex.ai does not resolve, so you must set DREX_BASE_URL to your own tenant's System One root, https only and without the /v1/systemone path because the app appends it, plus DREX_API_KEY. Some TypeSafe-shaped requests return 422 from Drex deliberately because its validation is stricter. Every real move costs an inference call, so the loop waits about 90 ms between ticks and pauses after a minute idle or a hidden tab, and upstream DNS or connect failures come back as a JSON 502 rather than an HTML 500. Copy reviewed against the repository README on 2026-10-04, not from running it.
Forks and copies of this project in the directory. This entry is the canonical one.
Original write-ups on what this entry is for.
Posts from builders shipping with Jev right now.