For a javascript library for building browser games, the first results are phaserjs/phaser (Phaser is a comprehensive, industry-standard 2D game engine that provides a robust suite of features including a scene graph, physics integration, and asset management, making it a flagship choice for browser-based development), createjs/easeljs (EaselJS is a specialized 2D graphics and scene graph library that provides the core rendering and interaction foundation required for building browser-based games, though it lacks a built-in physics engine) and melonjs/melonjs (melonJS is a comprehensive HTML5 game engine that provides a full suite of 2D rendering, physics, and asset management tools, making it a direct fit for browser-based game development). photonstorm/phaser and pixijs/pixijs round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
We curate open-source GitHub repositories matching “best html5 game engines”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
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, industry-standard 2D game engine that provides a robust suite of features including a scene graph, physics integration, and asset management, making it a flagship choice for browser-based development.
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 specialized 2D graphics and scene graph library that provides the core rendering and interaction foundation required for building browser-based games, though it lacks a built-in physics engine.
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 comprehensive HTML5 game engine that provides a full suite of 2D rendering, physics, and asset management tools, making it a direct fit for browser-based game development.
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 comprehensive, industry-standard 2D game engine that provides the full suite of required features, including a robust scene graph, asset management, and high-performance WebGL rendering for browser-based games.
PixiJS is a high-performance 2D rendering engine designed for building interactive visual content and browser-based games. It provides a hardware-accelerated graphics library that leverages WebGL and WebGPU backends to execute complex scenes, utilizing a hierarchical scene graph to manage object transformations and display order. The project distinguishes itself through a sophisticated architecture that decouples rendering logic from hardware APIs, allowing for consistent performance across diverse browser environments. It features a robust, asynchronous asset pipeline that handles loading, c
PixiJS is a high-performance 2D rendering engine that provides the core graphics and scene management capabilities required for browser-based games, though it functions as a specialized rendering library rather than a full-featured game engine with built-in physics.
Orillusion is a WebGPU 3D rendering engine designed for high-fidelity scenes and visual effects in the browser. It functions as a GPU compute framework for parallel mathematical operations and a physically-based rendering graphics pipeline for realistic materials and surfaces. The system also includes a web-based 3D animation toolkit for driving skeletal animations and interpolating vertex positions. The engine is distinguished by its use of an entity component system for scene logic and a macro-based shader generation system that creates multiple shader variants. It optimizes performance thr
Orillusion is a high-performance WebGPU-based 3D engine that provides the core architecture for browser-based games, including an entity-component system and physics-related collision detection, though it is primarily focused on 3D rendering rather than 2D-specific workflows.
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 a dedicated 2D HTML5 game engine that provides essential features like scene graph architecture, asset management, and physics integration, making it a solid choice for browser-based game development.
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 comprehensive, TypeScript-based engine designed for high-performance 3D web gaming that includes a scene graph, asset management, and physics integration, making it a powerful choice for browser-based development.
Superpowers is a browser-based game development engine and collaborative integrated development environment. It provides a unified workspace for building two-dimensional interactive experiences, allowing users to manage code, assets, and scene logic directly within a web browser without the need for local compilers or heavy desktop software. The platform distinguishes itself through a modular, component-based scripting architecture where game objects are defined by attached logic and visual properties. It supports real-time synchronization, enabling multiple developers to work on the same pro
Superpowers is a browser-based game engine that provides a complete environment for 2D development, scene management, and asset handling, making it a direct fit for browser-based game creation.
WebGAL is a web-native development environment designed for the creation and publication of interactive narrative games. It provides a browser-based platform that enables users to build visual novels featuring branching dialogue and multimedia assets without requiring manual coding. The platform distinguishes itself through a visual editor that utilizes node-based logic definition to manage narrative flow and scene transitions. It includes specialized tooling for the configuration and integration of animated character models, allowing for the direct implementation of interactive character seq
WebGAL is a specialized game engine tailored for visual novels and interactive narrative games, providing a browser-based visual editor and engine that supports TypeScript and web-native deployment.
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
This is a comprehensive, browser-based 3D game engine that provides the requested scene graph, physics, and asset management features, though it is primarily focused on 3D rather than the 2D-specific workflows often associated with HTML5 game development.
Turbulenz Engine is a cross-platform game engine and HTML5 framework designed for rendering graphics and simulating physics across desktop, mobile, and web environments. It functions as a WebGL graphics engine and a web-based physics engine, providing the necessary tools to build 2D and 3D games that run within browsers. The project includes a real-time multiplayer framework that synchronizes game states and player interactions between multiple users via server-side communication. This allows for the coordination of both real-time and asynchronous turn-based actions to maintain a consistent s
Turbulenz is a comprehensive HTML5 and TypeScript-based game engine that provides the core rendering, physics, and asset management capabilities required for browser-based game development.
JavaScript Game Engine
Crafty is a lightweight JavaScript game engine that provides a scene graph architecture and built-in components for 2D rendering and physics, making it a suitable framework for browser-based game development.
Cocos2d for Web Browsers. Built using JavaScript.
This is a dedicated HTML5 game engine that provides a scene graph, asset management, and 2D rendering capabilities specifically designed for browser-based development.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| phaserjs/phaser | 39.8K | JavaScript | MIT | |
| createjs/easeljs | 8.2K | JavaScript | MIT | |
| melonjs/melonjs |
| 6.3K |
| JavaScript |
| MIT |
| photonstorm/phaser | 39.8K | JavaScript | MIT |
| pixijs/pixijs | 47.4K | TypeScript | MIT |
| orillusion/orillusion | 5.2K | TypeScript | MIT |
| hiloteam/hilo | 5.9K | JavaScript | MIT |
| babylonjs/babylon.js | 25.7K | TypeScript | Apache-2.0 |
| obra/superpowers | 229.5K | Shell | MIT |
| openwebgal/webgal | 3.9K | TypeScript | MPL-2.0 |