Best open-source HTML5, WebGL & WebGPU game engines

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.

Open Source Stack Summary

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.

ToolPricingAI ModeEnginesOutputs
Three.js icon
Three.js
Free (MIT)StandardWeb / JS.glb/.gltf, HLSL/GLSL Shader
Phaser icon
Phaser
Free (MIT)StandardWeb / JS.png Sprite Sheet, HLSL/GLSL Shader
Defold icon
Defold
Free ($0 / 0% royalty)StandardDefold, Web / JS.glb/.gltf, .png Sprite Sheet
Twine icon
Twine
Free (GPL-3.0)StandardWeb / JS, Godot, UnityC#/GDScript/C++
GDevelop icon
GDevelop
Free (MIT core)StandardWeb / JS, Any Engine.png Sprite Sheet, .glb/.gltf
PlayCanvas icon
PlayCanvas
Free MIT Engine / $15/mo EditorStandardWeb / JS.glb/.gltf, HLSL/GLSL Shader
Babylon.js icon
Babylon.js
Free (Apache-2.0)StandardWeb / JS.glb/.gltf, HLSL/GLSL Shader
  1. 1
    Three.js icon
    Hot

    Three.js

    Ubiquitous MIT 3D WebGL2 and WebGPU JavaScript library

    265Free (MIT)Game Engines
    StandardWeb / JS
  2. 2
    Phaser icon
    Hot

    Phaser

    Fast MIT TypeScript and JavaScript 2D HTML5 game framework

    209Free (MIT)Game Engines
    StandardWeb / JS
  3. 3
    Defold icon
    Hot

    Defold

    Ultra-compact Lua 2D and 3D engine for web, mobile, Steam

    176Free ($0 / 0% royalty)Game Engines
    StandardDefoldWeb / JS
  4. 4
    Twine icon
    Hot

    Twine

    GPL visual hypertext story mapper & interactive fiction tool

    164Free (GPL-3.0)Narrative & NPC AI
    StandardWeb / JSGodotUnity
  5. 5
    GDevelop icon
    Hot

    GDevelop

    Open-source event-driven 2D and lightweight 3D game engine

    158Free (MIT core)Game Engines
    StandardWeb / JSAny Engine
  6. 6
    PlayCanvas icon
    Hot

    PlayCanvas

    Open-source WebGL2/WebGPU 3D engine and cloud scene editor

    149Free MIT Engine / $15/mo EditorGame Engines
    StandardWeb / JS
  7. 7
    Babylon.js icon

    Babylon.js

    Apache-2.0 TypeScript 3D WebGPU engine with Havok physics

    142Free (Apache-2.0)Game Engines
    StandardWeb / JS

Open Source Pipeline Criteria

Evaluating HTML5, WebGL & WebGPU game engines (Open Source)

Selecting HTML5, WebGL & WebGPU game engines (Open Source)

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.

2D Sprite Engines vs 3D WebGL2/WebGPU Stacks

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.

Progressive Asset Streaming and Audio Policies

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.

Studio Decision Matrix

CriterionWhat to CheckStudio Recommendation
Runtime Linking vs Standalone OutputDetermine 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 CompatibilityVerify 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 WeightVerify 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 CompressionCheck 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.

Best open-source HTML5, WebGL & WebGPU game engines: FAQ

Does creating models in GPL-licensed Blender or Krita force my game to be open source?
No. The GNU General Public License covers the editor application code itself, not the creative files (.blend, .glb, .fbx, .png, .kra) you produce with it. Every mesh, texture, animation, and map exported from Blender, Krita, Tiled, or TrenchBroom can be sold in closed-source commercial games.
What license obligation do MIT and zlib game engines like Godot and raylib require?
MIT, Apache-2.0, BSD, and zlib licenses only require including the project's copyright and permission notice inside your game's About/Credits menu or bundled `LICENSE.txt` file. You owe zero royalties and never have to release your game's source code.
Can HTML5 JavaScript/TypeScript games succeed commercially on Steam?
Absolutely. Breakout indie hits including *Vampire Survivors* (originally built in Phaser before its later engine port) and *CrossCode* shipped on Steam wrapped in desktop Chromium/Electron containers with `steamworks.js` handling Steam Cloud saves, overlays, and achievements.
Should I choose Three.js, Babylon.js, or PlayCanvas for a 3D browser game?
Choose Three.js if your team loves modular TypeScript/React code and custom pipelines; choose PlayCanvas if artists and level designers want a visual cloud scene editor with tiny export sizes; choose Babylon.js if you want built-in Havok physics, GUI, and WebGPU compute out of the box.