# debuff vs Phaser

Phaser is the best-known framework for 2D browser games. debuff is a much younger, smaller framework built around tuning, testing and working with coding agents. This page compares them on what each actually ships, as of October 2026, and says where Phaser is the better choice.

## Short answer

Pick **Phaser** if you want a mature, full-featured framework with built-in physics, a large community and years of examples, or a visual editor. Pick **debuff** if you want a small runtime, deterministic tests and fuzzing built in, and a coding agent that can attach to the game you have open.

## At a glance

| | debuff 0.20 | Phaser 4.2.1 |
| --- | --- | --- |
| License | MIT | MIT |
| Language | TypeScript | JavaScript, with TypeScript types |
| Maturity | New, early development | Over a decade of releases |
| Physics | Tile collision; no rigid-body engine | Built in ([Arcade and Matter](https://phaser.io/phaser4)) |
| Rendering | WebGL2 via [spryte](./introducing-spryte), Canvas 2D fallback | GPU renderer with filters and lighting ([phaser.io/phaser4](https://phaser.io/phaser4)) |
| Visual editor | None | [Phaser Editor](https://phaser.io/editor), paid ($12/month) |
| Full runtime, brotli | 30 kB (every debuff package) | 276 kB (`phaser.min.js`) |
| Testing | Deterministic scenarios, screenshot baselines, fuzz, [Keiko](./introducing-keiko) | `HEADLESS` renderer; testing is up to you |
| Coding agents | MCP server for the running game, `AGENTS.md` in new projects | [llms.txt](https://phaser.io/llms.txt), [28 skills](https://github.com/phaserjs/phaser/tree/master/skills), [Editor MCP server](https://github.com/phaserjs/editor-mcp-server) |
| Community | Small | Large (about 40k GitHub stars), forums, Discord |

## Where Phaser is stronger

- **Features.** Physics engines, a filter and lighting system, tilemaps, cameras, particles and tweens are all built in. debuff has no rigid-body physics.
- **Maturity.** Phaser has shipped for over a decade. Its API is stable, and v4 stays close to v3, so most v3 material still applies.
- **Learning material.** Thousands of examples, tutorials and answered questions. When something goes wrong, someone has usually hit it before.
- **Editor.** Phaser Editor gives you scene editing, if you're happy to pay for it. debuff has no editor.
- **Agent docs.** Phaser ships skills files in its main repository and an llms.txt, and has an official MCP server for Phaser Editor scenes.

## Where debuff is different

- **Size.** The whole debuff runtime is a fraction of Phaser's bundle, and `debuff build` fails if dev-only code leaks into production.
- **Determinism and tests.** debuff runs on fixed steps with a seeded RNG. Scenarios (JSON scripts with expectations and screenshot captures) run headless with `npm test`, and `npx debuff fuzz` plays the game with random input and saves every crash or stuck state as a replay.
- **Agents on the running game.** Phaser's MCP server edits scenes in its editor. debuff's MCP server lets an agent attach to the game you have open, read the notes you flag in the overlay, reproduce that moment with `game_replay`, and tune typed params in your tab, where you can undo them. The [agent comparison post](./coding-agents-and-browser-game-engines) covers this in detail.
- **Explained errors.** A runtime error says whose bug it is (your code, an API misuse, or debuff itself) and points at the source line.
- **Tools that also work with Phaser.** [Keiko](./introducing-keiko) runs your Phaser game in Node on a virtual clock for fast timing tests, [Myaku](./introducing-myaku) explains dropped frames, and [tenten](./pixel-art-you-can-cat) exports sprite sheets Phaser loads. [spryte](./introducing-spryte), debuff's renderer, can even run [inside Phaser](./spryte-inside-phaser).

## Which to choose

If your game needs physics, lots of built-in systems, or a large community to lean on, use Phaser. If you're making a small game, want tests and fuzzing from day one, or want to work closely with a coding agent, try debuff:

```bash
npm create debuff@latest my-game
```

The [walkthrough with Claude Code](./build-a-game-with-claude-code) shows the full loop.