Svelte 5 · SvelteKit · Vite

See inside your Svelte app.

Components, reactivity and routes in the Vite DevTools dock, served by your Vite dev server.

npm install -D @sveltejs/vite-devtools-svelte @vitejs/devtools
  1. In vite.config.ts, set devtools: { apply: 'serve' } and add svelteDevtools() before sveltekit().
  2. Run your dev server and open your app.
  3. Open the Svelte tools group in the Vite DevTools dock.

Needs Vite 8.3.5 or later and Svelte 5.46.4 or later. SvelteKit 3.3.0 or later is optional.

Components panel: a filtered live component tree of a large app with an inspector showing ancestors, children and imports Components panel in the light theme with the component inspector open
Components: the live tree stays virtualized on large apps and tells you when only part of it was captured. Captured from the UI in dev-mock mode with synthetic data, before the reactivity update.

What you can see

Your running app, panel by panel.

The panels read your running app and your project while the dev server runs. Production builds are unaffected.

  • Components

    The live tree of mounted instances, virtualized for large apps, with an inspector for ancestors, children and imports.

    Panel details
  • Reactivity

    Which $state, $derived and $effect connect inside one component. Edges mean “can affect”, not a recorded cause.

    Panel details
  • State timeline

    Sampled $state changes, newest first, with the value before and after.

    Panel details
  • Routes and load functions

    The SvelteKit routes tree from your files, and how long each load function takes.

    Panel details
  • Render

    Which components render most and take the longest, per instance.

    Panel details

Reactivity in large apps

Start from the busiest components, then zoom in.

The overview counts sampled state changes and renders for each instance since it mounted, without building the whole graph. Pick one instance to see its signals and what can affect what.

  • Every view says what it covers: 200 ms sampling and caps.
  • Edges mean “can affect”. Which write changed a value is not recorded.
  • After a page reload, old component ids are refused instead of guessed.
The Reactivity panel
Local graph of ReactivePriceChart with taxRate selected; the inspector says Cause: Not recorded
Real runtime on the synthetic example app, captured in CI.
State timeline panel listing state changes with an inspector showing before and after values

Know what changed, and when.

Recent $state writes, newest first, with the value before and after. The log keeps the latest entries, not the whole session.

Dev-mock mode with synthetic data, before the reactivity update.

For AI agents

Your coding agent can read it too.

The dev server also serves an MCP endpoint with 20 read tools. Claude Code and other MCP clients get the same data as the panels, and every answer says what it covers.

Read the MCP guide

Two ways to open it

Inside Vite DevTools, or standalone.

Vite DevTools dock

Install @vitejs/devtools and set devtools: { apply: 'serve' } in your Vite config. The panels open in the dock's Svelte tools group, next to the Svelte Inspector and the Add panel for sv add-ons.

Standalone

Without Vite DevTools in your Vite config, open /.svelte-devtools/. The first visit asks for the one-time code printed in your terminal; after that the browser is trusted.

15 panels

Every panel.

Try it in your dev server.