npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fdemb1/vue-scan

v0.0.3

Published

Performance tracking toolkit for Vue

Readme

⚡ Vue Scan

Vue Scan automatically detects performance issues in your Vue app.

  • Requires minimal code changes — just drop it in
  • Highlights exactly the components that re-render
  • Tracks mount, render, and patch timing per component
  • Always accessible through an in-page toolbar

Quick Start

import '@fdemb1/vue-scan/auto'

That's it. Open your app and the overlay + toolbar will appear automatically.

Install

npm install @fdemb1/vue-scan

Or drop in a script tag — no install needed:

<script src="//unpkg.com/@fdemb1/vue-scan/dist/auto.global.js"></script>

Note: Vue 3 is required as a peer dependency. For production builds, set __VUE_PROD_DEVTOOLS__ to true in your bundler config.

Vite

// vite.config.ts
export default defineConfig({
  define: {
    __VUE_PROD_DEVTOOLS__: true,
  },
})

Nuxt

// nuxt.config.ts
export default defineNuxtConfig({
  vite: {
    define: {
      __VUE_PROD_DEVTOOLS__: true,
    },
  },
})

Usage

Auto Mode

Import anywhere in your app to start tracking immediately:

import '@fdemb1/vue-scan/auto'

Manual Mode

For more control over when and how tracking starts:

import { startTracking } from '@fdemb1/vue-scan'

const instrumentation = startTracking({
  overlay: true,
  logToConsole: false,
})

API Reference

Starts tracking component lifecycle and performance events.

interface Options {
  /** Show the in-page visual overlay @default true */
  overlay?: boolean
  /** Log component events to console @default false */
  logToConsole?: boolean
}

Returns the Instrumentation instance, or null if not in a browser.

Returns a Map<number, ComponentPerfData> snapshot of all tracked components:

interface ComponentPerfData {
  name: string
  initTime: number
  renderTime: number
  renderCount: number
  patchTime: number
  patchCount: number
  mountTime: number
  lastUpdate: number
}

Clears all collected performance data.

Low-level API to hook into Vue's DevTools performance events directly:

createInstrumentation({
  onComponentAdd({ instance, uid }) {},
  onComponentUpdate({ instance, uid }) {},
  onComponentRemove({ instance, uid }) {},
  onPerfStart({ uid, instance, type, time }) {},
  onPerfEnd({ uid, instance, type, time }) {},
})

Why Vue Scan?

Vue's reactivity system is powerful, but it can be hard to tell which components are re-rendering and why. Unnecessary renders silently degrade performance — especially in large apps with deep component trees.

Vue Scan makes this visible. It hooks into Vue's DevTools instrumentation to highlight every component render in real time, so you can spot the hot paths and fix them before they become a problem.

Acknowledgments

License

MIT