@fsodano/svelte-devtools-client
v0.2.2
Published
Svelte DevTools panel for components, state replay, network requests, and server traces
Downloads
413
Maintainers
Readme
Svelte DevTools — Developer panel
Inspect your running Svelte application in the Vite DevTools dock.
Provides component inspection, JSON state editing, recorded undo/redo, request mocks, and correlated SSR/SQLite details. The panel uses resizable detail panes and persisted visual preferences. It is served from built assets by the Vite plugin.
Get started
For application setup, install the Vite plugin:
npm install -D @fsodano/[email protected] @vitejs/[email protected]Follow the configuration guide. SvelteKit also needs a development-only handle hook. Requirements: Svelte 5.20+, Vite 8, and a supported Node.js version; Node.js 22.12+ is the documented workflow.
Developer and agent workflows
Inspect individual component instances and source, edit writable JSON state with recorded undo/redo, mock captured browser fetches, and follow explicitly instrumented SQLite calls within SvelteKit request traces. Nine MCP tools let an agent inspect the same data and make acknowledged state edits in a selected live session.
Runtime inspection requires an open, authorized panel. Browser mocks do not intercept server fetch or XMLHttpRequest. Query tracing is explicit and synchronous; Time Travel does not roll back database writes.
See the sample apps and local development guide. After editing panel source, rebuild the client and restart the example server.
Independent community project. Early development; APIs may change. MIT licensed.
