Now in early access

The game engine built for AI-assisted development.

Modoki is a web-first 2D/3D engine where an AI agent and a visual editor build the game together — entities, scenes, logic, assets. One TypeScript codebase ships to iOS, Android, and the web at 120 FPS.

scene.ts
// Spawn an entity with traits — runs on iOS, Android, and web.
const player = world.spawn(
  Transform({ x: 0, y: 0 }),
  Renderable({ sprite: 'player.png' }),
  Input({ keys: ['W', 'A', 'S', 'D'] }),
);

See what Modoki builds.

Live demos running in your browser — the exact same code that ships to iOS and Android. Click any scene to launch it.

Alien Animal — rigged creature with animation clip selector

Alien Animal

A skinned 3D creature with eight skeletal-animation clips — idle, walk, run, attack, die — switchable live. Showcases the rig + clip system.

Space Console — toon-shaded spaceship with particle nebula

Space Console

Toon-shaded (NPR) 3D with a live level-of-detail slider, particle systems, and multi-scene loading driven by a camera manager.

Tropical Island — imported 3D model with 2D sprites and UI

Tropical Island

All three render layers at once — an imported 3D island (Three.js), 2D sprites + particles (PixiJS), and ECS-driven DOM UI — composited in a single scene.

Chess vs AI — 2D board with on-device LLM opponent AI runs on device

Chess vs AI

A 2D chess board whose opponent is a language model running entirely on the device — it plays and trash-talks. The board is fully playable here; the on-device AI needs the mobile build.

LLM Test — on-device Gemma chat UI AI runs on device

On-device LLM

A chat UI backed by Gemma running locally via LiteRT — no server, no API key. The interface is built from ECS UI traits; inference runs in the mobile build.

Sling — the minimal starter template Starter

Starter template

The blank project you get from File → New Project — one sprite, a little UI, nothing else. Where every Modoki game begins.

Demos load a few MB of WebGL assets on first open. Best viewed on a desktop browser.

Built for the way the web works today.

A modern game engine that treats TypeScript as a first-class language, not a scripting afterthought.

One codebase, every platform

Native iOS and Android shells via Capacitor. Identical TypeScript runs in the browser. Ship once.

Visual scene editor

Dockable Hierarchy, Inspector, SceneView, and Assets panels. Drag-and-drop entity placement and prefabs.

ECS architecture

Pure data-oriented entity-component-system via koota. 15+ built-in traits, auto-generated inspector UI.

Agent-native & deterministic

A headless harness + tick-stamped event journal let an AI agent author and verify game logic by data, not screenshots.

2D and 3D, composable

PixiJS v8 powers high-throughput 2D. Three.js handles 3D. React DOM handles menus. Mix freely in one scene.

Monetization, built in

AppLovin MAX, Adjust, Firebase Analytics, Crashlytics — pre-integrated as first-class Capacitor plugins.

Learn the editor.

Guides for each part of the Modoki editor — illustrated with screenshots from the real app. Click any guide to read it.

120fps
Sustained on mid-range Android
1.1MB
Production web bundle
<200ms
Hot reload latency
3
Render layers: 3D · 2D · UI

Modern foundations, no surprises.

Tools you already know, composed for real-time game work.

UIReact 19
LanguageTypeScript 5.9
BuildVite 8
2DPixiJS v8
3DThree.js r184
ECSkoota
MobileCapacitor 8
StateZustand

Ready to ship your first game?

Modoki is in early access. Drop your email for installation instructions and release updates.