phaser
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
14 of 656 committers (2.1%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.8%) to scientific vocabulary
Keywords
Repository
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Basic Info
- Host: GitHub
- Owner: phaserjs
- License: mit
- Language: JavaScript
- Default Branch: master
- Homepage: https://phaser.io
- Size: 437 MB
Statistics
- Stars: 38,301
- Watchers: 1,192
- Forks: 7,122
- Open Issues: 101
- Releases: 172
Topics
Metadata Files
README.md
Phaser - HTML5 Game Framework

Phaser is a fast, free, and fun open source HTML5 game framework that offers WebGL and Canvas rendering across desktop and mobile web browsers and has been actively developed for over 10 years.
Games can be built for the web, or as YouTube Playables, Discord Activities, Twitch Overlays or compiled to iOS, Android, Steam and native apps using 3rd party tools. You can use JavaScript or TypeScript for development. Phaser supports over 40 different front-end frameworks including React and Vue.
Phaser is commercially developed and maintained by Phaser Studio Inc along with our fantastic open source community. As a result of rapid support, and a developer friendly API, Phaser is currently one of the most starred game frameworks on GitHub.
Interested in learning more? Click the image below to watch our intro video.
Create Phaser Game App
The easiest way to get started quickly with Phaser is our create-phaser-game app. This CLI tool presents an interactive selection of official project templates and demo games. Issue the command, answer some questions and the app will download and configure the right package for you.
bash
npm create @phaserjs/game@latest
npx @phaserjs/create-game@latest
yarn create @phaserjs/game
pnpm create @phaserjs/game@latest
bun create @phaserjs/game@latest
We support all of the following frameworks and bundlers:
| Frameworks | Bundlers | | --------- | ------- | | Vue.js | Vite | | React | Rollup | | Angular | Parcel | | Next.js | Webpack | | SolidJS | ESBuild | | Svelte | Import Map | | Remix | Bun |
Most come in both JavaScript and TypeScript versions.
View the create game app tutorial.
Installing Phaser from NPM
Install via npm:
bash
npm install phaser
Using Phaser from a CDN
Phaser is on jsDelivr which is a "super-fast CDN for developers". Include either of the following in your html:
html
<script src="//cdn.jsdelivr.net/npm/phaser@3.88.2/dist/phaser.js"></script>
<script src="//cdn.jsdelivr.net/npm/phaser@3.88.2/dist/phaser.min.js"></script>
It is also available from Cloudflare's cdnjs:
html
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.2/phaser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/phaser/3.88.2/phaser.min.js"></script>
Phaser TypeScript Definitions
Full TypeScript definitions can be found inside the types folder. They are also referenced in the types entry in package.json, meaning modern editors such as VSCode will detect them automatically.
Depending on your project, you may need to add the following to your tsconfig.json file:
json
"lib": ["es6", "dom", "dom.iterable", "scripthost"],
"typeRoots": ["./node_modules/phaser/types"],
"types": ["Phaser"]
API Documentation
Read our full API Documentation at https://docs.phaser.io/. Use the links at the top of the page to navigate the namespaces, classes, events and Game Objects and also to use the search box.
We maintain documentation for the most recent versions of Phaser on this site.
Getting Started with Phaser
We recommend the following to begin your journey:
- Getting Started with Phaser 3 (useful if you are completely new to Phaser)
- Making your first Phaser 3 Game
- Plus, there are over 700 Phaser tutorials listed on our website.
New tutorials are being published every week, so check our site for more.
Phaser by Example Book
We have published a brand-new free 500 page book on game development with Phaser. Learn by building shoot-em-ups, puzzle games, rogue-likes and more.

