Open-source toolkit for 2D browser games. It handles the boring bits so you can get to the fun part sooner.
- ✓Open-source license (MIT)
- ✓Actively maintained (<30d)
- ✓Clear description
- ✓Topics declared
- ✓Documented (README)
claude mcp add debuff -- npx -y debuff{
"mcpServers": {
"debuff": {
"command": "npx",
"args": ["-y", "debuff"]
}
}
}MCP Servers overview
<h1 align="center"> <img src="./.github/logo.svg" width="420" alt="debuff"> </h1> **more room for play.** debuff is an open-source toolkit for 2D browser games that handles the basics for you (the game loop, controls, sound, levels, testing, shipping) so you get to that game sooner and spend your time on what makes it yours. - **The groundwork, done.** Start from a running game in under a minute. Crisp pixels on every screen, keyboard, touch and gamepad, sound that plays, levels from Tiled or LDtk, and a build you can put anywhere on the web, game portals like Poki and CrazyGames included ([publishing guide](https://debuff.jp/docs/publishing)). - **Tune it until it feels right.** Speeds, timings and other feel values become live sliders in the dev panel, with undo. - **When something breaks, it tells you.** Errors say whose bug it is and point at the line. Replays and scenario tests bring a bug back exactly, so you can fix it and move on. - **Room to grow.** Small (the starter ships at about 13 kB) and fast (about 200,000 sprites at 60 fps), so the engine doesn't hold your idea back. - **Agents help if you want them, you decide.** Coding agents can play the game you have open, read what's happening and check their changes. Creative calls stay with you. > **Status: 0.5, early development.** APIs will change, and feedback from real games shapes them. ## Try it You need Node.js 22 or newer. ```bash npm create debuff@latest my-game cd my-game npm install npm run dev ``` Open the URL it prints, then press <kbd>`</kbd> in the game for the dev panel. Edit `src/main.ts` and the game reloads. For a tilemap platformer instead of the minimal starter, add `-- --template platformer` to the first command, `-- --template mossfell` for a top-down adventure, or `-- --template squish` for a squishy match-3 that plays well on phones. pnpm, Yarn and Bun work too (`pnpm create debuff`, and so on). New projects include a `.mcp.json`, so a coding agent like Claude Code can play and inspect the game you have open. See the [agent guide](https://debuff.jp/docs/agents). **Working on debuff itself?** Clone the repo, then run `npm install` and `npm run build`. `cd templates/platformer && npx debuff dev` runs a template against your local packages, and the repo's `.mcp.json` points the MCP server at it. See [CONTRIBUTING](./CONTRIBUTING.md). ## Why not just canvas and JavaScript? | | Raw canvas + JS | debuff | | --- | --- | --- | | Sprites at 60 fps | ~5,000 | **~200,000** (batched WebGL2, Canvas 2D fallback) | | Small game, shipped | what you write | **~13 kB** brotli for the starter, everything included | | A crash in `update` | the loop dies silently | stops, says **whose bug it is**, links the source line | | Tuning feel | edit, reload, replay | sliders while you play, with undo and copy back to code | | AI agents | read code and guess | **play your game**: state, frames and errors, and you see what they did | <p align="center"> <img src="https://raw.githubusercontent.com/debuffjp/docs/main/public/shots/bench.svg" width="640" alt="Sprites at 60 fps: debuff WebGL2 200k, PixiJS ParticleContainer 200k, PixiJS Sprite 50k, Canvas 2D 5k"> </p> <p align="center"> <img src="https://raw.githubusercontent.com/debuffjp/docs/main/public/shots/dev-error.png" width="300" alt="The dev panel explaining an error: your code, the source line and a hint"> <img src="https://raw.githubusercontent.com/debuffjp/docs/main/public/shots/dev-tune.png" width="300" alt="The dev panel's tune tab with live sliders"> </p> More in [Why debuff](https://debuff.jp/docs/why). Agents can start from [llms.txt](https://debuff.jp/llms.txt). ## Packages | Package | What it does | | --- | --- | | [`@debuffjp/core`](./packages/core) | Game loop, fixed-step clock, seeded RNG, scenes, camera, sprites, params, storage, frame stats | | [`@debuffjp/input`](./packages/input) | Keyboard and pointer/touch with per-step edges and programmatic input | | [`@debuffjp/assets`](./packages/assets) | Manifest-driven loader with preload groups and actionable errors | | [`@debuffjp/audio`](./packages/audio) | Web Audio buses, autoplay unlock, parametric synth | | [`@debuffjp/tilemap`](./packages/tilemap) | Tilemaps: culled batched rendering, tile collision, Tiled and LDtk import | | [`@debuffjp/ui`](./packages/ui) | Screen transitions, menus and framed panels | | [`@debuffjp/juice`](./packages/juice) | Tweens, easing, pooled particles, trails, squash-and-stretch | | [`@debuffjp/dev`](./packages/dev) | Dev panel (perf, tune, state, explained errors, replays, rewind) and `window.__DEBUFF_DEV__`, stripped from production | | [`@debuffjp/cli`](./tooling/cli) | `debuff dev · build · assets · test · scenario · fuzz · inspect · report` | | [`myaku`](./packages/myaku) | Frame profiler for any web game: finds the hitches players feel and says why in plain words. Standalone; `debuff dev` runs it for you | | [`keiko`](./tooling/keiko) | Fast, deterministic logic tests for any web game: the real game in Node, no browser. Standalone; debuff integrates it | | [`create-debuff`](./tooling/create-debuff) | `npm create debuff` scaffolder | | [`@debuffjp/mcp`](./tooling/mcp) | MCP server: agents inspect, build, test and play your game | ## CLI ```text debuff create [dir] scaffold from a template debuff dev dev server, hot reload, asset manifest watching debuff build production build + size report (fails on dev leaks) debuff assets regenerate manifest, list unused assets debuff test logic tests (keiko): the real game in Node, no browser, in milliseconds debuff scenario run scenarios/*.json headless, compare captures debuff fuzz random playtesting; crashes come back as replay files debuff inspect JSON project summary for agents debuff report size report for an existing dist/ ``` Every command accepts `--json` for machine-readable output where applicable. ## Repository layout ```text packages/ browser runtime libraries (@debuffjp/*) tooling/ Node-side tools (CLI, scaffolder) templates/ starter templates; built and scenario-tested in CI docs/ architecture, roadmap, decisions (docs/adr) ``` ## Community - **[Discord](https://discord.gg/jshbDHSpCY)**: the debuff community's home. Ask questions, share games, find jams. - [debuff.jp](https://debuff.jp) · [Issues](https://github.com/debuffjp/debuff/issues) - [Contributing](./CONTRIBUTING.md) · [Agent guide](./AGENTS.md) · [Governance](./GOVERNANCE.md) - [Code of conduct](./CODE_OF_CONDUCT.md) · [Security](./SECURITY.md) · [Versioning and stability](./docs/stability.md) - [Architecture](./docs/architecture.md) · [Roadmap](./docs/roadmap.md) · [Plugins](./docs/plugins.md) · [Decisions](./docs/adr) ## License MIT
What people ask about debuff
What is debuffjp/debuff?
+
debuffjp/debuff is mcp servers for the Claude AI ecosystem. Open-source toolkit for 2D browser games. It handles the boring bits so you can get to the fun part sooner. It has 1 GitHub stars and its last recorded update is dated 2026-10-19.
How do I install debuff?
+
You can install debuff by cloning the repository (https://github.com/debuffjp/debuff) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is debuffjp/debuff safe to use?
+
Our security agent has analyzed debuffjp/debuff and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.
Who maintains debuffjp/debuff?
+
debuffjp/debuff is maintained by debuffjp. The last recorded GitHub activity is dated 2026-10-19, with 1 open issues.
Are there alternatives to debuff?
+
Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.
Deploy debuff to your cloud
Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.
Maintain this repo? Add a badge to your README
Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.
[](https://claudewave.com/repo/debuffjp-debuff)<a href="https://claudewave.com/repo/debuffjp-debuff"><img src="https://claudewave.com/api/badge/debuffjp-debuff" alt="Featured on ClaudeWave: debuffjp/debuff" width="320" height="64" /></a>More MCP Servers
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
An open-source AI agent that brings the power of Gemini directly into your terminal.
Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface
🕷️ A Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev