vite-plugin-vue-inspector weekly downloads statistics
By webfansplz · npm · Vite plugins
Jump to local IDE source code when clicking Vue elements in the browser.
vite-plugin-vue-inspector has 658,020 recorded weekly downloads on npm, a decrease of 46.0% over the past 30 days, ranking #246 of 2,322 tracked listings.
About vite-plugin-vue-inspector
vite-plugin-vue-inspector
Jump from a Vue element in the browser to its source file in your editor.
This package is Vue 3 and Vite only. It records source locations from Vue's compiled render output with Vite source maps, so it no longer injects visible data-v-inspector attributes into the DOM. The browser overlay is drawn by client/overlay with DOM/SVG APIs instead of a Vue SFC. It can also register itself as a Vite DevTools dock action through @vitejs/devtools-kit.
Install
pnpm add -D vite-plugin-vue-inspector
Vite
import Vue from '@vitejs/plugin-vue'
import Inspector from 'vite-plugin-vue-inspector'
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [Vue(), Inspector()],
})
Press Command+Shift on macOS or Ctrl+Shift on Windows/Linux to toggle the inspector. Click a highlighted element to open the source location in your editor.
Nuxt
Use the Vite plugin directly and append the client loader to Nuxt's entry module:
import Inspector from 'vite-plugin-vue-inspector'
import { defineNuxtConfig } from 'nuxt/config'
export default defineNuxtConfig({
vite: {
plugins: [
Inspector({
appendTo: /\/entry\.m?js$/,
}),
],
},
})
Vite DevTools
Vite DevTools integration is enabled by default:
Inspector({
viteDevtools: true,
})
When the dock action is activated, the inspector is enabled and editor opening goes through the Vite DevTools RPC.
Options
interface VitePluginInspectorOptions {
enabled?: boolean
toggleComboKey?: string | false
toggleButtonVisibility?: 'always' | 'active' | 'never'
toggleButtonPos?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
appendTo?: string | RegExp
lazyLoad?: number | false
disableInspectorOnEditorOpen?: boolean
launchEditor?: string
reduceMotion?: boolean
viteDevtools?: boolean
}
Client API
The overlay exposes a browser control object:
window.__VUE_INSPECTOR__?.enable()
window.__VUE_INSPECTOR__?.disable()
window.__VUE_INSPECTOR__?.toggleEnabled()
Headless helpers are also available:
import {
events,
findTraceAtPointer,
findTraceFromElement,
isEnabled,
} from 'vite-plugin-vue-inspector/client/listeners'
To use the built-in DOM overlay directly:
if (import.meta.hot) import('vite-plugin-vue-inspector/client/overlay')
Playgrounds
pnpm play:vue
pnpm play:nuxt
Description from the npm listing.
- debug
- devtools
- inspector
- vite
- vite-plugin
- vscode
- vue
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (122)Similar npm Vite plugins plugins
All 20 vite-plugin-vue-inspector alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/vite-plugin-vue-inspector. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.