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

testvibe-telemetry

v1.1.0

Published

Drop-in server telemetry for Node.js apps — reports CPU, memory, an optional live session count, and application errors to TestVibe, rendered next to your load test results.

Readme

testvibe-telemetry

npm

Drop-in server telemetry for Node.js applications. Reports your server's CPU, memory, an optional session count, and application errors to TestVibe — so you can see why the server behaves the way it does under load.

Server vitals render in your load test results, right next to the client-side charts; application errors are grouped and persisted under Dashboard → Telemetry → Errors & exceptions.

The agent polls for active runs while idle and sends samples while a load run is active. Error reports are independent of load runs. It has no dependencies; network failures are handled in the background and each request is bounded to 10 seconds. Polling timers do not keep an otherwise finished process alive.

Running .NET? Use the TestVibe.Telemetry NuGet package instead.

Install

npm install testvibe-telemetry

Requires Node.js 18+ (uses the built-in fetch).

Quick start

Start the agent once at boot with your TestVibe server URL, a workspace API key (TestVibe → Settings → CLI & API keys), and your project id (shown in Settings → Telemetry):

const { startTestVibeLoadAgent } = require('testvibe-telemetry');

startTestVibeLoadAgent({
  server: 'https://app.testvibe.com',
  apiKey: 'tvb_…',                    // Settings → CLI & API keys
  project: '<your-project-id>',       // Settings → Telemetry
  sessions: () => myActiveSessions,   // optional — unlocks Sessions & Memory/session
});

That's it. The agent quietly polls TestVibe and, while a load run is active for your project, samples every ~2 seconds and streams CPU, memory, and sessions into the run's results.

Options

| Option | Required | Description | | --- | --- | --- | | server | yes | TestVibe server URL, e.g. https://app.testvibe.com. | | apiKey | yes | Workspace API key (tvb_…). | | project | yes | Project id from Settings → Telemetry. | | source | no | Label for this server in the results (default: hostname). | | sessions | no | () => number — live session count callback. | | sampleSeconds | no | Seconds between samples during a run (default 2). | | idleSeconds | no | Seconds between polls while idle (default 10). | | captureErrors | no | Observe fatal exceptions without changing Node's exit behavior (default true). |

Application errors

The agent observes fatal exceptions through Node's uncaughtExceptionMonitor, including unhandled rejections that Node raises as exceptions. It preserves Node's normal crash behavior. Delivery at process exit is best-effort and is not guaranteed; report handled errors through the returned handle while the app is running. If your app installs its own rejection handler, call reportError there.

const telemetry = startTestVibeLoadAgent({ /* … */ });

try {
  doWork();
} catch (err) {
  telemetry.reportError(err);
  throw err;
}

Opt out of automatic capture with captureErrors: false.

Call telemetry.stop() during shutdown or when replacing the agent. It cancels pending requests, removes the error monitor, and discards any unsent reports.

License

Copyright © ICE TEA GROUP LLC. All rights reserved.