laya-vs-jev
Chrome T-Rex game where local Laya on MLX and hosted Jev choose moves side by side, with latency charts and crash replays.
Overview
This Laya vs Jev project has two decision models play Chrome's T-Rex game side by side on a shared obstacle course: Laya running locally on Apple Silicon through MLX, and Jev through TypeSafe's hosted API. You watch their choices, response times, survival streaks and slow-motion crash replays, with live latency charts and decision feedback.
The README is careful about what is measured: a deterministic physics planner labels the possible moves and the models choose between them, and safety checks can override unsafe or stale choices, so assisted scores measure the combined system rather than independent model skill; the 'best move' statistic measures agreement with the planner, and an unassisted flag disables the shields. Runs can be recorded and exported to 1080p video. A local-only mode needs no API key. It is built on laya-mlx and licensed Apache-2.0, with tests and a planner benchmark script.
What the decision model decides
| Type | Question | Answers |
|---|---|---|
| Choice | Which planner-labelled move should the dinosaur make now (e.g. jump, duck, run)?(inferred) | — |
How it works
- Game state is sent to Laya (local) and Jev (hosted)
- Each model chooses among planner-labelled moves
- Safety shields may override unsafe or stale choices
- Metrics, latency and crashes are recorded
- Runs can be exported as video
Strengths
- Side-by-side view of local versus hosted latency
- Clear disclosure of planner assistance
- Local-only mode without a key
- Recording and export
Caveats
- Assisted scores do not measure pure model skill
- Apple Silicon required for Laya
- Game demo, not a benchmark of general accuracy
Getting started
git clone https://github.com/virajbhartiya/laya-vs-jev.git && cd laya-vs-jev && uv sync --extra demo --extra trex --extra dev, download the model, set TYPESAFE_API_KEY, then uv run --extra trex laya-trex --round-seconds 0 --env-file .envAt a glance
- Type
- Service
- Status
- prototype
- Language
- Python
- Runtime
- terminal/desktop game on macOS (MLX)
- Has code
- yes
- Has tests
- yes
- License
- Apache-2.0
Use cases and integrations
How curated lists describe it
Laya vs Jev: local MLX and hosted AI decisions playing T-Rex side by side, with live metrics and replay recording
logicrw/awesome-jev-projects
Frequently asked questions
Do scores show which model is better?
Not directly; with safety shields on, scores reflect the combined system. Use --unassisted to remove them.
Can I play without a key?
Yes, with --players laya for a local-only game.
What hardware do I need?
An Apple Silicon Mac for Laya via MLX.
Related projects
Browser arena where local Laya and hosted Jev race in Snake and fight in a Mortal-Kombat-style game, with every move a real decision.
ServiceprototypePythonBrowser Pac-Man race comparing hosted Jev and self-hosted Laya choosing routes from the same board state, after code removes fatal routes.
ServiceprototypeJavaScriptFifteen live arcade games where Jev and LLMs play each other, led by WikiRace in which Jev picks only real links.
ProjectbetaTypeScriptBrowser extension that lets Jev, local Laya or an OpenAI-compatible model take over a running ra2web (WannaFire) RTS match.
ProjectbetaTypeScriptOne-page web app where Jev plays chess against OpenRouter LLMs, Stockfish or you, showing the moves it weighed and their probabilities.
AppbetaJavaScriptPac-Man where Jev or other System One models choose each move at junctions, with live odds, fallbacks and a leaderboard.
ProjectbetaTypeScript