A browser extension that adds a Discourse panel to Developer Tools. One source tree builds Firefox and Chrome packages. No server plugin or core changes.
- Search client settings by name or value; filter theme overrides and upcoming changes.
- Inspect the current route, selected user permission flags, theme IDs, layout and chat state.
- Copy individual settings or a concise debug summary.
- Explicit unavailable/error states on unsupported pages or changing Discourse internals.
Inspection uses Discourse.lookup("service:site-settings") and other browser-side
services. Only information already available to the inspected session is read.
This does not query admin APIs or expose server-only settings. Theme IDs are shown,
not a complete inventory of installed plugins or theme repositories.
Requires Node 22+. There are no npm dependencies.
npm run checkChrome: open chrome://extensions, enable Developer mode, choose Load
unpacked, and select dist/chrome.
Firefox: open about:debugging#/runtime/this-firefox, choose Load Temporary
Add-on, and select dist/firefox/manifest.json. Temporary installs disappear
when Firefox restarts. Permanent distribution requires Mozilla signing.
Open a Discourse page, open Developer Tools, and select Discourse (it may be under the overflow menu). Reopen DevTools if it was open during installation. Use Refresh after navigating within the application or changing settings. Full page navigation automatically refreshes the snapshot.
nix-shell supplies Node and zip. make release runs checks and writes unsigned
ZIP packages under artifacts/. make install-hooks enables the pre-commit checks.
Versions are dates written YYYY.M.D without leading zeros (both browsers reject
2026.12.01), with an optional fourth part for a second release on the same day.
Prebuilt packages are on the GitHub releases page: a Chrome zip to load unpacked,
and a Firefox .xpi signed by Mozilla as an unlisted add-on, which installs
permanently by opening the file in Firefox.
To cut a release, bump version in package.json on a branch, merge it, then
tag main with that version and push the tag:
git tag 2026.12.1
git push origin 2026.12.1The release workflow checks the tag matches package.json, runs the checks,
signs the Firefox package through AMO and publishes the release. It needs the
repository secrets AMO_JWT_ISSUER and AMO_JWT_SECRET, an API key pair from
addons.mozilla.org (Tools > Manage API Keys).
No analytics, network uploads, background page, content scripts, host permissions, or persistent storage. Snapshots live in the open DevTools panel. Clipboard access is requested for the explicit copy buttons.
The context view can contain usernames, IDs, route parameters, and private page paths. The debug summary includes the site origin and selected diagnostic fields but omits those identifiers and all setting values. Individual Copy buttons intentionally copy the selected setting. Sensitive-looking setting keys are masked; this is a heuristic, not a guarantee that arbitrary setting values contain no private information. Review copied data before sharing.
All inspected data is rendered as text, never HTML. The evaluated expression is fixed code bundled with the extension; user search input is never evaluated.
src/collect.js: self-contained collector evaluated in the inspected page.src/bridge.js: Firefox promise and Chrome callback API adaptation.src/panel.*: shared vanilla JavaScript interface.scripts/build.js: browser-specific Manifest V3 packages.test/: collector behavior, redaction, export boundaries and bridge errors.
The optional scripts/browser-smoke.mjs runs the UI in headless Chromium with
fixture implementations of both browser APIs. Supply PLAYWRIGHT_MODULE if
Playwright is not installed here, and CHROMIUM_PATH for a system browser. It
tests rendering, search, filtering, clipboard output, HTML escaping and navigation.
This is not a substitute for manually checking the actual DevTools integration
in both browsers. The collector has also been checked anonymously on Discourse
Meta, where it returned 811 client settings.
Discourse's runtime services are not a stable external debugging API. Missing services are reported, and collectors should remain small and independently tested. Settings describe effective client values, not necessarily the server's stored values or defaults.