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

@healerlab/vue-doctor

v0.0.3

Published

Diagnose and fix issues in your Vue.js app

Readme

Vue Doctor

npm version license

🩺 Diagnose and fix issues in your Vue.js app.

One command scans your codebase for security, performance, correctness, and architecture issues, then outputs a 0–100 health score with actionable diagnostics.

How it works

Vue Doctor detects your framework (Nuxt, Vite, Vue CLI), Vue version, and project setup, then runs four analysis engines in parallel:

| Engine | What it checks | |---|---| | oxlint | Script-level: performance, security, correctness | | eslint-plugin-vue | Template-level: directives, reactivity, best practices | | Custom rules | Vue-specific anti-patterns: reactivity loss, Nuxt SSR, Pinia misuse | | knip | Dead code: unused files, exports, types, dependencies |

Quick Start

npx @healerlab/vue-doctor@latest .

Verbose mode (show file + line per issue):

npx @healerlab/vue-doctor@latest . --verbose

Install as Coding Agent Skill

Teach your AI coding agent (Cursor, Claude Code, Antigravity, Windsurf, etc.) Vue best practices:

npx @healerlab/vue-doctor install-skill

This auto-detects your coding agents and installs the skill to the correct directory. Alternatively:

curl -fsSL https://raw.githubusercontent.com/healerlab/vue-doctor/main/scripts/install-skill.sh | bash

Usage

# Full scan with summary
npx @healerlab/vue-doctor .

# Verbose — show file + line per issue
npx @healerlab/vue-doctor . --verbose

# Diff mode — scan only changed files vs main
npx @healerlab/vue-doctor . --diff

# Diff vs specific branch
npx @healerlab/vue-doctor . --diff develop

# Fix mode — structured output for AI agents
npx @healerlab/vue-doctor . --fix

# Score only (for CI gates)
npx @healerlab/vue-doctor . --score

# Skip dead code analysis
npx @healerlab/vue-doctor . --no-dead-code

Options

Usage: vue-doctor [options] [command] [directory]

Arguments:
  directory            project directory to scan (default: ".")

Options:
  -v, --version        output the version number
  --no-lint            skip linting
  --no-dead-code       skip dead code detection
  --verbose            show file details per rule
  --score              output only the score
  --diff [base]        scan only files changed vs base branch (default: main)
  --fix                output diagnostics for AI agents to auto-fix
  -h, --help           display help for command

Commands:
  install-skill        install vue-doctor skill for your AI coding agents

Custom Rules

10 rules that catch Vue-specific anti-patterns:

| Rule | What it catches | |---|---| | reactivity-destructure-props | Destructuring props loses reactivity | | reactivity-reactive-reassign | Reassigning reactive() breaks the proxy | | reactivity-ref-no-value | Using ref without .value in script | | perf-giant-component | Components over 300 lines | | perf-v-for-method-call | Method calls inside v-for | | nuxt-fetch-in-mounted | useFetch inside onMounted (SSR issue) | | nuxt-no-navigate-to-in-setup | navigateTo() without return | | pinia-no-store-to-refs | Destructuring store without storeToRefs | | pinia-direct-state-mutation | Direct store state mutation | | arch-mixed-api-styles | Mixing Options + Composition API |

GitHub Actions

# .github/workflows/vue-doctor.yml
name: Vue Doctor
on:
  pull_request:
    branches: [main]

jobs:
  health-check:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: actions/setup-node@v4
        with:
          node-version: "20"
      - run: npx @healerlab/vue-doctor@latest . --diff main --verbose

See more examples.

Configuration

Create a .vue-doctorrc in your project root:

{
  "ignore": {
    "rules": ["vue/no-v-html", "knip/exports"],
    "files": ["src/generated/**"]
  }
}

Node.js API

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

const result = await diagnose("./path/to/your/vue-project");

console.log(result.score);       // { score: 82, label: "Great" }
console.log(result.diagnostics); // Array<Diagnostic>
console.log(result.project);     // { framework: "nuxt3", vueVersion: "^3.4.0", ... }

Contributing

Contributions are welcome! Here's how to get started:

# Clone the repo
git clone https://github.com/healerlab/vue-doctor.git
cd vue-doctor

# Install dependencies
pnpm install

# Build
pnpm run build

# Run locally
node packages/vue-doctor/dist/cli.mjs . --verbose

# Run docs site
pnpm run docs:dev

Pull Request Guidelines

  • Fork the repo and create your branch from main
  • If you've added a new rule, add documentation in docs/rules/
  • Make sure the build passes (pnpm run build)
  • Keep PRs focused — one feature or fix per PR

Project Structure

vue-doctor/
├── packages/vue-doctor/src/   # Core source code
│   ├── cli.ts                 # CLI entry point
│   ├── index.ts               # Public API
│   └── utils/                 # Analysis engines & helpers
├── docs/                      # VitePress documentation
├── scripts/                   # Install scripts
└── skills/                    # AI agent skill definitions

License

MIT © HealerLab