shipwithjev

Catalog / Games & real time

0336GitHub

Jev Self-Driving Sim

A 2D top-down car in the browser that turns its sensors into a JSON state every 200 ms and executes four typed answers.

A 2D top-down car in the browser that turns its sensors into a JSON state every 200 ms and executes four typed answers. No license file at the time of writing.

vinilana/live-jevREADME ↗
# Jev Self-Driving Sim

A 2D, top-down autonomous car that runs in the browser and uses
[TypeSafe's Jev](https://docs.typesafe.ai/introduction) (a "System One" decision model)
as its driving classifier. Every ~200 ms the car turns what its sensors see into a JSON
state, sends it to Jev with four typed questions, and executes the answers:

| question           | type   | what Jev decides                                  |
|--------------------|--------|---------------------------------------------------|
| `lane_action`      | choice | `keep_lane` / `change_left` / `change_right`      |
| `speed_action`     | choice | `stop` / `slow_down` / `hold` / `speed_up`        |
| `hazard`           | score  | 0 (clear) … 3 (collision likely within seconds)   |
| `pedestrian_yield` | noul   | probability that ego must stop for a pedestrian   |

All four go in a single API call (speculative fan-out). Code then applies
confidence-gated routing: a low-confidence lane change is ignored, a strong
`pedestrian_yield` overrides speed, a severe `hazard` forces at least `slow_down`,
and a `stop` is softened to `slow_down` when nothing is within 1.5× the stopping
distance (so far-away pedestrians or obstacles cause a gentle slowdown, not a halt).
Speed steps are scaled by the time since the previous answer, so a fast Jev does not
brake harder than a slow one.
A small "reflex" in code (emergency brake, blind-spot abort) exists only for
imminent impacts and can be switched off in the UI.

## Jev vs LLM, side by side

With an OpenRouter key the page offers a **Compare** mode: two tracks on the same
course, the left car driven by Jev and the right one by an LLM (DeepSeek V4.1 Flash by
default) that receives the very same state and questions and must answer in the same
JSON shape. The course (`pu

Also filed under Games & real time

  1. 0607

    2048Jev: Jev plays 2048

    Built a demonstration of Jev playing 2048. Note: It might not always win. :)

    @TheRealRajdeep · Games & real time

  2. 0603

    System 1 Speedcuber: a Rubik's cube agent

    A speedcubing agent built on Jev and Laya ModernBERT-421M, with real-time 3D state, temporal memory and calibrated move probabilities instead of a solver.

    @harsha_varma02 · Games & real time

  3. 0597

    Astra and Jev play Minecraft

    A video letting Astra plan and Jev act inside Minecraft, with an outcome the creator didn't expect.

    @MatinSenPai · Games & real time

  4. 0593

    Jev Kitchen

    Inspired by @heystefan_: name a dish or a cocktail, and its ingredients rise out of a pile of stickers. ⚡ Jev judges every search in half a second 🎨 ~1,000 illustrations by FLUX.1 [dev], run locally through ComfyUI 🧠 Claude Opus 5.5 built it all and redrew the illustrations

    @nelsonpklark · Games & real time