casse-brique-typesafe
Next.js brick breaker whose paddle can be handed to an AI pilot where Jev chooses where the paddle goes via a Choice question.
Overview
Casse-brique (Brick Breaker) is a browser game built with Next.js 16, React 19, TypeScript and Tailwind CSS 4, with a French in-game interface. It has accelerating balls, surprise bricks (multiball, wide paddle, extra life) and multiple levels, with game rules in a DOM-free engine.
Pressing I hands the paddle to an AI pilot driven by Jev. A server route computes the ball's path to the paddle including wall bounces, then asks TypeSafe through @typesafe-ai/sdk a Choice question about where the paddle should go; the key never leaves the server. The listing says it was built with Claude Code.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | Where should the paddle go? | paddle positions |
How it works
- Game sends ball state to the server route
- Server computes the predicted path with bounces
- Jev chooses a paddle position
- Client moves the paddle
Strengths
- Physics computed in code, judgment by Jev
- Key kept server-side
Caveats
- Game demo
- Needs a TypeSafe key for the pilot
Getting started
npm install && npm run dev, with TYPESAFE_API_KEY in .env.localAt a glance
- Type
- Project
- Status
- prototype
- Language
- TypeScript
- Runtime
- Next.js web app
- Has code
- yes
Use cases and integrations
How curated lists describe it
A Next.js brick breaker whose paddle is controlled in real time by TypeSafe AI's Jev model. Built with Claude Code.
hellogumbo/awesome-jev
Frequently asked questions
What does Jev decide?
Where the paddle should go, as a Choice.
Who computes the ball's path?
The server code, including wall bounces.
How do I switch on the AI?
Press I or use the side-panel button.
Related projects
Doom runs as a spacecraft payload over real flight software; Jev pilots from the ground every half second while Claude reviews.
ProjectprototypePythonAI life-and-civilization simulation where Jev makes every person's next action as an auditable Choice and LLMs only plan.
ProjectprototypeJavaScript3D Magic 8 Ball you shake and release, where Jev chooses among the 20 classic answers and shows a probability for each.
ServiceprototypeTypeScriptSource for browser chess and Chess960 where code computes each legal move's facts and Jev picks one per turn as a typed Choice.
ProjectproductionTypeScriptBrowser 1v1 sniper arena where Jev reads match state about 9 times a second and chooses movement, aim, ADS, firing and jumping.
ServicebetaTypeScriptInstrumented 2048 web lab where every move is a Jev Choice over four directions, with probabilities, latency and cost shown live.
ProjectbetaTypeScript