Phaser
Fast, free HTML5 game framework for building 2D games for desktop and mobile.
Game development npm MIT
Used in agent projects
517
4.1% of 12,697 public repos built with AI coding agents
Rank in game development
#1 of 3
by use in those projects
Downloads
493K
npm, last 7 days, phaser
GitHub stars
40.4K
last push Aug 21, 2026
How Phaser is used
Phaser is a dependency in 517 of the 12,697 public GitHub projects set up for AI coding agents that we scanned (4.1%), #1 of 3 in game development. The most used alternative there is phaser3-rex-plugins. Projects that use it most often also use webpack (27.1%), webpack CLI (23.0%), webpack-dev-server (20.9%).
Often used with Phaser
| webpack | 27.1% of Phaser projects · 13.5× more than average |
|---|---|
| webpack CLI | 23.0% of Phaser projects · 14.5× more than average |
| webpack-dev-server | 20.9% of Phaser projects · 18.0× more than average |
| Vite | 42.4% of Phaser projects · 1.9× more than average |
| html-webpack-plugin | 19.3% of Phaser projects · 18.1× more than average |
| Babel (JavaScript) | 17.4% of Phaser projects · 4.6× more than average |
| Babel Loader | 17.0% of Phaser projects · 15.0× more than average |
| TypeScript | 58.4% of Phaser projects |
By coding agent
| Claude Code | 1.2% of projects set up for it |
|---|---|
| GitHub Copilot | 0.5% of projects set up for it |
| Cursor | 0.4% of projects set up for it |
Share of public repos configured for each agent that list Phaser as a dependency.
Install
| Package | npm install phaser |
|---|---|
| Main stacks | TypeScript / JavaScript (471), Next.js (45), PHP (1) |
| Example projects | sunflower-land/sunflower-land, ultrabolido/PrinceJS, CommandLineHeroes/hero-engine, bebechien/AIventure, Aristona/react-phaser-three-game |
Alternatives to Phaser
| Tool | Used in agent projects | Downloads / wk | GitHub stars | License |
|---|---|---|---|---|
| phaser3-rex-plugins npm Collection of community plugins extending Phaser 3 game engine capabilities. |
26 (0.2%) | 15.8K | 1,332 | MIT |
| Matter.js npm 2D rigid body physics engine for web and game development. |
24 (0.2%) | 307K | 18.4K | MIT |