Skip to content

Demo Tetris Jev

Arcade Tetris demo where Jev picks each piece's rotation and position: the engine enumerates reachable placements and a local Node server asks one choice question per move.

Stars
1
Language
JavaScript
Published by
Community
Author
marcelomar21
Last verified
Oct 2026

Tetris arcade jogado pelo Jev da TypeSafe AI, com decisões em JSON, antecipação de jogadas e custo por partida.

Forks
0
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

Uma demo em que o Jev, da TypeSafe AI, joga Tetris: o modelo escolhe a rotação e a posição de cada peça, e o jogo transforma a decisão estruturada em movimentos reais. Interface arcade em Canvas 2D, com a decisão em JSON, confiança, latência e custo estimado da partida visíveis durante o jogo. JavaScript e Node.js, sem dependências externas. Requer Node.js 22 ou superior. Para jogar com IA, configure uma chave da TypeSafe com créditos disponíveis. Edite .env e preencha TYPESAFEAPIKEY. Depois:

Quoted from the project's README. Read the full README.

Highlights

  • Shows the decision JSON, confidence, latency, and estimated session cost live beside the Canvas board during play.
  • Lookahead prepares the next piece while gravity continues; stale predictions are discarded with at most one query in flight.
  • Runs with no install or build step on recent Node; a manual mode plays without any key, server, or credential.
  • Key stays server-side bound to localhost with origin checks, and tests run on simulated responses without spending credits.

Watch out

Local game demo; cost and confidence figures are on-screen estimates. Copy reviewed against the repository README on 2026-10-04, not from running it.

Questions about this entry

Short answers drawn from the linked project or page.

More Jev resources like this

0GitHub stars
Zero-dependency local playground showing six Jev workflows from triage to eval judging with shippable snippets.
Jev Demos & Experiments#community#github
45GitHub stars
Drop-in OpenAI-compatible cache proxy for repeatable agent workflows: exact hits stay local, and with a TypeSafe key Jev judges whether a cached response is semantically reusable for the current request.
Jev Demos & Experiments#community#jevbest#catalog-import
33GitHub stars
Joke JavaScript helper that asks the Jev decision model whether a number is even and resolves to a boolean.
Jev Demos & Experiments#community#jevbest#catalog-import
30GitHub stars
Side-by-side game harness where Laya running locally and Jev over API answer the same typed questions for snake, kombat, runner, flappy, tetris, and human-versus-model matches.
Jev Demos & Experiments#community#jevbest#catalog-import
22GitHub stars
Zero-dependency client that turns any logprobs-capable chat endpoint into typed choice, boolean, and score decisions with abstention.
Jev Demos & Experiments#community#jevbest#catalog-import
24GitHub stars
Native macOS computer-use agent on Apple silicon that finds controls with local CoreML detection, OCR, and accessibility, then asks Jev to pick the next finite-choice action.
Jev Demos & Experiments#community#jevbest#catalog-import

From the Jev guides

Original write-ups on what this entry is for.

A game tick is a state plus a legal action list. How Clash Royale, Minecraft, and the earlier Mario, Pokémon, StarCraft, and drone loops ask Jev one step at a time.
Jev Demos & Experiments#gaming#agents#control
Read article
Back to all resources

From the Jev community

Posts from builders shipping with Jev right now.

Follow @typesafeai