Overview
mates-devtools is an in-app panel (FAB + resizable inspector) for the running Mates tree — components, atoms, logs, network, and performance.
Call renderMatesDevTools() before renderApp() so hooks are installed when the first components mount.
Core keeps tiny no-op stubs in lib/devtools. The panel package fills them via installDevToolsHooks — production bundles stay clean when you omit the package.
Panel vs bridge
|
Piece
|
Package
|
Role
|
|---|---|---|
renderMatesDevTools
| mates-devtools | FAB + panel — installs hooks on call |
installDevToolsHooks
| mates (core) | Bridge API — partial replace of no-ops |
isDevToolsInstalled
| mates (core) | Gate expensive debug-only work |
Counter + DevTools panel
A simple Counter. Click the gear FAB in the preview, open Components or Logs, then press + / − to watch atoms and renders update live.
installDevToolsHooks (bridge)
Low-level demo: wire a partial hook set and flip isDevToolsInstalled. Prefer the panel demo above for day-to-day debugging.