qmetrics.net

LittleJS

Compact HTML5 JavaScript 2D and 3D game engine

LittleJS screenshot

LittleJS is an open HTML5 game engine with 2D and 3D rendering, physics, audio, and input. It has no runtime dependencies and runs in modern browsers via script tag or npm.

Overview

LittleJS is a small JavaScript game engine for browser games. It covers 2D and 3D graphics on one canvas, arcade or Box2D-style physics, particles, sound, tile maps, UI widgets, tweens, and camera helpers, aimed at fast iteration with readable code and many examples.

You can start from a single HTML file and one script, use npm with TypeScript types, or scaffold with Vite for dev reload and tree-shaken release builds. Debug builds include asserts, an overlay, and built-in 2D and 3D level editors; release builds strip that overhead.

The engine targets all modern web browsers and mobile devices. Optional plugins add Box2D, Jolt, Three.js rendering, pathfinding, and a JS13k size-limited branch. An example browser runs editable samples beside live code.

LittleJS is MIT licensed and distributed on npm as littlejsengine as well as downloadable build artifacts.

Key features

  • Combined 2D and 3D WebGL rendering
  • Particles, audio, and input handling
  • Tilemap collision and arcade physics
  • Built-in UI, tweens, and scene flow
  • npm, ESM, and single-script-tag usage
  • In-game 2D and 3D level editors
  • TypeScript definitions included
  • 100+ examples and starter game projects

Use cases

  • Browser arcade and puzzle games
  • JS13k and small downloadable web games
  • 3D demos with built-in renderer or Three.js plugin
  • Teaching game loops with minimal setup
  • Mobile-friendly canvas games with touch controls

Tags

Similar software

Godot

Cross-platform 2D and 3D game engine

Godot Engine lets creators build 2D and 3D games from one editor and export to desktop, mobile, web, and console targets through publishers.

  • Unified 2D and 3D editor
  • Node and scene workflow
  • GDScript, C#, and C++ scripting
C++Web, Linux, macOS, WindowsDetails →
★ 121.4k⟳ todayMIT
Open Source Alternative to:Unity

Bevy

Rust game engine with ECS architecture

Bevy Engine is a data-driven Rust game engine for 2D and 3D work. It emphasizes modularity, parallel execution, and fast iteration while the project remains under active development.

  • Entity-component-system core
  • 2D and 3D renderers
  • Render graph pipelines
RustLinux, macOS, Windows, AndroidDetails →
★ 50.2k⟳ todayApache-2.0 · open core
Open Source Alternative to:Unity

PixiJS

HTML5 WebGL and WebGPU 2D graphics library

PixiJS is a browser library for fast 2D rendering with WebGPU or WebGL. It targets games, ads, apps, and interactive sites.

  • WebGPU and WebGL 2D rendering
  • Spritesheets and asset loader
  • Filters and custom shaders
TypeScriptWeb, CLIDetails →
★ 49k⟳ 4 days agoMIT

Phaser

HTML5 2D game framework with Canvas and WebGL

Phaser is a JavaScript and TypeScript framework for browser games on desktop and mobile, with scene APIs, physics, animations, and loaders. Games can target embed platforms or wrap for native stores via third-party tooling

  • Canvas and WebGL rendering
  • Scene-based game structure
  • Arcade and Matter.js physics
JavaScriptWebDetails →
★ 40.9k⟳ todayMIT

raylib

Minimal C library for games and graphical programs

raylib is a C99 graphics and game programming library with no mandatory external dependencies. It suits prototypes, tools, education, and embedded targets across desktop, mobile, and web.

  • Bundled dependencies in one library
  • OpenGL and software render paths
  • 2D, 3D, audio, and input modules
CLinux, macOS, Windows, AndroidDetails →
★ 35.9k⟳ yesterdayZlib

GDevelop

Cross-platform no-code game engine for 2D and 3D

GDevelop is no-code game development software for building 2D, 3D, and multiplayer games for mobile, desktop, and the web. It uses an event-based system, modular behaviors, and optional AI assistance.

  • No-code event-based game logic
  • 2D and 3D WebGL rendering
  • Modular attachable behaviors
JavaScriptWeb, Linux, macOS, WindowsDetails →
★ 29.6k⟳ todayMIT · open core
Game DevelopmentDesktop/CLI app
Open Source Alternative to:Unity