@spectyra/devtools
v0.1.10
Published
Lit + re-exports for Spectyra browser devtools and monitor strip (pairs with SDK Phase 6 dev bridge)
Downloads
884
Maintainers
Readme
@spectyra/devtools
Browser helpers for Spectyra AI monitoring (see docs/SPECTYRA_AI_MONITOR_SPEC.md).
- Re-exports the vanilla floating panel from
@spectyra/sdk(mountSpectyraDevtools,shouldMountDevtoolsByDefault). - Registers
<spectyra-monitor-strip>— a Lit element that pollsGET {baseUrl}/__spectyra/monitor/summary(Phase 6 dev bridge). Use in local dev with your Node server’screateSpectyraDevBridgeConnectMiddleware.
Install
pnpm add @spectyra/devtoolsLit strip
Split frontend + API? Load GET {yourApi}/__spectyra/overlay-bootstrap.js in index.html before this package so baseUrl is set automatically (see @spectyra/auto README).
import "@spectyra/devtools";
// In HTML (e.g. Vite dev index): baseUrl '' when same origin serves the bridge
document.body.innerHTML += '<spectyra-monitor-strip baseUrl=""></spectyra-monitor-strip>';Attributes: baseUrl (default ""), poll-interval-ms (default 3000).
Safety
The strip only fetches summary JSON (counts and USD rollups). It does not send provider keys.
