vite-plugin-vue-tracer weekly downloads statistics
By antfu (14 listings) · npm · Vite plugins
Tracer for the source code of elements and vdoms in Vue SFC
vite-plugin-vue-tracer has 1,194,211 recorded weekly downloads on npm, a decrease of 25.2% over the past 30 days, ranking #189 of 2,322 tracked listings.
About vite-plugin-vue-tracer
vite-plugin-vue-tracer
Tracer for the source code of elements and vdoms in Vue SFC.
This is a designed to be a replacement of vite-plugin-vue-inspector with a new approach, that utilize Vite's internal source map to resolve the source location, without injecting data-attributes to the DOM.
This plugin is also designed to be more modular, where you can use it as a standalone inspector plugin, or as a headless APIs to build your own inspector.
Usage
npm i -D vite-plugin-vue-tracer
import { defineConfig } from 'vite'
import { VueTracer } from 'vite-plugin-vue-tracer'
export default defineConfig({
plugins: [
VueTracer(),
],
})
In the your entry file, add the following code:
// Only apply in development
if (import.meta.hot) {
import('vite-plugin-vue-tracer/client/overlay').then(({ events, state }) => {
// Enables the overlay
state.isEnabled = true
events.on('hover', (info) => {
// ...
})
events.on('click', (info) => {
// ...
openInEditor(info.fullpath) // 'src/app.vue:10:1'
state.isEnabled = false
})
})
}
Of if you want headless APIs, import vite-plugin-vue-tracer/client/record instead.
if (import.meta.hot) {
import('vite-plugin-vue-tracer/client/record')
.then(({
hasData,
findTraceFromElement,
findraceFromVNode,
findTraceAtPointer,
}) => {
const el = document.querySelector('.foo')
const trace = findTraceFromElement(el)
if (trace) {
console.log(trace)
}
})
}
References
Exports
vite-plugin-vue-tracer- The Vite plugin entry, should be used invite.config.tsvite-plugin-vue-tracer/client/record- The client entry for recording the trace data, this will be automatically injected into each component by the plugin. You don't normally need to import this.vite-plugin-vue-tracer/client/listener- The client entry for adding event listeners to the DOM and listening to the mouse events. It expose a refisEnabledto control if the listeners are active. Aeventsobject is exposed for listening to those events. This entry is purely headless, does not come with any UI or styling.vite-plugin-vue-tracer/client/overlay- The builtin overlay UI for easier to use. A reactivestateobject is exposed to control the overlay's state. If you want to build your own UI, you can use thelistenerentry instead.
Sponsors
<p align="center"> <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg"> <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg' alt='Sponsors' /> </a> </p>License
MIT License © Anthony Fu
<!-- Badges -->Description from the npm listing.
- vue
- vite-plugin
- devtools
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-tracer 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-tracer. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.