7 open-source HTML5, WebGL & WebGPU game engines tools you can inspect, compile, and extend with zero vendor lock-in. Top community picks right now: Three.js, Phaser and Defold.
GameDevDB indexes 7 verified hTML5, WebGL & WebGPU game engines filtered for Open Source, led by Three.js, Phaser, Defold. Filtered strictly to open-source tools with inspectable public repositories, permissive or DCC-safe OSI licenses, and zero proprietary seat lock-in. When auditing hTML5, WebGL & WebGPU game engines under Open Source constraints, prioritize initial bundle weight: Verify Brotli/gzipped engine runtime size stays under Poki/Discord 2-5 MB fast-boot guidelines.
| Tool | Pricing | AI Mode | Engines | Outputs |
|---|---|---|---|---|
Three.js | Free (MIT) | Standard | Web / JS | .glb/.gltf, HLSL/GLSL Shader |
Phaser | Free (MIT) | Standard | Web / JS | .png Sprite Sheet, HLSL/GLSL Shader |
Defold | Free ($0 / 0% royalty) | Standard | Defold, Web / JS | .glb/.gltf, .png Sprite Sheet |
Twine | Free (GPL-3.0) | Standard | Web / JS, Godot, Unity | C#/GDScript/C++ |
GDevelop | Free (MIT core) | Standard | Web / JS, Any Engine | .png Sprite Sheet, .glb/.gltf |
PlayCanvas | Free MIT Engine / $15/mo Editor | Standard | Web / JS | .glb/.gltf, HLSL/GLSL Shader |
Babylon.js | Free (Apache-2.0) | Standard | Web / JS | .glb/.gltf, HLSL/GLSL Shader |
Ubiquitous MIT 3D WebGL2 and WebGPU JavaScript library
Fast MIT TypeScript and JavaScript 2D HTML5 game framework
Ultra-compact Lua 2D and 3D engine for web, mobile, Steam
GPL visual hypertext story mapper & interactive fiction tool
Open-source event-driven 2D and lightweight 3D game engine
Open-source WebGL2/WebGPU 3D engine and cloud scene editor
Apache-2.0 TypeScript 3D WebGPU engine with Havok physics
Open Source Pipeline Criteria
When shipping commercially with open-source tools, verify whether each component is a standalone asset editor (where GPL/MPL outputs are 100% yours) or an embedded runtime SDK (where MIT, Apache-2.0, BSD, or zlib keeps your game binary proprietary and console-NDA compliant).
On web game portals (Poki, CrazyGames, itch.io) and embedded social platforms (Discord Activities, YouTube Playables, Telegram Mini Apps), every extra second of initial loading screen costs 10% to 20% of incoming players. Browser-native JavaScript/TypeScript engines and ultra-compact WASM runtimes crush heavyweight desktop-engine web exports on cold-start speed, mobile thermal draw, and WebAudio activation reliability.
For 2D arcade, roguelike, survivor, and card games, Phaser (MIT TypeScript/JS) and Construct 3 (visual event sheets + JS) start rendering interactive title screens in under one second while handling WebAudio browser autoplay policies, touch/gamepad inputs, and Retina DPI scaling automatically. Defold bridges Lua productivity with a tiny ~1.5 MB WASM core that hits 60 FPS even on budget Android phones.
For 3D web worlds, Three.js offers unmatched ecosystem breadth (including React Three Fiber, drei, and Rapier WASM physics), PlayCanvas adds a real-time multiplayer browser visual editor with BasisU/Draco compression built in, and Babylon.js provides a complete TypeScript 3D engine with Node Material shaders, Havok WASM physics, and native WebGPU compute support.
Structure browser builds into a tiny <2 MB boot bundle containing only the title screen and Level 1 assets while streaming subsequent music tracks and world chunks asynchronously in the background: and always resume the browser AudioContext inside your very first pointer-down or key-down event handler.
| Criterion | What to Check | Studio Recommendation |
|---|---|---|
| Runtime Linking vs Standalone Output | Determine whether the tool links code into your game executable or only exports art/level files. | Require MIT/Apache/BSD/zlib/MPL-2.0 for linked runtime code; GPL is 100% safe for standalone DCC editors. |
| Console NDA Compatibility | Verify permissive licensing without copyleft source-disclosure requirements that conflict with Switch/PS5/Xbox SDK NDAs. | MIT-licensed engines (Godot, Bevy) and runtimes (ink, Steam Audio) pass console legal review cleanly. |
| Initial Bundle Weight | Verify Brotli/gzipped engine runtime size stays under Poki/Discord 2-5 MB fast-boot guidelines. | Use Phaser, Three.js (tree-shaken), PlayCanvas, or Defold; lazy-load level2+ audio and textures. |
| GPU Texture & Mesh Compression | Check native KTX2 / Basis Universal texture transcoding and Draco / Meshopt glTF geometry compression. | Compress 3D web assets with gltf-transform (Meshopt + UASTC/ETC1S) to slash mobile VRAM crashes. |