Skip to content

systemone-racer

Browser lane-racing demo where Jev, OpenAI Decisions and a local EmbeddingGemma model each choose a lane for the same obstacles.

Projectprototype

Overview

System-One Racer is a client-side browser demo with three cars racing the same road on separate three-lane tracks. Each tick one shared state describing blocked lanes is built and the same lane-choice question is sent in parallel to three providers: TypeSafe Jev (natively through a small proxy, or via OpenRouter by default), the OpenAI Decisions API, and an on-device MediaPipe DecisionMaker using EmbeddingGemma, whose weights are cached in the browser.

It is a hands-on way to compare decision providers on identical inputs. The README explains a fair-race rule that mirrors one canonical obstacle set to every track, notes that the OpenRouter route returns a coerced lane from a chat model without calibrated probabilities, and documents that direct browser calls to TypeSafe fail CORS, hence the proxy. An auto-race mode keeps cars recovering and new obstacle waves spawning without clicks.

What the decision model decides

TypeQuestionAnswers
ChoiceWhich lane should the car move to given the blocked lanes?(inferred)lane 1 · lane 2 · lane 3

How it works

  1. Generate one canonical obstacle set and mirror it to all tracks.
  2. Build a shared lane state and add each car's current lane.
  3. Send the lane-choice question to all three providers in parallel.
  4. Move each car to its chosen lane; crashed cars recover automatically.

Strengths

  • Side-by-side comparison on identical state.
  • Local provider runs fully in the browser after a one-time download.
  • API keys stay in the browser's localStorage.

Caveats

  • Native Jev calls need the included proxy because of CORS.
  • OpenRouter route lacks calibrated probabilities.
  • Demo only; no licence stated.

Getting started

python3 server.py 8080 and open http://localhost:8080.

At a glance

Type
Project
Status
prototype
Language
JavaScript
Runtime
browser + Python proxy
Has code
yes

Use cases and integrations

How curated lists describe it

Frequently asked questions

What decision is made?

Each provider picks a lane for its car given which lanes are blocked.

Why is a proxy needed?

TypeSafe's API does not allow direct browser requests, so server.py forwards Jev calls.

Does the local model need a server?

No, the EmbeddingGemma-based model runs in the browser via MediaPipe.

Related projects

  • Browser 2D driving sim where Jev answers lane, speed, hazard and pedestrian-yield questions every 200 ms, with an LLM comparison mode.

    ProjectprototypeJavaScript
  • 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.

    ServiceprototypePython
  • Chrome T-Rex game where local Laya on MLX and hosted Jev choose moves side by side, with latency charts and crash replays.

    ServiceprototypePython
  • Experimental Conway's Life game where Jev makes each move with one boolean per legal cell, plus a broker that wraps any LLM as Jev.

    ProjectprototypeTypeScript
  • Browser Pac-Man race comparing hosted Jev and self-hosted Laya choosing routes from the same board state, after code removes fatal routes.

    ServiceprototypeJavaScript
  • Evaluates Jev as a fixed policy in Gymnasium and Atari games, picking a legal action each step via one Choice question.

    ProjectresearchPython