Skip to main content

Crate sova_devtools

Crate sova_devtools 

Source
Expand description

In-app DevTools for Sova — thin host bridge + SPA panel.

Enable only in development ([development.devtools] enabled = true or SOVA_DEVTOOLS=1). Injects into text/html responses only.

Host pages get a tiny bridge.js (bar + dock iframe). The Vue app is served at /_devtools/app. Bar toggles the dock iframe; “New tab” only opens the SPA in a browser tab (no persisted mode).

Frontend: ui/ (Vite + Vue + Tailwind + Pinia + Vue Router + TS). Build: npm --prefix ui ci && npm --prefix ui run buildassets/.

Structs§

CustomEvent
DevTools
In-app DevTools (HTML inject + SSE timeline). Disabled unless development / env.
DevToolsBag
Per-request collection bag (stored on Request extensions).
DevToolsHub
Shared DevTools state installed on the app.
HttpLine
LogLine
MemorySample
MemorySummary
QueryLine
RequestSnapshot

Constants§

DEVTOOLS_MARKER

Functions§

inject_body
Insert toolbar + assets. Returns None when already present / empty.