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

vuejs-audit

v1.0.1

Published

Diagnose and fix performance, security, and architecture issues in your Vue.js/Nuxt codebase

Readme

vuejs-audit

Diagnose and fix your Vue.js code in one command.

Scans your codebase for security, performance, correctness, and architecture issues, then outputs a 0-100 health score with actionable diagnostics.

Install & run

npx vuejs-audit .

Use --verbose to see file paths and line numbers:

npx vuejs-audit . --verbose

Output only the score (useful in CI):

npx vuejs-audit . --score

What it checks

22+ rules across 7 categories:

| Category | Rules | | --------------- | ----- | | Reactivity | Missing :key in v-for, v-if with v-for, direct prop mutation, ref without .value, Options API usage | | Correctness | console.log in components, empty <script> blocks, missing <script setup>, unused component imports | | Security | v-html XSS risk, hardcoded API keys/secrets, private runtime config leak (Nuxt) | | Performance | Inline object props, index as :key, components >300 lines, deep watchers | | Accessibility | Missing alt on <img>, click handlers without keyboard support, missing form labels | | Architecture | Vuex in Vue 3, mixins usage, deprecated deep selectors (>>>, /deep/), unscoped styles, :global() overuse | | Nuxt | Missing error.vue, raw fetch() instead of useFetch, missing definePageMeta |

Auto-detection

  • Nuxt-specific rules only run in Nuxt projects
  • Vue 3 migration rules (e.g. Vuex, Options API) only fire when relevant
  • TypeScript hints only appear if TS is detected

Score

| Score | Label | | ------ | ----------- | | 85-100 | Excellent | | 70-84 | Good | | 50-69 | Needs work | | 0-49 | Critical |

Errors weigh 5pt, warnings 1pt.

Configuration

Create vue-audit.config.json at your project root:

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

Or use the "vueAudit" key in package.json.

Inline suppression

<!-- vue-audit-disable-next-line -->
<div v-html="trustedContent"></div>

<div v-html="content"></div> <!-- vue-audit-disable-line -->

Programmatic API

import { diagnose } from 'vuejs-audit/api';

const result = await diagnose('./my-app');

console.log(result.score);        // { score: 78, label: 'Good', errors: 2, warnings: 8 }
console.log(result.project);      // { framework: 'Nuxt', vueVersion: '^3.5.0', typescript: true }
console.log(result.diagnostics);  // Diagnostic[]

CLI Options

Usage: vuejs-audit [options] [directory]

Options:
  --verbose            Show file paths and line numbers for each issue
  --score              Output only the health score (for CI)
  --fail-on <level>    Exit with code 1 on "error", "warning", or "none" (default: "none")
  -V, --version        Output the version number
  -h, --help           Display help

GitHub Actions

- uses: actions/checkout@v4
- name: Run vuejs-audit
  run: npx vuejs-audit . --fail-on error

License

MIT