For a JavaScript engine for browser games, the strongest matches are babylonjs/babylon.js (Babylon), phaserjs/phaser (Phaser is a comprehensive 2D game engine built with) and hiloteam/hilo (Hilo is an HTML5 game engine with WebGL rendering). playcanvas/engine and goodboydigital/pixi.js round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
High-performance frameworks and libraries for building interactive 2D and 3D browser-based games using WebGL.
Babylon.js is a JavaScript game engine and real-time graphics renderer designed for creating interactive three-dimensional visuals and applications. It functions as a web-based 3D framework and WebGL engine that enables the deployment of high-performance 3D content across various web platforms and devices. The project provides tools for web-based 3D game development, real-time graphics rendering, and the creation of browser-based interactive visualizations. It also supports the development of WebXR virtual and augmented reality experiences using standard web technologies. The framework cover
Babylon.js is a full-featured JavaScript/TypeScript game engine and WebGL renderer purpose-built for browser-based 3D games—it provides scene graphs, asset loading, input handling, built-in physics and audio, and cross-platform support, perfectly matching this search for a JavaScript WebGL browser game engine.
Phaser is a comprehensive 2D game engine designed for building high-performance, interactive content that runs directly in web browsers. At its core, the engine utilizes a fixed-timestep simulation loop that decouples game logic from variable browser frame rates, ensuring consistent behavior across diverse hardware. It provides a robust framework for managing asset loading, physics, input, and audio, enabling the creation of complex, responsive visual experiences for both desktop and mobile devices. The engine distinguishes itself through a high-performance graphics pipeline that automaticall
Phaser is a comprehensive 2D game engine built with JavaScript and WebGL that runs in the browser, offering scene management, asset loading, built-in physics, audio, and input handling—exactly what you need for creating browser-based games.
Hilo is an HTML5 game engine for building 2D games that run across browsers and devices. It renders graphics through Canvas, DOM, or WebGL backends, automatically selecting the best option for the target environment. The engine provides a complete game development solution with sprite, skeletal, and particle animation, along with a texture atlas system for efficient image loading and rendering. The framework distinguishes itself through its integration of the DragonBones skeletal animation engine, which drives bone-based character movement without frame-by-frame sprites, and its Chipmunk phys
Hilo is an HTML5 game engine with WebGL rendering, scene management, asset loading, built-in Chipmunk physics, audio, and input handling — a complete match for building browser-based 2D games with JavaScript.
This project is a WebGL 3D game engine and comprehensive suite of tools for rendering high-performance 3D graphics and interactive scenes in the browser using WebGL and WebGPU. It provides a dedicated WebXR framework for building augmented and virtual reality experiences that run directly in a web browser. The engine includes a specialized Gaussian splatting renderer for displaying 3D point-cloud data to create photorealistic environmental captures. It utilizes a glTF asset pipeline to load and stream compressed 3D models and textures for efficient asset delivery. The system covers real-time
PlayCanvas is a full-featured WebGL 3D game engine with a JavaScript API, component-based scene graphs, asset streaming, built-in rigid body physics, spatial audio, and input handling, covering all the key features you need for creating browser-based games.
Pixi.js is a high-performance 2D graphics engine used to render interactive animations, sprites, and visual effects in web browsers. It functions as a WebGL 2D rendering engine and HTML5 graphics library designed to produce high-performance two-dimensional visuals. The project operates as a 2D sprite framework and a web-based visual effects engine, providing tools to apply filters, blend modes, and masks to real-time graphics. It also serves as an interactive web canvas API for handling multi-touch and mouse input to build responsive graphical user interfaces. The framework covers a broad se
PixiJS is a high-performance 2D WebGL rendering engine for the browser with a JavaScript/TypeScript API, scene graph, asset loader, and input handling, making it a solid fit for building browser games, though it lacks built-in physics and audio engines.
Phaser is a cross-platform 2D web game engine and framework designed for creating interactive experiences that run on desktop and mobile web browsers. It serves as a GPU-accelerated rendering library and WebGL graphics engine for building two-dimensional games using HTML5 Canvas and WebGL. The engine features a dual-backend rendering pipeline that allows developers to switch between rendering paths. It distinguishes itself through high-performance graphics capabilities, including GPU-driven sprite batching for large-scale image management, a dynamic lighting system with self-shadows, and the
Phaser is a fully-featured 2D WebGL game engine for browsers, offering a JavaScript API, scene graph management, asset loading, built-in physics, audio, and input handling across desktop and mobile — exactly the kind of browser game engine this search seeks.
melonJS is a lightweight HTML5 game engine for building 2D games in the browser using JavaScript. It provides a complete framework for sprite animation, tilemap loading, physics simulation, input handling, and audio playback, with a unified rendering system that automatically switches between WebGL and Canvas2D backends without code changes. The engine distinguishes itself through several integrated capabilities. It features a per-sprite shader pipeline for custom fragment shader effects, a SAT-based collision engine with swappable physics adapters (including built-in SAT, Matter.js, and Plan
melonJS is a lightweight HTML5 game engine that provides WebGL rendering, physics, audio, input handling, and asset management for building 2D games in the browser—exactly matching what you're looking for.
Cocos2d for Web Browsers. Built using JavaScript.
Cocos2d-html5 is a full-featured JavaScript game engine designed for browser-based 2D games, with a scene graph, asset management, input handling, and WebGL support, fitting the request for a WebGL browser game engine.
planck.js is a 2D rigid body physics engine for JavaScript and HTML5, based on Box2D. It provides a framework for simulating physical interactions and calculating the motion of solid objects within a two-dimensional virtual environment. The engine is designed for cross-platform web gaming, enabling the implementation of rigid body dynamics across different web browsers and devices. The library manages simulation through a constraint-based physics solver and rigid body state management. It utilizes iterative impulse resolution, semi-implicit Euler integration, and dynamic AABB tree partitioni
Planck.js is a 2D rigid body physics engine for JavaScript and HTML5, not a full game engine—it lacks WebGL rendering, scene graph management, asset loading, audio, and input handling, so it is a physics building block for a game engine rather than the complete browser game engine you are looking for.
EaselJS is a JavaScript library for creating interactive 2D graphics and animations using the HTML5 Canvas element. It functions as a 2D animation framework, a canvas scene graph manager, and an interaction wrapper for detecting and responding to mouse and touch events. The library features a rendering pipeline that utilizes WebGL to increase the drawing performance of bitmap and cached content. It organizes visual elements into a hierarchical display list, allowing nested groups of 2D graphics objects to be transformed and animated as single units. Its capabilities cover the rendering of ve
EaselJS is a WebGL-accelerated 2D graphics and scene graph library for the browser, but it is a rendering component rather than a full game engine—it lacks built-in physics, audio, and asset management, so it is better seen as a building block for browser games rather than a complete game engine itself.
PixiJS is a hardware-accelerated 2D rendering engine and HTML5 canvas library. It functions as a web-based graphics engine that utilizes WebGL to draw interactive digital content, shapes, text, and images in the browser. The engine provides a specialized pipeline for high-performance 2D graphics, featuring a scene-graph hierarchy for organizing visual objects and a system for dynamic texture management. It includes capabilities for applying visual effects through masks, filters, and blend modes. The project covers broad functional areas including digital asset loading, user input processing
PixiJS is a hardware-accelerated 2D WebGL rendering library with scene graph and asset loading, but it lacks built-in physics and audio engines, making it a foundational building block rather than a full game engine.
OpenSC2K is an open-source JavaScript city builder engine designed as a recreation of SimCity 2000. It functions as a web-based simulation that uses the Phaser 3 framework to implement game loops and entity management. The project utilizes WebGL and Canvas rendering to visualize large-scale urban environments. It includes a coordinate-based camera system that enables panning and zooming across the reconstructed game world. The engine incorporates a data pipeline to parse legacy city files and graphics assets, allowing it to reconstruct and display urban layouts within a modern web browser.
OpenSC2K is a specific recreation of SimCity 2000 built on Phaser 3, not a general-purpose game engine—it lacks a reusable JavaScript/TypeScript API, built-in physics, audio engine, and asset management for creating new games, so it does not match the visitor's intent to create browser-based games from scratch.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| babylonjs/babylon.js | 25.7K | TypeScript | Apache-2.0 | |
| phaserjs/phaser | 39.8K | JavaScript | MIT | |
| hiloteam/hilo | 5.9K | JavaScript | MIT | |
| playcanvas/engine | 16.1K | JavaScript | MIT | |
| goodboydigital/pixi.js | 47.4K | TypeScript | MIT | |
| photonstorm/phaser | 39.8K | JavaScript | MIT | |
| melonjs/melonjs | 6.3K | JavaScript | MIT | |
| cocos2d/cocos2d-html5 | 3.2K | JavaScript | — | |
| shakiba/planck.js | 5.3K | TypeScript | MIT | |
| createjs/easeljs | 8.2K | JavaScript | MIT |