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

vibecode-check

v0.4.0

Published

Your React code's health check-up. One command. Zero config. Actually fixes your code.

Readme

vibecode-check

Your React code's health check-up. One command. Zero config. Actually fixes your code.

npm version License: MIT

Lightweight React code health CLI with autofix — no ESLint dependency, framework auto-detection (Next.js, Vite, Remix, React), and a copy-paste fix for every issue. Run it once and get a score, a clear report, and fixes you can apply with --fix or paste into your AI assistant with --ai.


Quick start

npx vibecode-check .

That's it. Framework is detected from your package.json; no config required.

In a terminal (TTY), you get an interactive UI: use arrow keys to move, Enter to expand categories and open rule details, f to apply fixes for the selected rule, q to quit. Use --no-interactive for static output (e.g. in scripts or CI).

# Apply safe fixes automatically
npx vibecode-check . --fix

# Get a badge for your README
npx vibecode-check . --badge

Why vibecode-check?

| | vibecode-check | ESLint + plugins | Biome | |--|-------------|------------------|--------| | React/Next aware | Yes, built-in | Via many plugins | Limited | | Autofix out of the box | Yes | Per-rule | Yes | | Zero config | Yes | No (config required) | Yes | | Single binary / one tool | Yes (Node) | No (config chain) | Yes | | Score + categories | Yes (0–100, by category) | No | No | | AI-friendly output | --ai one-paste block | No | No | | Bundle size | Small, no ESLint | Large | Small |

vibecode-check focuses on 24 high-impact rules (correctness, performance, accessibility, best practice) with a clear report and a fix suggestion — or autofix — for each. No plugin matrix, no shared config to maintain.


What you see

  vibecode-check v0.3.0
  next  ·  127 files  ·  0.8s

  ────────────────────────────────────────

  CORRECTNESS                          92/100
  ✗  missing-use-client (2)        [fixable]
  ✗  fetch-in-effect (1)

  PERFORMANCE                          78/100
  ⚠  heavy-import (3)
  ⚠  large-component (1)

  ACCESSIBILITY                        85/100
  ⚠  a11y-label (2)
  ⚠  a11y-interactive (1)

  BEST PRACTICE                        90/100
  ⚠  no-console-log (4)           [fixable]

  ────────────────────────────────────────

  OVERALL SCORE

     ███████████████████████░░  82 / 100
                                    Solid

  2 fixable with --fix  ·  6 errors  ·  11 warnings

  ────────────────────────────────────────

Install

npx vibecode-check .

Or install globally:

npm install -g vibecode-check
vibecode-check .

Usage

vibecode-check [path] [options]

| Option | Description | |--------|-------------| | --next | Use Next.js rule profile | | --react | Use React profile | | --vite | Use Vite profile | | --remix | Use Remix profile | | --fix | Apply autofixes (prompts if uncommitted changes) | | --fix-dry-run | Show files that would be fixed | | -v, --verbose | Show file:line and snippet per issue | | --format json | Machine-readable JSON output | | --ai | Single block for pasting into an AI assistant | | --badge | Output shields.io badge markdown for README | | --ci-comment | Output markdown for GitHub PR comment | | --strict | Exit 1 on warnings too | | -r, --rule <id> | Run only one rule | | --list-rules | List rules for selected framework |


Rules

Correctness

| Rule | Severity | Autofix | Description | |------|----------|---------|-------------| | missing-use-client | error | yes | Next.js: hook without "use client" | | fetch-in-effect | error | — | fetch() inside useEffect | | no-state-in-ref | warning | — | useRef with value that may need re-render |

Performance

| Rule | Severity | Autofix | Description | |------|----------|---------|-------------| | effect-set-state | warning | — | Multiple setState in one useEffect | | unnecessary-use-effect | warning | — | Effect only syncs one value or event flag | | merge-state-into-reducer | warning | — | 4+ useState in one component | | effect-as-handler | warning | — | useEffect as event handler | | large-component | warning | — | Component too long / too many hooks or JSX | | index-as-key | warning | yes* | Array index as key (*when item.id exists) | | heavy-import | warning | — | Heavy lib without lazy load | | no-array-spread-in-jsx | warning | — | Spread in .map() — pass explicit props |

Next.js

| Rule | Severity | Autofix | Description | |------|----------|---------|-------------| | use-search-params | warning | — | useSearchParams without Suspense | | img-not-optimized | warning | — | <img> instead of next/image |

Accessibility

| Rule | Severity | Autofix | Description | |------|----------|---------|-------------| | a11y-autofocus | warning | — | autoFocus a11y | | a11y-label | warning | — | Form control without label | | a11y-interactive | warning | — | Click without keyboard handler | | a11y-role | warning | — | Interactive element without role |

Best practice

| Rule | Severity | Autofix | Description | |------|----------|---------|-------------| | no-console-log | warning | yes | console.log in source | | no-inline-styles | warning | — | style={{}} — use CSS module or Tailwind | | no-nested-ternary-jsx | warning | — | Nested ternary in JSX | | prefer-named-export | warning | — | Prefer named over default export | | no-anonymous-default-export | warning | — | Name component for DevTools | | prefer-early-return | warning | — | if/else both return — use early return | | no-prop-drilling | warning | — | 4+ props — consider Context or state lib |


Config

Optional vibechecker.config.json or .vibechecker.json in project root:

{
  "extends": "strict",
  "thresholds": { "error": 50, "warn": 70 },
  "ignore": {
    "rules": ["no-console-log"],
    "files": ["src/generated/**"]
  },
  "rules": {
    "large-component": "off",
    "fetch-in-effect": "error"
  },
  "categoryWeights": {
    "accessibility": 1.5
  },
  "strict": false,
  "showEmoji": false
}
  • extends"strict" or "relaxed" preset.
  • thresholdserror: exit 1 if score below; warn: exit 1 if below when strict.
  • rules — Per-rule "error" | "warning" | "off".
  • categoryWeights — Override category weights for scoring.

Badge

Add a score badge to your README:

npx vibecode-check . --badge

Paste the output into your README. The badge color reflects the score (green / yellow / orange / red).


CI and PR comment

Run vibecode-check in CI and optionally post the score as a PR comment:

# .github/workflows/vibecheck.yml
- run: npx vibecode-check . --ci-comment > vibecode-check-comment.md
  continue-on-error: true

See .github/workflows/vibecheck-pr-comment.yml for a full example.


Programmatic API

import { scan, computeScore, applyFixes } from 'vibecode-check';

const { diagnostics, totalFiles } = await scan({
  targetPath: './src',
  framework: 'next',
  configIgnoreFiles: [],
  configIgnoredRules: new Set(),
});

const score = computeScore(diagnostics, totalFiles, {
  categoryWeights: { accessibility: 1.5 },
});
const modified = applyFixes(diagnostics, { dryRun: true });

Contributing

We welcome contributions. One rule = one file + a test when possible. See CONTRIBUTING.md for how to add a new rule and run tests.


License

MIT