melonJS
melonJS 2 is an open-source, lightweight HTML5 game engine (MIT licensed, actively maintained by AltByte in Singapore) tailored for independent game developers, rapid prototyping, and web game deployment. Clocking in at around 250 KB minzipped with zero external runtime dependencies, melonJS provides a complete, tree-shakeable game development suite that bypasses complex build chains.
Its primary engineering strength is a unified renderer abstraction paired with an intuitive Canvas2D-inspired API. The engine defaults to an `AUTO` graphics pipeline that attempts to acquire high-performance WebGPU contexts first, seamlessly falling back to WebGL 2, and ultimately to Canvas2D on legacy devices with identical visual outputs and CSS-style blend modes. For world design, melonJS treats Tiled as a first-class citizen (supporting orthogonal, isometric, and hexagonal maps with GPU quad-batched layer rendering and native Aseprite animation parsing), while also accommodating 3D glTF/GLB scenes, SAT polygon physics collision, and 3D spatial Web Audio.
Developers can bootstrap games in minutes using standard ES modules and classes. Teams evaluating melonJS should consider its functional domain: while extraordinarily performant for retro 2D platformers, isometric RPGs, and lightweight 2.5D games, it is not designed to rival heavy 3D rendering engines like Three.js or Babylon.js for AAA photorealistic rendering or complex skeletal ragdoll physics.
Features
Why choose it
Trade-offs
Maintenance check
- Last commit
- 2026-11-11
- Commits, last 90 days
- 100+
- Releases, last 90 days
- 16
- Latest release
- 20.13.0 (2026-11-06)
- Open issues
- 15
- Recent issues with at least one comment
- 0/8
Oldest week on the left; the latest four weeks are orange. Source: GitHub commit activity.
Status rule: archived on GitHub = Archived; last commit within 90 days = Active; 91 to 365 days = Slowing; older = Stale. All figures come from the GitHub API on the date shown.
Most discussed open issues
- #1526 [Feature request] Add support for Y-based Z sorting in batch rendering2 comments · 2026-06-30
- #1404 GPU-instanced particle rendering2 comments · 2026-04-19
- #1510 Types: reconcile the 2D/3D position vector split across Renderable and the shape chain1 comments · 2026-06-21
- #1383 Add textured ribbon mode to Trail renderable1 comments · 2026-04-14
- #1846 [Feature request] 3D physics adapters, and @melonjs/rapier3d-adapter0 comments · 2026-11-08
Issue titles are quoted from GitHub. Open the link to check whether a problem still applies to the version you use.
Quick start
Use cases
Alternatives
Comments
No comments yet. Be the first!