# debuff vs PixiJS vs Phaser: which 2D web game engine should you pick?

If you're making a 2D game for the browser, you'll probably end up choosing between three kinds of tool: a **renderer** (PixiJS), a **full framework** (Phaser), or a **small framework with the game loop, testing and shipping built in** (debuff). All three are good. They solve different problems, and the right pick depends on yours.

## The short version

| | PixiJS | Phaser | debuff |
| --- | --- | --- | --- |
| What it is | A fast 2D renderer | A full-featured game framework | A small framework for 2D browser games |
| Game loop, scenes, input | Bring your own | Built in | Built in (fixed-step clock, seeded RNG) |
| Physics | Bring your own | Built in (Arcade, Matter) | Tile collision; bring your own physics |
| Maturity and community | Large, long-running | Large, long-running, many tutorials | New (0.20, early development) |
| Testing | Bring your own | Bring your own | Deterministic scenarios, screenshot baselines, fuzzing |
| AI coding agents | Read code | Read code | MCP server: agents play, inspect and test the open game |
| Starter size, shipped | Depends on your code | Larger, full framework | About 25 kB brotli |

## PixiJS: pick it if you want a renderer

PixiJS is about drawing things fast, and it's excellent at it. It doesn't try to be a game engine, so you'll add your own loop, input, audio, scene management and tooling, or choose libraries for them. That's ideal if you want full control or you're building something that isn't quite a game: interactive graphics, data viz, ads, UI-heavy apps.

In our benchmark, debuff's renderer, [spryte](https://github.com/debuffjp/spryte), was 2 to 4 times faster than PixiJS on like-for-like workloads. PixiJS's `ParticleContainer` held about 400,000 sprites at 60 fps, against 800,000 for spryte's bulk `draw.sprites`. Regular PixiJS `Sprite`s held about 50,000, and plain Canvas 2D about 5,000. [See the benchmark.](/benchmarks) If you only want a renderer, spryte is also a standalone library of about 10 kB with sprites, bulk particles, shaders and a Canvas 2D fallback. See [introducing spryte](./introducing-spryte), [spryte vs Phaser](./spryte-vs-phaser) and [spryte inside Phaser](./spryte-inside-phaser).

## Phaser: pick it if you want batteries included and a big community

Phaser has been around for years. It has physics engines, a large feature set, many examples and a lot of answered questions online. If you want an established framework with a deep ecosystem, and bundle size or agent tooling isn't your main concern, Phaser is a safe and very reasonable choice.

## debuff: pick it if you care about feel, testing and agents

debuff is newer and deliberately smaller. Its bet is that the hard part of a small game isn't drawing sprites. It's everything around them:

- **Tuning feel.** Speeds and timings become live sliders in the dev panel, with undo, and get copied back to code.
- **Bugs that explain themselves.** A crash in `update` doesn't just kill the loop silently. It stops, says whose bug it is and links the source line.
- **Tests for games.** A fixed-step clock and seeded RNG make runs deterministic, so scenarios with screenshot baselines work and fuzzing can hand you a replay of every crash.
- **Agents that can see.** The MCP server lets Claude Code and other agents attach to the game you have open, read state, capture frames and send input. You watch what they do in the dev panel.
- **Tools that work with PixiJS and Phaser too.** [Keiko](./introducing-keiko) runs a web game in Node on a virtual clock for fast tests, and [Myaku](./introducing-myaku) names the cause of dropped frames. Both are MIT and work with PixiJS and Phaser.
- **Small builds.** The starter ships at about 25 kB brotli, and the build fails if dev-only code leaks into production.

The trade-off is that debuff is 0.20: APIs will change and there's no built-in rigid-body physics. If you need stability today, Phaser is the safer pick.

## Try debuff in a minute

```bash
npm create debuff@latest my-game
cd my-game
npm install
npm run dev
```

For a closer look at each engine, see [debuff vs Phaser](./debuff-vs-phaser) and [debuff vs PixiJS](./debuff-vs-pixijs), or [how they compare for coding agents](./coding-agents-and-browser-game-engines). Read more in [Why debuff](/docs/why).