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

@remylagerweij/vue-doctor

v1.1.2

Published

Diagnose and fix performance issues in your Vue.js app

Downloads

710

Readme

Vue Doctor 🩺

Diagnose and fix performance issues in your Vue.js app. Get a 0–100 health score with actionable recommendations.

Quick Start

npx vue-doctor@latest

What It Checks

Vue Doctor runs three parallel analysis passes on your codebase:

1. Oxlint + Vue Doctor Plugin (46 rules)

Custom ESTree-based rules for Vue.js:

| Category | Rules | Examples | |----------|-------|---------| | Reactivity | 7 | no-fetch-in-watch, no-watch-for-computed, prefer-computed | | Ecosystem | 4 | pinia-no-destructure, router-no-string-push | | Architecture | 2 | no-giant-component, no-nested-component-definition | | Performance | 16 | no-transition-all, no-layout-property-animation, async-parallel | | Security | 2 | no-secrets-in-client-code, no-v-html | | Bundle Size | 5 | no-full-lodash-import, no-moment, prefer-dynamic-import | | Correctness | 4 | no-array-index-as-key, no-prevent-default, no-direct-dom-manipulation | | Nuxt | 5 | nuxt-no-img-element, nuxt-no-a-element, nuxt-async-client-component | | Server | 1 | server-no-console-in-handler |

2. ESLint Plugin Vue (19 template rules)

Template-level analysis with eslint-plugin-vue:

  • vue/require-v-for-key, vue/no-use-v-if-with-v-for
  • vue/no-mutating-props, vue/no-ref-as-operand
  • vue/no-side-effects-in-computed-properties
  • vue/component-name-in-template-casing
  • And more...

3. Dead Code Detection

Powered by Knip:

  • Unused files, exports, types, dependencies

Usage

# Scan current directory
vue-doctor

# Scan a specific project
vue-doctor --project ./my-vue-app

# Score only (for CI)
vue-doctor --score

# Verbose output with file details
vue-doctor --verbose

# Only lint checks (skip dead code)
vue-doctor --no-dead-code

# Only dead code checks (skip lint)
vue-doctor --no-lint

# Scan only changed files (diff mode)
vue-doctor --diff main

Configuration

Create a vue-doctor.config.json in your project root:

{
  "ignore": {
    "rules": ["no-giant-component"],
    "paths": ["legacy/**"]
  }
}

Or add to package.json:

{
  "vueDoctor": {
    "ignore": {
      "rules": ["no-prevent-default"]
    }
  }
}

Programmatic API

import { diagnose } from "vue-doctor/api";

const result = await diagnose({
  directory: "./my-vue-app",
  lint: true,
  deadCode: true,
  verbose: false,
});

console.log(result.scoreResult?.score); // 0–100
console.log(result.diagnostics.length); // number of issues

GitHub Action

- uses: remylagerweij/vue-doctor@v1
  with:
    directory: "."

Framework Support

  • Vue 3 (Composition API, <script setup>)
  • Nuxt 3 (auto-detected, enables Nuxt-specific rules)
  • Vite / Quasar / Vue CLI
  • Monorepo workspaces (npm, pnpm, yarn)

License

MIT