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.
// 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'] }), );
Live demos running in your browser — the exact same code that ships to iOS and Android. Click any scene to launch it.
A skinned 3D creature with eight skeletal-animation clips — idle, walk, run, attack, die — switchable live. Showcases the rig + clip system.
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.
AI runs on device
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.
AI runs on device
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.
Demos load a few MB of WebGL assets on first open. Best viewed on a desktop browser.
A modern game engine that treats TypeScript as a first-class language, not a scripting afterthought.
Native iOS and Android shells via Capacitor. Identical TypeScript runs in the browser. Ship once.
Dockable Hierarchy, Inspector, SceneView, and Assets panels. Drag-and-drop entity placement and prefabs.
Pure data-oriented entity-component-system via koota. 15+ built-in traits, auto-generated inspector UI.
A headless harness + tick-stamped event journal let an AI agent author and verify game logic by data, not screenshots.
PixiJS v8 powers high-throughput 2D. Three.js handles 3D. React DOM handles menus. Mix freely in one scene.
AppLovin MAX, Adjust, Firebase Analytics, Crashlytics — pre-integrated as first-class Capacitor plugins.
Guides for each part of the Modoki editor — illustrated with screenshots from the real app. Click any guide to read it.
Entities, traits, and the ECS model — live, undoable property editing.
The orbit viewport: translate/rotate/scale gizmos, world/local space, 3D & UI modes.
The asset browser, GUID references, and the material / texture / model inspectors.
Keyframe any trait field — Dopesheet timing, Bezier tangent handles, easing presets, live scrubbing.
Author effects with a live preview — emission, shape, over-life curves, motion, forces.
Ship one TypeScript codebase to iOS, Android, and the web from the Build menu.
Tools you already know, composed for real-time game work.
Modoki is in early access. Drop your email for installation instructions and release updates.