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

@wcgw/vibe-check

v0.1.3

Published

React performance monitoring overlay with AI/vibe-coding issue detection

Readme

@wcgw/vibe-check

React performance monitoring overlay with AI/vibe-coding issue detection. Drop-in widget that shows live FPS, Web Vitals, memory usage, and detected performance issues — and pipes them to your AI agent over MCP so it can fix what it broke.

Installation

npm install -D @wcgw/vibe-check

Peer dependencies: react >= 18, react-dom >= 18

Complete setup (3 steps)

1. Drop the widget into your app

import { PerfToggle } from '@wcgw/vibe-check'

function App() {
  return (
    <>
      <YourApp />
      {import.meta.env.DEV && (
        <PerfToggle vibeCheckProps={{ beaconUrl: 'http://localhost:4200' }} />
      )}
    </>
  )
}

Press Ctrl+Shift+P to toggle the overlay.

2. Wire the MCP server into your AI agent

Pick the line for your agent:

# Claude Code
claude mcp add vibe-check -- npx @wcgw/vibe-check-mcp

Or add it to the agent's mcpServers config (Cursor, Windsurf, Cline, Continue, Claude Desktop, Zed):

{
  "mcpServers": {
    "vibe-check": {
      "command": "npx",
      "args": ["@wcgw/vibe-check-mcp"]
    }
  }
}

3. Start your dev server and ask your agent

What's vibe-check seeing right now? Anything we should fix?

Your agent will call get_performance_snapshot, get_detected_issues, and get_fix_suggestions and walk you through the fixes.

Components

<PerfToggle />

Keyboard-toggled wrapper. Renders nothing until the shortcut is pressed.

<PerfToggle
  shortcut="ctrl+shift+p"            // Default. Supports ctrl/shift/alt/meta+key
  vibeCheckProps={{
    position: 'bottom-right',
    beaconUrl: 'http://localhost:4200',
  }}
/>

<VibeCheck />

The full overlay widget.

<VibeCheck
  enabled={true}                                       // Start/stop monitoring
  position="bottom-right"                              // 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left'
  panels={['fps', 'vitals', 'memory', 'console', 'issues']}
  beaconUrl="http://localhost:4200"                    // Optional: send data to MCP server
  onIssue={(issue) => console.warn('Issue:', issue.title)}
/>

<VibeCheckProvider />

Context provider for sharing an engine instance across components. Note: it's a re-export of Context.Provider, so you must pass value.

import { useState, useEffect } from 'react'
import { VibeCheckProvider, useVibeCheckEngine } from '@wcgw/vibe-check'
import { VibeCheckEngine } from '@wcgw/vibe-check-core'

function App() {
  const [engine] = useState(() => new VibeCheckEngine())
  useEffect(() => {
    engine.start()
    return () => engine.stop()
  }, [engine])

  return (
    <VibeCheckProvider value={engine}>
      <Dashboard />
    </VibeCheckProvider>
  )
}

function Dashboard() {
  const engine = useVibeCheckEngine()  // Same engine instance
  // ...
}

Hooks

For custom UIs and programmatic access. Each metric hook takes an enabled flag (defaults to false) and starts its own collector when enabled.

import {
  useVibeCheck,
  useFrameRate,
  useWebVitals,
  useMemory,
  useLongFrames,
  useDetectedIssues,
} from '@wcgw/vibe-check'

// Option A: use the engine, read everything from one snapshot
function Monitor() {
  const { snapshot } = useVibeCheck()
  return (
    <div>
      FPS: {snapshot.frameRate.fps} · Issues: {snapshot.issues.length}
    </div>
  )
}

// Option B: use individual collectors (each runs its own collector)
function FpsBadge() {
  const fps = useFrameRate(true)
  return <span>{fps.fps} fps</span>
}

// `useDetectedIssues` reads from a VibeCheckEngine — pass it explicitly
// or use it inside a <VibeCheckProvider value={engine}>.
function IssueList({ engine }: { engine: VibeCheckEngine }) {
  const issues = useDetectedIssues(engine)
  return <ul>{issues.map((i) => <li key={i.id}>{i.title}</li>)}</ul>
}

Available hooks:

| Hook | Returns | Notes | |---|---|---| | useVibeCheck(config?, enabled?) | { engine, snapshot } | Owns the engine. Most consumers want this. | | useFrameRate(enabled?) | FrameRateStats | Standalone collector. | | useWebVitals(enabled?) | WebVitalsStats | Standalone collector. | | useMemory(enabled?) | HeapMemory \| null | Chrome only. | | useLongFrames(enabled?) | LongFrameStats | LoAF API. | | useDetectedIssues(engine?) | readonly VibeIssue[] | Subscribes to an engine (explicit or via provider). | | useIssueStore(liveIssues) | tracked + status helpers | localStorage-backed issue tracking. | | usePreferences() | { prefs, updatePrefs, toggleMode } | UI mode + annotation visibility. | | useClipboard(resetDelayMs?) | { copiedId, copy } | Used by the prompts panel. |

AI agent integration

The widget POSTs snapshots to the MCP server's HTTP endpoint (POST /api/snapshot). The MCP server then exposes 6 tools to your agent:

  • get_performance_snapshot — current frame rate, vitals, memory, issues
  • get_detected_issues — filterable by severity / detector
  • get_fix_suggestions — markdown fix guide for one issue
  • watch_performance — long-poll for the next snapshot
  • acknowledge_issue / resolve_issue — close the loop after a fix

See @wcgw/vibe-check-mcp for full setup details across Claude Code, Cursor, Windsurf, Cline, Continue, and Claude Desktop.

Styling

All UI uses inline styles — no CSS files or external dependencies. The overlay renders at high z-index and respects prefers-reduced-motion.

License

MIT