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

@steadwing/node

v0.1.3

Published

Steadwing Node SDK — auto-captures exceptions, error logs and HTTP breadcrumbs

Readme

Steadwing Node SDK

Error monitoring with AI-powered Root Cause Analysis for Node.js applications.

npm | Docs | Discord


Overview

The Steadwing Node SDK auto-instruments your application to capture exceptions, error logs, and HTTP breadcrumbs and then sends them to Steadwing for automated Root Cause Analysis.

Key features:

  • Automatic exception capture (uncaughtException + unhandledRejection)
  • console.error(), winston, and pino error-level log forwarding
  • HTTP request breadcrumbs for debugging context
  • Built-in data scrubbing for sensitive fields
  • Framework integrations for Express and Fastify

Installation

npm install @steadwing/node

Requires Node.js 18+

Quick Start

const steadwing = require("@steadwing/node");

steadwing.init({ apiKey: "st_your_api_key" });

That's it. Steadwing is now capturing errors in your application.

Configuration

steadwing.init({
  apiKey: "st_...",          // Required: your API key
  service: "my-service",    // Service name for grouping (default: "default")
  env: "PROD",              // Deployment environment (default: "PROD")
  enabled: true,            // Set false to disable
});

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | - | Your Steadwing API key (required) | | service | string | "default" | Service name for grouping errors | | env | string | "PROD" | Deployment environment ("PROD", "DEV", etc.) | | enabled | boolean | true | Toggle SDK on/off |

Note: Only events sent with env="PROD" are considered for auto-monitoring. Events from other environments are received but will not trigger automated RCA.

Usage

Automatic Capture

Once initialized, Steadwing automatically captures:

  • Unhandled exceptions - uncaughtException and unhandledRejection
  • Error logs - console.error(), winston error-level, pino error-level
  • Breadcrumbs - outgoing HTTP/HTTPS requests (rolling buffer of last 100)

Manual Capture

const steadwing = require("@steadwing/node");

// Capture a specific exception
try {
  riskyOperation();
} catch (err) {
  steadwing.captureException(err);
}

// Capture a message
steadwing.captureMessage("Deployment completed", "info");

Integrations

| Framework | What's Captured | |-----------|----------------| | Express | Route errors with request context (method, path, headers) | | Fastify | Route errors with request context via onError hook | | winston | Error-level log capture (auto-detected) | | pino | Error-level log capture (auto-detected) |

Express

const steadwing = require("@steadwing/node");
const express = require("express");

steadwing.init({ apiKey: "st_..." });

const app = express();
app.get("/", (req, res) => res.send("ok"));

// Add as the last middleware
app.use(steadwing.expressErrorHandler());

app.listen(3000);

Fastify

const steadwing = require("@steadwing/node");
const fastify = require("fastify");

steadwing.init({ apiKey: "st_..." });

const app = fastify();
app.register(steadwing.fastifyErrorHandler());

app.listen({ port: 3000 });

Winston and pino are captured automatically when installed, no extra code needed.

Data Scrubbing

Sensitive data is automatically scrubbed from captured events. Keys matching the following patterns (case-insensitive) have their values replaced with [REDACTED]:

password · passwd · secret · api_key · apikey · token · auth · authorization · cookie · csrf · session · credit_card · ssn

TypeScript

Full TypeScript support with exported types:

import { init, captureException, captureMessage, expressErrorHandler } from "@steadwing/node";
import type { SteadwingConfig } from "@steadwing/node";

const config: SteadwingConfig = {
  apiKey: "st_...",
  service: "my-service",
};

init(config);

Contributing

git clone https://github.com/steadwing/steadwing-node.git
cd steadwing-node
npm install
npm run build
npm test

Community

  • Discord - Ask questions, share feedback, and connect with the team
  • GitHub Issues - Report bugs or request features

License

This project is licensed under the Apache License 2.0.