Written by long-time prolific Phaser enthusiast Pello Xabier Altadill and Richard Davey, creator of Phaser, it features up-to-date content on building games with Phaser v3.85.
Work through the process of creating a variety of games, allowing you to learn from real-life examples. The games start simple, with an infinite runner game, and then progresses to building a shoot-em-up, a platformer, a puzzle game, a rogue-like, a story game and even 3D and multiplayer games.
It also contains a large section on the core concepts of Phaser, covering the terminology and conventions used by the framework, as well as a comprehensive deep dive into Game Objects.
Register for a free Phaser account to download the book.
Source Code Examples
We have created hundreds of examples and they are all available with full source code and assets.
Browse our brand new Phaser Examples site.
Phaser 3 Plugins
Super community member RexRainbow has been publishing Phaser content for years, compiling an impressive catalogue of plugins that all Phaser developers should be aware of.
You'll find Phaser Plugins that extend the framework with features such as UI controls, text input boxes, Firebase support, Finite State Machines and lots more. His set of Phaser Notes are also invaluable reading.
Phaser Sandbox
The Phaser Sandbox is a fully-configured online editor, ready to go direct in your desktop browser. It's loaded with all the core versions of Phaser and packed full of handy features. Register for a free Phaser account to create and save your own sandbox entries. Or view one just like this.
Phaser Compressor
Use our powerful new web-based tool to crunch your Phaser bundles down by up to 60%, enabling only the features your game requires.
Read more about Phaser Compressor
Change Log
We meticulously keep track of new features, updates and bug fixes in our change logs. Each version of Phaser has its own change log:
Have fun!
Grab the source and join the fun!
Phaser wouldn't have been possible without the fantastic support of the community. Thank you to everyone who supports our work, who shares our belief in the future of HTML5 gaming, and Phaser's role in that.
Happy coding everyone!
Cheers,
Rich and the whole team at Phaser Studio

