50+ classic arcade games rebuilt in pure HTML5 — each one a single self-contained file, AI-assisted.
LittleJS is a fast, lightweight, and fully open source HTML5 game engine designed for simplicity and performance.
This repo is a library of LittleJS AI experiments:
- playable games generated or iterated with AI help
- starter projects you can fork and remix
- docs and prompts to improve LittleJS + AI workflows
Want to make a game without writing code? Try the LittleJS GPT!
For advanced users, LittleJS also works great with tools like GitHub Copilot, Codex, and Cursor.
LittleJS and everything in this repository is MIT licensed! See LICENSE for details.
- LittleJS Engine — the main LittleJS repository
- Games Folder — example games made with LittleJS AI
- Templates Folder — starting templates and reusable components
- LittleJS GPT AI — use ChatGPT to make games without writing any code
Each game is one self-contained HTML file — no build step, no external assets, no dependencies. To start:
- Copy a file from templates/.
- Edit the JavaScript inside the
<script>tag. - Open the
.htmlin a web browser.
- game.html — minimal scaffold
- boardGame.html — grid-based games (chess, sokoban, match-3)
- menuGame.html — title, pause, options, medals, HUD toolbar
- box2dGame.html — Box2D physics (pool, plinko, pinball)
- textureGame.html — procedural sprite atlases from canvas draw ops
- tweakableGame.html — live-tweak globals via an HTML slider overlay
- uiGame.html — canvas-drawn UI (menus, sliders, dialogs)
Mix in helper scripts to add features: menus.js (DOM menus), soundGenerator.js (procedural SFX), textureGenerator.js (sprite painter), tweakables.js (live value tweaking).
Playable demos you can fork as starting points for your own games.
Did you make a game you think should be included? Send a pull request!