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

@scoova/monitor-web

v1.5.0

Published

Scoova Monitor Web SDK — Error tracking, analytics, performance, and logging for web apps

Readme

Scoova Monitor — Web SDK

Browser SDK for error tracking, analytics, page-view tracking, network performance, and Web Vitals. Pure TypeScript, no framework deps. ES2020.

Install

NPM (bundled)

npm install @scoova/monitor-web
import { ScoovaMonitor } from '@scoova/monitor-web'

ScoovaMonitor.init('sm_your_api_key')

Script tag (CDN)

The published package is served from jsDelivr automatically — no build step:

<script src="https://cdn.jsdelivr.net/npm/@scoova/[email protected]/dist/monitor.js"></script>
<script>ScoovaMonitor.init('sm_your_api_key')</script>

Prefer to self-host? Build it (npm run build) and serve dist/monitor.js from your own domain.

Configuration

ScoovaMonitor.init('sm_your_api_key', {
  endpoint: 'https://monitor.scoo-va.info',   // self-hosted? change this
  enableErrorTracking: true,
  enablePerformance: true,
  enablePageViews: true,
  enableNetworkTracking: true,
  enableConsoleErrors: true,
  samplingRate: 1.0,                           // 0.0 – 1.0
  flushIntervalMs: 300_000,                    // 5 minutes
  maxBatchSize: 50,
})

The Web SDK does not probe for third-party scripts and does not collect location — see the SDK documentation for the full collection inventory.

API

Identify the user

ScoovaMonitor.setUserId('user_123')

The user ID is hashed before it leaves the browser. Without setUserId the SDK falls back to an anonymous installation ID stored in localStorage.

Track events

ScoovaMonitor.trackEvent('checkout_started', {
  plan: 'annual',
  amount: '29.99',
})

Track page views

Auto-tracked when enablePageViews: true (the default). Manual:

ScoovaMonitor.trackPageView('/checkout')

Capture errors

Uncaught errors and unhandled promise rejections are captured automatically when enableErrorTracking: true. Manual:

try {
  await riskyWork()
} catch (e) {
  ScoovaMonitor.captureError(e as Error)
}

Breadcrumbs

ScoovaMonitor.addBreadcrumb('Started photo upload', 'media')

Tagged loggers

const log = ScoovaMonitor.logger('payment')
log.info('Started checkout', { amount: '29.99' })
log.error('Card declined', { code: 'card_declined' })

Right-to-erasure (GDPR / CCPA)

ScoovaMonitor.clearLocalUserData()

Wipes queued events from localStorage, pending crash payloads, breadcrumbs, the anonymous installation ID, the session counter, and the first-launch marker. Pair with a server-side DELETE /v1/ingest/me/{userId}.

Manual flush

await ScoovaMonitor.flush()

The SDK auto-flushes every 5 minutes, on visibilitychange → hidden (via sendBeacon when available), and when the batch threshold is hit. Manual flush is rarely needed.

Source maps

For de-obfuscated stack traces in the dashboard, upload your bundle's source maps after each release:

With the package installed, the scoova-upload-sourcemaps CLI is on your project's path:

npx scoova-upload-sourcemaps \
    --api-key sm_your_api_key \
    --version 1.0.0 \
    --dir ./dist

See the SDK documentation for the full setup including CSP allowlists.

Building from source

npm install
npm run build       # emits dist/monitor.js

License

Apache 2.0.