# 2D graphics and game engines

Draw on a canvas in the browser, and make 2D games. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 21 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [Konva](https://elestia.ai/opensource/2d-graphics/konva/index.md) | 8.2 | 4.4 | 8.2 | 7.9 | 6.9 | 7.0 | 7.0 | Teams building interactive canvas apps such as design editors, whiteboards or diagram tools, especially with React, Vue or Svelte. |
| 2 | [Phaser](https://elestia.ai/opensource/2d-graphics/phaser/index.md) | 8.2 | 3.9 | 8.6 | 7.4 | 7.0 | 7.0 | 6.7 | Developers who want a complete, well-documented 2D game framework for browser and mobile-web games, from game jams to commercial titles. |
| 3 | [PixiJS](https://elestia.ai/opensource/2d-graphics/pixijs/index.md) | 8.2 | 4.7 | 8.5 | 8.0 | 6.7 | 7.8 | 7.8 | Teams that need fast, flexible 2D rendering for games, interactive apps or visualisations and are happy to choose their own game-logic libraries. |
| 4 | [p5.js](https://elestia.ai/opensource/2d-graphics/p5/index.md) | 7.4 | 4.1 | 7.2 | 8.1 | 6.8 | 7.1 | 6.6 | Learners, teachers, artists and designers who want to make interactive canvas sketches, generative art or simple games fast. |
| 5 | [Fabric.js](https://elestia.ai/opensource/2d-graphics/fabric/index.md) | 7.0 | 4.3 | 7.5 | 6.1 | 5.4 | 5.3 | 7.9 | Teams building a browser design or image editor that needs selection handles, text editing, filters and SVG import/export. |
| 6 | [Excalibur](https://elestia.ai/opensource/2d-graphics/excalibur/index.md) | 6.9 | 3.4 | 7.2 | 7.0 | 3.9 | 4.5 | 7.7 | TypeScript developers making small to mid-sized 2D browser games who want a clean, typed, code-first engine with no runtime dependencies. |
| 7 | [LittleJS](https://elestia.ai/opensource/2d-graphics/littlejs/index.md) | 6.3 | 3.7 | 7.0 | 6.4 | 2.9 | 4.4 | 7.6 | Solo developers and jam entrants who want a small, fast, zero-dependency engine for small browser games, especially js13k. |
| 8 | [melonJS](https://elestia.ai/opensource/2d-graphics/melonjs/index.md) | 6.3 | 3.2 | 6.8 | 6.9 | 3.0 | 3.7 | 7.6 | Solo developers or small teams building Tiled-based platformers or top-down games who want a zero-dependency, batteries-included engine. |
| 9 | [KAPLAY](https://elestia.ai/opensource/2d-graphics/kaplay/index.md) | 5.8 | 3.8 | 6.2 | 5.3 | 3.6 | 3.8 | 7.5 | Beginners, teachers and game-jam developers who want to get a small 2D game running in minutes. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| Konva | 16M | ×5.3 | 15k | 340 | Nov 2026 | 0 |
| Phaser | 3.4M | ×11 | 41k | 537 | Jul 2026 | 0 |
| PixiJS | 7.4M | ×5.8 | 49k | 288 | Nov 2026 | 0 |
| p5.js | 654k | ×4.0 | 24k | 2.1k | Nov 2026 | 0 |
| Fabric.js | 5.3M | ×3.5 | 32k | 210 | May 2026 | 2 |
| Excalibur | 94k | ×7.9 | 2.4k | 375 | Nov 2026 | 0 |
| LittleJS | 8.2k | ×3.6 | 4.4k | 1.8k | Nov 2026 | 0 |
| melonJS | 11k | ×5.9 | 6.5k | 874 | Nov 2026 | 0 |
| KAPLAY | 38k | ×4.4 | 1.8k | 253 | Jun 2025 | 0 |

All categories: https://elestia.ai/opensource/index.md
