@triggery/devtools-panel
v0.10.0
Published
React components for inspecting a Triggery runtime — drop-in inspector panel and snapshot views
Maintainers
Readme
@triggery/devtools-panel
React components for inspecting a Triggery runtime in-app. Zero CSS pipeline — components use inline styles so they drop into any host.
Install
pnpm add -D @triggery/devtools-panelUse
import { InspectorView } from '@triggery/devtools-panel';
function DebugDrawer() {
return import.meta.env.DEV ? <InspectorView limit={50} /> : null;
}That's the full integration. The component subscribes to the active runtime (via <TriggerRuntimeProvider> context, or the global default) and shows a live list of recent runs. Clicking a row expands the full JSON snapshot.
Components
| Component | Props | Use |
|---|---|---|
| <InspectorView limit?={20} title?={'Triggery Inspector'} /> | limit — how many runs to show; title — header text or null to hide | Live, subscribed panel |
| <TriggerSnapshotView snapshot variant?='compact'\|'full' /> | one snapshot from the inspector buffer | Render a single run row (compact) or expanded JSON (full) |
Roadmap
The standalone (in-browser, postMessage-driven) panel and the Chrome DevTools wrapper land in V1.1 — see extensions/chrome-devtools for the manifest stub.
Documentation
Full documentation, recipes and API reference at https://triggeryjs.github.io/packages/devtools-panel/.
Related packages
@triggery/core— Required peer.@triggery/react— Required peer — these are React components.@triggery/devtools-redux— Stream runtime events into the Redux DevTools extension.@triggery/devtools-bridge— Page-side bridge for external inspectors.
See the full package list in the repo README.
License
MIT © Aleksey Skhomenko
