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

@vibecheck-watch/sdk

v0.2.5

Published

Lightweight error monitoring SDK — captures JS errors with full replay context (DOM recording, console logs, network requests, user actions)

Readme

@vibecheck-watch/sdk

Lightweight JavaScript SDK for passive error monitoring with full session replay. Captures JS errors with DOM recording, console logs, network requests, and user actions — then sends everything to VibeCheck for debugging with session replay.

Install

Script tag (easiest):

<script src="https://unpkg.com/@vibecheck-watch/sdk/dist/vibecheck.iife.js"></script>
<script>
  VibeCheck.init({
    projectKey: "proj_xxx",
    environment: "production"
  });
</script>

NPM:

npm install @vibecheck-watch/sdk
import { VibeCheck } from '@vibecheck-watch/sdk'

VibeCheck.init({
  projectKey: "proj_xxx",
  environment: "production"
})

What it captures

When a JS error occurs, the SDK flushes the last 30 seconds of:

  • DOM replay — full session recording via rrweb (mouse movements, clicks, scrolling, DOM mutations)
  • Console logs — all console.log/warn/error calls with timestamps
  • Network requests — fetch and XHR calls with status codes, timing, and errors
  • User actions — clicks, input changes, and navigation events

API

// Initialize (required)
VibeCheck.init({
  projectKey: "proj_xxx",       // Required — from your VibeCheck project
  endpoint: "https://...",      // Custom endpoint (default: VibeCheck cloud)
  bufferDuration: 30,           // Seconds of replay to keep (default: 30)
  sampleRate: 1.0,              // 0-1, percentage of errors to capture (default: 1.0)
  environment: "production",    // Environment tag
  release: "1.2.3",             // App version tag
  ignoreErrors: [               // Skip matching errors
    "ResizeObserver loop",
    /Script error/
  ],
  beforeSend: (event) => {      // Transform or filter before sending
    // return null to drop the event
    return event
  }
})

// Identify the current user (optional)
VibeCheck.identify({
  id: "user_123",
  email: "[email protected]",
  name: "Jane Doe"
})

// Capture an error manually
VibeCheck.captureError(new Error("Something went wrong"))

// Add custom context
VibeCheck.addContext({ page: "checkout", cartSize: 3 })

// Opt out of tracking (stops all recording)
VibeCheck.optOut()

How it works

  1. The SDK continuously records DOM mutations, console logs, network requests, and user actions into a circular buffer (30s window, 2MB cap)
  2. When a JS error fires (window.onerror, unhandledrejection), the SDK snapshots the current buffer
  3. After 2 seconds of no new errors, all queued errors are flushed to the VibeCheck platform
  4. Errors are deduplicated by fingerprint (normalized stack trace) — same error won't be sent twice within 60 seconds
  5. On the platform, you get a full session replay with synced console, network, and user action timelines

Privacy

  • Passwords are masked by default (<input type="password">)
  • Add vc-block class to any element to exclude it from recording
  • Add vc-ignore class to exclude an element's content but keep its structure
  • VibeCheck.optOut() stops all recording and clears buffers
  • sampleRate lets you capture only a percentage of errors
  • beforeSend hook lets you redact or drop events before they leave the browser

Browser support

Works in all modern browsers (Chrome, Firefox, Safari, Edge). No IE support.

Size

~240KB raw / ~77KB gzipped (includes rrweb recorder and pako compression)

License

MIT