Skip to content

Casse Brique TypeSafe

A browser brick breaker on Next.js 16 and React 19 where you can hand the paddle to a Jev pilot: the server computes the ball's path and the model picks one of 16 zones. The in-game interface is in French.

Stars
0
Language
TypeScript
Published by
Community
Author
Para-FR
Last verified
Oct 2026

A Next.js brick breaker whose paddle is controlled in real time by TypeSafe AI's Jev model. Built with Claude Code.

Forks
1
Last pushed
Updated Sep 2026

Repo stats from the GitHub API, cached Oct 2026.

About this project

A brick breaker you can play in the browser, built with Next.js 16, React 19, TypeScript and Tailwind CSS 4. The paddle can be handed over to an AI pilot powered by TypeSafe AI's Jev model. The in-game interface is in French. The AI pilot needs a TypeSafe API key. Copy .env.example to .env.local and set TYPESAFEAPIKEY. The ball speeds up by 12 px/s for every brick destroyed, up to a cap of 900 px/s. The paddle's maximum speed scales with the ball's speed.

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

Highlights

  • The server computes the bounce path and the model picks a 50 px zone; without it, accuracy on descending balls falls from about 90% to 5%.
  • Requests are paced to at most one per 150 ms, and the TYPESAFE_API_KEY stays server-side behind the /api/paddle route.
  • Physics live in src/game/engine.ts with no DOM dependency, and a 2D canvas renderer draws the resulting game state.
  • The info panel shows confidence, latency and token usage, and the decision log exports its last 500 entries as JSON.

Watch out

The headline accuracy figures are the author's own measurement with no sample size, run count, difficulty spread or error bars, so treat the 90% versus 5% gap as directional rather than precise. No latency or token cost per session of play is given, so the price of leaving the pilot on for a full level is unknown, and 150 ms pacing only bounds the request rate, not the spend. The model never touches physics: it picks one of 16 zones and the code moves the paddle at the same maximum speed as the keyboard. The user interface is in French, which affects any custom strings you add, and the TypeSafe key is required only for the pilot, not for the game itself. 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

98GitHub stars
Self-hosted Docker service and web UI that packages Laya structured-decision inference behind a compatible System One endpoint.
Jev Demos & Experiments#community#jevbest#catalog-import
Browser drone-fleet lab where TypeSafe Jev steers each drone as fast reflexes and an optional planner offers one-use strategy advice when confidence drops, without pausing control.
Jev Demos & Experiments#community#jevbest#catalog-import
23GitHub stars
Chrome extension that sends each X post to Jev with six typed questions in one call near the viewport, then renders a behavior chip under the post plus a session cost and latency panel.
Jev Demos & Experiments#community#jevbest#catalog-import
14GitHub stars
Manifest V3 Chrome extension in TypeScript that sends each LinkedIn post to Jev and collapses bait, self-promo, off-topic, and sponsored posts into a one-line bar with reasons and scores.
Jev Demos & Experiments#community#jevbest#catalog-import
Demo that turns free-text UI descriptions into real shadcn components using only Jev typed Choice, Noul, and Score answers, with no generated code on the decision path.
Jev Demos & Experiments#community#jevbest#catalog-import
8GitHub stars
Claude-driven browser automation where plain-English chat drives Brave or Chrome, Jev makes on-page decisions, and a guard freezes irreversible clicks.
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