- TypeScript 83%
- JavaScript 16%
- CSS <1%
- HTML <1%
Excalibur Dev Tools Plugin #
This excalibur game developers to easily inspect their games while making them!
Now live in browsers!
Debug
- Performance issues
- Actor graphics
- Actor geometry
- Colliders
- Scenes
- Toggle Debug Draw

Chrome: Running Locally & Side Loading #
If you want to develop locally
- Install node.js
- Run
npm installin the root directory - Run
npm run start:chromethis will start a parcel dev server, or runnpm run build:chrometo produce a prod bundle - Open
chrome://extensions/and click "Load unpacked"
- Select the
dist-chromedirectory in theexcalibur-extensionproject
Firefox: Running Locally & Side Loading #
If you want to develop locally
- Install node.js
- Run
npm installin the root directory - Run
npm run start:firefoxthis will start a parcel dev server, or runnpm run build:firefoxto produce a prod bundle - Open
about:debugging#/runtime/this-firefoxand click "Load Temporary Add-on..."
- Select the manifest.json file inside the
dist-firefoxdirectory.
Building a release artifact for Chrome or Firefox #
- Install node.js
- Run
npm installin the root directory - Run
npm build:chrometo produce the final build artifact indist-chrome- Zip the files in the directory, not the
dist-chromedirectory - Upload the zip to chrome
- Zip the files in the directory, not the
- Run
npm build:firefoxto product the final build artifact indist-firefoxwhich can be zipped and uploaded- Zip the files in the directory, not the
dist-firefoxdirectory - Upload the zip to mozilla
- Zip the files in the directory, not the
How it works #
The message protocol (src/protocol.ts) is the fixed seam. Three layers carry it,
and each seam has two interchangeable implementations — one for the browser
extension, one for the embedded build:
| Seam | Extension build | Embedded build |
|---|---|---|
PanelTransport |
chrome runtime Port (src/panel-transport/extension.ts) |
in-memory pair (src/embedded/local-driver.ts) |
PageExecutor |
chrome.scripting.executeScript, world MAIN (src/background.ts) |
direct function call (src/embedded/local-driver.ts) |
| Panel UI lives in | the devtools panel page | a same-origin dock iframe (src/embedded/host.ts) |
| Connection runs in | the background service worker | the game page itself |
The runtime flow is identical in both builds — only the plugs differ:
Embedded devtools (no extension needed) #
The panel can also run directly inside a game page, firebug-style — no browser extension, no devtools window. Build it with:
npm run build:embedded→dist-embedded/ex-devtools.js(self-contained)
Drop it into any page running an Excalibur game (the engine already exposes itself to the devtools — no game-side code needed):
<script type="module" src="ex-devtools.js"></script>
A floating Ex button appears bottom-right and opens a resizable dock with
the full panel (inspector, debug draw, materials, graphs, entity picker).
window.ExDevtools exposes open(), close(), toggle(), and destroy();
appending ?ex-devtools=open to the URL opens the dock on load.
For development, npm run start:embedded serves a harness page with a demo
game and the embedded devtools on top.
Testing #
npm run test:unit— node-level Vitest specs (settings schema/store/utils, formatters, GLSL tokenizer, and a serialization tripwire that proves everysrc/page/function is still self-contained).npm run test:browser— Vitest browser mode (headless Chromium via Playwright; runnpx playwright install chromiumonce): boots a real Excalibur game and drives the embedded panel against it end to end.npm run test— both.
Features That We Want! #
PR's welcome
-
-
-
-
- When you hover over an actor/entity in the game it highlights in the dev tools!