Skip to content

jevarena

Spectator demo where two independent Jev agents play Snake side by side by clicking indexed direction buttons in separate iframe browsers.

ProjectprototypeMIT

Overview

JevArena is a public spectator demo by Raihan Khan in which two independent TypeSafe Jev agents play Snake in side-by-side browser panes using only clicks on indexed direction buttons. Each pane is a separate same-origin iframe with its own game loop, snake, food seed, buttons, score and crash state. The iframe streams a structured board snapshot to the parent page, which sends it to a server-only step route; Jev receives the head, body, food, score, current direction, tick, recent actions and only the legal, safe direction buttons as indexed targets, and the chosen target is clicked in that specific iframe.

There is no typing and no text model, only one server-side TypeSafe key, and live operation and direction probabilities are shown with an avatar flashing over the clicked control. The author explains choosing iframe browsing contexts over Playwright Chromium for the public deployment because persistent browsers and per-viewer streams would be heavier and less reliable, while keeping the browser-agent contract of live state, indexed targets and real clicks. It is a standalone Next.js image ready for Railway and MIT licensed.

What the decision model decides

TypeQuestionAnswers
ChoiceWhich legal, safe direction button should be clicked next?—

How it works

  1. Each iframe streams a board snapshot
  2. Server asks Jev to choose among indexed safe direction buttons
  3. Selected button clicked in that iframe
  4. Probabilities and actions shown to spectators

Strengths

  • Click-only, no text model
  • Lightweight deployment without server-side browsers
  • Visible per-step probabilities

Caveats

  • Spectator demo, not an evaluation
  • Only safe moves offered, which simplifies the task

At a glance

Type
Project
Status
prototype
Language
TypeScript
Runtime
Next.js
Has code
yes
License
MIT

Use cases and integrations

How curated lists describe it

Frequently asked questions

How do the agents control the game?

By clicking indexed direction buttons in their own iframe browser.

Is a text model used?

No, it is click-only with one TypeSafe key.

Why not Playwright?

Persistent browsers per viewer were heavier and less reliable for a public demo.

Related projects

  • Selenium bot that plays 2048.org by fusing expectimax search with a Jev Choice over legal moves on every turn.

    ProjectprototypePython
  • Jev plays a browser table-tennis game in real time, choosing serve direction, contact angle and pace from structured telemetry.

    ProjectprototypeJavaScript
  • Agent where Jev plays a real online 2048 website through Playwright with one API call per move and no text-generating model.

    ServiceprototypePython
  • Prebuilt browser, computer-use, robotics and game agents whose actions come from Jev, Laya or Cua-S1, with a scaffold for new agents.

    ProjectbetaPython
  • Source for browser chess and Chess960 where code computes each legal move's facts and Jev picks one per turn as a typed Choice.

    ProjectproductionTypeScript
  • Browser 1v1 sniper arena where Jev reads match state about 9 times a second and chooses movement, aim, ADS, firing and jumping.

    ServicebetaTypeScript