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

devpilot-plugin-vue-scan

v0.0.37

Published

Vue Scan plugin for DevPilot

Downloads

334

Readme

devpilot-plugin-vue-scan

A DevPilot plugin that exposes Vue component render performance data to LLMs via MCP.

NPM version

What It Does

  • Injects hooks into Vue 2/3 component beforeUpdate lifecycle to track re-renders in real time
  • Stores update events server-side in a circular buffer (10,000 events max)
  • Provides a queryVueScanData MCP tool that returns per-component aggregated summaries with source code locations
  • Enables LLMs to analyze render performance, identify hot components, and pinpoint the source file

Installation

pnpm add devpilot-plugin-vue-scan

Usage

Register as a DevPilot plugin in your Vite config:

import vueScanPlugin from 'devpilot-plugin-vue-scan'
import DevPilot from 'unplugin-devpilot/vite'
import { defineConfig } from 'vite'

export default defineConfig({
  plugins: [
    DevPilot({
      plugins: [vueScanPlugin],
    }),
  ],
})

How It Works

  1. Start recording — Press Ctrl+Shift+R or click the control panel's Start button
  2. Interact with the page — Component updates are captured automatically
  3. Query via MCP — LLM calls queryVueScanData to get aggregated performance data

MCP Tool: queryVueScanData

Returns per-component render performance summaries.

Parameters

| Parameter | Type | Default | Description | |-----------|------|---------|-------------| | limit | number | 50 | Max components to return | | componentName | string | - | Filter by name (partial match) | | timeRange | { start, end } | - | Filter by timestamp range (ms) | | minUpdateCount | number | - | Only components updated ≥ N times | | onlyInViewport | boolean | - | Exclude off-screen renders | | onlyUserComponents | boolean | true | Filter out library components | | includeRawEvents | boolean | false | Include individual event details | | sortBy | string | totalUpdates | totalUpdates / updatesPerSecond / componentName |

Response

{
  "components": [
    {
      "componentName": "UserList",
      "sourceLocation": "src/views/users/UserList.vue:25:5:div",
      "totalUpdates": 42,
      "updatesPerSecond": 14.0,
      "firstUpdate": 1772592779510,
      "lastUpdate": 1772592782451
    }
  ],
  "metadata": {
    "recordingStatus": "active",
    "totalEvents": 997,
    "uniqueComponents": 20,
    "bufferSize": 997,
    "bufferCapacity": 10000,
    "timeRange": { "start": 1772592779510, "end": 1772592782453 }
  }
}

User vs Library Components

Components are identified as user code when their DOM root element has a data-insp-path attribute (injected by unplugin-devpilot at build time) or when instance.type.__file points to a path outside node_modules. With onlyUserComponents: true (default), library components are filtered out.

Control Panel

A floating panel at the bottom-right corner of the page provides:

  • Start/Pause recording toggle
  • Clear recorded data
  • Event counter showing buffer usage
  • Keyboard shortcuts: Ctrl+Shift+V (toggle panel), Ctrl+Shift+R (toggle recording)

License

MIT