Skip to content

Documentation

Everything the README links to, in one place.

Using the package

DocumentWhat is in it
api.mdThe root entry: every <DevToolbar> prop, the toggle shortcut, the menu, the escape-hatch exports and every published type
styling.mdThe three ways to restyle the bar, why none of them needs !important, and how icons and bar text are configured
ssr.mdWhy the bar cannot mismatch on hydration, and the one Next.js app-router rule
testing.md@nejcm/dev-toolbar/testingrenderWithToolbar, the fake layout, the mock bus and the Jest caveats

Writing an extension

DocumentWhat is in it
extension-contract.mdThe object you write, the slot props, start(api), and the two lifecycle rules that bite
runtime.md@nejcm/dev-toolbar/runtime — event bus, ring buffers, throttled store, redact() and redactText()
kit.md@nejcm/dev-toolbar/kit — the shared severity vocabulary, the storage/poll/style helpers, data-dtb-kind, the thin React controls, the presentation vocabulary and embed()
embedding.mdPutting a third-party devtool on the bar: the four-line recipe that already works, the bring-your-own-CSS rule, the embed() frame helper, and one chip that opens a whole devtools shell such as TanStack Devtools
architecture.mdWhat the shell guarantees, why the boundaries sit where they do, and the known gaps in the contract
adr/Decision records, and the process for adding one

The first-party extensions

ExtensionDocument
ext/metricsBuilt-in metrics and custom collectors
ext/environmentext/environment.md
ext/flagsext/flags.md
ext/command-menuext/command-menu.md
ext/overlaysext/overlays.md
ext/diagnosticsext/diagnostics.md
ext/theme-editorext/theme-editor.md
ext/agentext/agent.md
ext/a11yext/a11y.md — the one optional peer

Each extension directory carries a README too — the developer's view of the same extension: the files in it, what it owns, the decisions that bite, and its commands. src/ext/README.md indexes all nine.

Working on the package itself

DocumentWhat is in it
Contributing guideSetup, the one command that matters, commits, PRs, releases
Agent instructionsThe repo map: which folder is which layer, and what may import what
ChangelogEvery release, including each place the extension contract moved

Released under the MIT License.