Visit the Phaser website
Play some amazing games
Learn By browsing our API Docs, Support Forum and StackOverflow
Code Examples? We've over 2000 Examples to learn from
Read the weekly Phaser World Newsletter
Be Social: Join us on Discord and Reddit or follow us on BlueSky
Powered by coffee, anime, pixels and love.
The Phaser logo and characters are © 2011 - 2025 Phaser Studio Inc.
All rights reserved.
"Above all, video games are meant to be just one thing: fun. Fun for everyone." - Satoru Iwata
Owner
- Name: Phaser
- Login: phaserjs
- Kind: organization
- Email: support@phaser.io
- Location: UK
- Website: https://phaser.io
- Repositories: 3
- Profile: https://github.com/phaserjs
Phaser - 2D Game Framework
Citation (CITATION.cff)
cff-version: 1.2.0 title: Phaser message: >- Phaser is a fast, free, and fun open source HTML5 game framework that offers WebGL and Canvas rendering across desktop and mobile web browsers type: software authors: - name: Phaser Developers repository-code: 'https://github.com/phaserjs/phaser' url: 'https://phaser.io/' abstract: >- Phaser is a fast, free, and fun open source HTML5 game framework that offers WebGL and Canvas rendering across desktop and mobile web browsers and has been actively developed for over 10 years. Games can be built for the web, or as YouTube Playables, Discord Activies, Twitch Overlays or compiled to iOS, Android, Steam and native apps using 3rd party tools. You can use JavaScript or TypeScript for development. Phaser supports over 40 different front-end frameworks including React and Vue. Phaser is commercially developed and maintained by Phaser Studio Inc along with our fantastic open source community. As a result of rapid support, and a developer friendly API, Phaser is currently one of the most starred game frameworks on GitHub. Interested in learning more? Click the image below to watch our intro video. license: MIT
GitHub Events
Total
- Create event: 16
- Commit comment event: 5
- Release event: 14
- Issues event: 270
- Watch event: 1,489
- Issue comment event: 391
- Push event: 325
- Pull request review event: 3
- Pull request event: 121
- Fork event: 156
Last Year
- Create event: 16
- Commit comment event: 5
- Release event: 14
- Issues event: 270
- Watch event: 1,489
- Issue comment event: 391
- Push event: 325
- Pull request review event: 3
- Pull request event: 121
- Fork event: 156
Committers
Last synced: 6 months ago
Top Committers
| Name | Commits | |
|---|---|---|
| Richard Davey | r****h@p****m | 12,878 |
| Pavle Goloskokovic | p****c@g****m | 1,025 |
| Felipe Alfonso | f****a@g****m | 404 |
| samme | s****e | 386 |
| Zeke Chan | z****k@g****m | 198 |
| Michael Hadley | m****y@g****m | 196 |
| Paul | p****e@g****m | 150 |
| Rex | b****n@g****m | 119 |
| Chris Andrew | c****s@h****o | 99 |
| Clark Stevenson | c****k@d****m | 99 |
| Pete Baron | s****e@g****m | 86 |
| Svipal | s****l@t****o | 79 |
| orblazer | o****t@g****m | 68 |
| Ben Richards | b****s@g****m | 59 |
| Robert Kowalski | r****5@g****m | 58 |
| Jason Kwok | J****K | 49 |
| vulvulune | v****n@i****h | 32 |
| Georgios Kaleadis | g****s@k****e | 32 |
| J.C | j****e@g****m | 32 |
| Alvaro Estrada | a****a@g****m | 29 |
| qdrj | y****h@y****m | 28 |
| Daniel | 2****s | 27 |
| Webeled | w****d@g****m | 27 |
| Josh Soref | j****f | 26 |
| Sean | p****n@g****m | 26 |
| Christian Wesselhoeft | c****n@c****m | 25 |
| alvinsight | a****t@g****m | 25 |
| Chad Engler | e****j@l****m | 21 |
| Rafael Barbosa Lopes | r****s@g****m | 19 |
| iamchristopher | c****t@l****m | 19 |
| and 626 more... | ||
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 4 months ago
All Time
- Total issues: 2,184
- Total pull requests: 195
- Average time to close issues: 3 months
- Average time to close pull requests: about 1 month
- Total issue authors: 1,194
- Total pull request authors: 73
- Average comments per issue: 2.81
- Average comments per pull request: 1.07
- Merged pull requests: 119
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 185
- Pull requests: 125
- Average time to close issues: 27 days
- Average time to close pull requests: 14 days
- Issue authors: 104
- Pull request authors: 41
- Average comments per issue: 1.16
- Average comments per pull request: 0.77
- Merged pull requests: 71
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- samme (52)
- rexrainbow (47)
- ghost (25)
- jessefreeman (18)
- RollinSafary (18)
- JarLowrey (17)
- jcyuan (16)
- michalfialadev (16)
- photonstorm (15)
- wayfu (14)
- Fishrock123 (14)
- Stever1388 (13)
- ForgeableSum (13)
- monteiz (12)
- Antriel (12)
Pull Request Authors
- samme (84)
- rexrainbow (17)
- ospira (9)
- ChrisCPI (6)
- ukamp (5)
- pavle-goloskokovic (5)
- photonstorm (5)
- wooseok123 (4)
- moufmouf (4)
- raaaahman (4)
- justin-calleja (4)
- SBCGames (4)
- gamedevsam (4)
- mikuso (3)
- cryonautlex (3)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 3
-
Total downloads:
- npm 274,114 last-month
- Total docker downloads: 335,801
-
Total dependent packages: 325
(may contain duplicates) -
Total dependent repositories: 6,197
(may contain duplicates) - Total versions: 376
- Total maintainers: 3
npmjs.org: phaser
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
- Homepage: https://phaser.io
- License: MIT
-
Latest release: 3.90.0
published 7 months ago
Rankings
Maintainers (1)
proxy.golang.org: github.com/phaserjs/phaser
- Documentation: https://pkg.go.dev/github.com/phaserjs/phaser#section-documentation
- License: mit
-
Latest release: v3.90.0+incompatible
published 7 months ago
Rankings
npmjs.org: @phaserjs/phaser
Phaser 4
- Homepage: https://github.com/phaserjs/phaser#readme
- License: MIT
-
Latest release: 0.2.2
published over 4 years ago
Rankings
Maintainers (3)
Dependencies
- 302 dependencies
- @types/offscreencanvas ^2019.7.0 development
- @types/source-map ^0.5.7 development
- clean-webpack-plugin ^4.0.0 development
- dts-dom ^3.6.0 development
- eslint ^8.31.0 development
- eslint-plugin-es5 ^1.5.0 development
- exports-loader ^4.0.0 development
- fs-extra ^11.1.0 development
- imports-loader ^4.0.1 development
- jsdoc 3.x.x development
- node-sloc ^0.2.1 development
- path ^0.12.7 development
- phaser3spectorjs ^0.0.8 development
- remove-files-webpack-plugin ^1.5.0 development
- source-map ^0.7.4 development
- terser-webpack-plugin ^5.3.6 development
- typescript ^4.9.4 development
- vivid-cli ^1.1.2 development
- webpack ^5.75.0 development
- webpack-cli ^5.0.1 development
- webpack-shell-plugin ^0.5.0 development
- eventemitter3 ^5.0.0
