@zerolith/devtools
An in-page inspector for zerolith applications. It is a plain ES module, so it works wherever the app is served: Vite, a static server, electron-vite, or file://.
import { mountDevtools } from "@zerolith/devtools";
mountDevtools();
The dock shows the live reactive graph (every signal, computed value, and effect, with names from the name option and current values), the mounted roots, and the diagnostics feed. Press Alt+Shift+Z to toggle it.
The package reads the hook the core publishes in development builds as globalThis.__ZEROLITH_DEVTOOLS__. Under the development export condition it is the inspector; otherwise it is a no-op, so the call can stay in application code.
The guide is on the docs site.
Status: alpha. Install with npm install @zerolith/devtools@alpha, at the version of zerolith the project uses: the two share the zerolith/internal entry, and mountDevtools stops with package_version_mismatch on any other version. The API may change before 1.0.
Documentation
- The dev tools guide explains it with examples that run as tests.
- The reference lists every export, generated from the source.
- New to zerolith? The tutorial builds an app step by step, and the playground runs code in the browser.
License
Apache-2.0. See LICENSE.