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

@whatitbroke/node

v1.0.4

Published

Node.js debug adapter, async context tracker, and HTTP/DB event collectors

Readme

@whatitbroke/node

Node.js Debug Adapter, Process Context Collector, and HTTP/Database Event Trackers

npm version License: MIT

@whatitbroke/node captures uncaught exceptions, unhandled Promise rejections, HTTP request lifecycles, and database query executions in Node.js server environments.


Installation

npm install @whatitbroke/node @whatitbroke/core @whatitbroke/shared

Quickstart

1. Initialize the Node Adapter

Hooks process.on('uncaughtException') and process.on('unhandledRejection') and captures process runtime metrics (memory, uptime, Node version):

import { NodeAdapter } from '@whatitbroke/node';
import { WhatItBrokeCore } from '@whatitbroke/core';

const core = new WhatItBrokeCore();
const adapter = new NodeAdapter(core);

// Start listening for crashes
adapter.install();

2. Express / Connect HTTP Request Tracker

Tracks incoming HTTP route paths, request methods, and request bodies (redacted) leading up to an error:

import express from 'express';
import { HttpTracker } from '@whatitbroke/node';

const app = express();

// Add HTTP tracker middleware
app.use(HttpTracker.middleware());

app.get('/api/users/:id', async (req, res) => {
  // If an error happens here, the request URL, parameters, and duration
  // will appear in the chronological timeline of the crash report!
  const user = await getUser(req.params.id);
  res.json(user);
});

3. Database Query Tracker

Monitors SQL/ORM queries and flags null or empty result sets which are the #1 cause of TypeError: Cannot read properties of undefined:

import { DbTracker } from '@whatitbroke/node';

async function queryUser(userId: string) {
  const tracker = DbTracker.startQuery('SELECT * FROM users WHERE id = ?', [userId]);

  const rows = await db.rawQuery('SELECT * FROM users WHERE id = ?', [userId]);

  // Ends tracking and automatically registers null/empty result alerts:
  tracker.end(rows);
  return rows[0];
}

What It Collects

  • Runtime: Node.js version, platform, architecture, PID, process uptime, heap memory usage.
  • Execution Path: Async stack frames, incoming HTTP requests, and preceding database queries.
  • Redaction: All passwords, auth tokens, cookies, and database connection secrets are redacted prior to reporting.

License

MIT © WhatItBroke Team