JS Game Dev
A curated catalogue of JavaScript game engines, libraries, and frameworks.
Excalibur.js
2D EngineA TypeScript-first 2D game engine with a clean, structured API. Sits nicely between simple libraries and heavy frameworks for medium-sized projects.
Best For: Medium-sized 2D Games, TypeScript projects
Kaplay
2D EngineA friendly game library and spiritual successor to Kaboom.js. Simplifies game creation with a component-based approach, letting you build games with minimal boilerplate.
Best For: Game Jams, Learning, Arcade Games
LittleJS
2D EngineAn ultra-lightweight game engine under 10KB. Despite its tiny size, it provides rendering, physics, audio, and particle effects with zero dependencies.
Best For: Size-constrained jams (js13k), Mobile Web
Phaser
2D EngineThe industry-standard 2D game framework for the web. A complete package handling rendering, physics, input, audio, and animations with excellent documentation and community support.
Best For: Commercial 2D games, RPGs, Platformers
PixiJS
2D EngineA high-performance 2D rendering engine focused on drawing graphics efficiently. Not a full game engine - you build your own game loop and systems on top.
Best For: Visual-heavy apps, Custom Engine building
Two.js
2D EngineA 2D drawing library that renders to WebGL, Canvas2D, or SVG with the same API. Great for vector graphics and UI, but not a full game engine.
Best For: Vector games, Puzzles, UI
Babylon.js
3D EngineA fully-featured 3D game engine backed by Microsoft. Comes with built-in physics, audio, collisions, and extensive tooling for a batteries-included experience.
Best For: Complex 3D Games, Enterprise Sims
PlayCanvas
3D EngineA cloud-first game engine with a visual editor similar to Unity. Runs in the browser, allowing teams to collaborate on 3D scenes and code in real-time.
Best For: Teams, Unity-like workflow
React Three Fiber
3D EngineA React renderer for Three.js that lets you build 3D scenes using declarative components. Leverages the React ecosystem for state management and tooling.
Best For: React Developers, UI/3D Hybrids
Three.js
3D EngineThe most popular JavaScript library for 3D graphics on the web. Provides tools to draw 3D scenes but requires you to build your own game logic and physics.
Best For: Showcases, Custom 3D Engines, Experiments
Ammo.js
PhysicsA direct port of the industrial-strength Bullet physics engine. Capable of complex 3D simulations used in AAA-style games, available in both JS and WASM.
Best For: Complex 3D simulations, AAA-style physics
Cannon-es
PhysicsA lightweight 3D physics engine in pure JavaScript. Easier to debug than WASM engines and integrates well with Three.js for simple 3D physics needs.
Best For: Simple 3D physics, Rapid development
Matter.js
PhysicsA comprehensive 2D physics engine handling rigid body collisions and physical forces. Well-documented with many examples for common game physics scenarios.
Best For: 2D Physics puzzles, Angry Birds clones
Planck.js
PhysicsA pure JavaScript port of Box2D, the physics engine behind Angry Birds. Offers highly accurate 2D physics without the complexity of C++ bindings.
Best For: Angry Birds style physics, Precision
Rapier
PhysicsA high-performance physics engine written in Rust, compiled to WebAssembly. Handles both 2D and 3D simulations with thousands of objects efficiently.
Best For: Complex simulations, High object count
bitECS
Logic & AIA high-performance Entity Component System (ECS) library. Organizes game data to maximize CPU cache efficiency, essential for games with thousands of entities.
Best For: Massive RTS, High-entity simulations
boardgame.io
Logic & AIA dedicated engine for turn-based games. Automates state management, move validation, and multiplayer synchronization so you can focus on game rules.
Best For: Card Games, Chess-likes, Strategy
Miniplex
Logic & AIA developer-friendly Entity Component System (ECS) library. Helps organize game logic cleanly and is designed to work smoothly with React and R3F.
Best For: Game Logic Management, React Games
Mistreevous
Logic & AIA library for Behavior Trees, a common method for AI design. Structure complex enemy behaviors (patrol, chase, attack) without messy conditional code.
Best For: Complex NPC/Enemy AI
Yuka
Logic & AIA JavaScript AI library for steering behaviors (flocking, pursuit, evasion) and pathfinding. Engine-agnostic but pairs perfectly with Three.js.
Best For: 3D AI, Flocking, Navigation
Colyseus
MultiplayerThe standard Node.js framework for multiplayer games. Handles game state synchronization, room management, and matchmaking between players seamlessly.
Best For: Real-time Multiplayer, IO games
Howler.js
AudioA robust audio library that simplifies playing sounds across all browsers. Solves common compatibility issues and makes managing sound effects and music easy.
Best For: All web games needing sound
Tone.js
AudioA framework for generating music and audio programmatically. Acts like a Digital Audio Workstation in code, perfect for rhythm games or procedural sound.
Best For: Rhythm games, Procedural Audio
ZzFX
AudioA tiny sound generator that creates retro-style sound effects using code instead of audio files. Generates jumps, lasers, and explosions in bytes.
Best For: Game Jams, Retro SFX
Electron
Tools & UIA framework for building cross-platform desktop applications with JavaScript, HTML, and CSS. Package your game for Windows, macOS, and Linux distribution on Steam or itch.io.
Best For: Steam/Desktop Distribution
GSAP
Tools & UIThe industry standard for programmatic web animation. Handles complex timelines, tweens, and morphing efficiently, far beyond standard CSS animations.
Best For: Cinematic Intros, Complex UI
Lottie
Tools & UIA library that renders Adobe After Effects animations on the web. Display high-quality, complex vector animations without large video files.
Best For: High-fidelity UI animations
Nipple.js
Tools & UIA library for adding virtual on-screen joysticks. Creates touch-screen controls for mobile games, mimicking the feel of physical analog sticks.
Best For: Mobile Game Controls
Tweakpane
Tools & UIA compact UI library for creating debug panels. Add sliders and inputs to tweak game variables like speed, gravity, or colors in real-time.
Best For: Debugging Physics/Speed/Colors
Vite
Tools & UIA modern build tool for development. Provides instant server start, hot module replacement, and optimized production builds for any web project.
Best For: Project Setup, Development
No libraries found for this category.