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

@argusdev/sdk-node

v0.4.0

Published

Argus SDK for Node.js — uncaught exceptions, unhandled rejections, Express middleware, and source context: the crashing code lines, read at capture and shown in the dashboard.

Readme

@argusdev/sdk-node

Node.js SDK for Argus — captures uncaught exceptions and unhandled rejections, with an optional Express error handler. Every event ships with source context: the actual code lines around the crash, read at capture time.

Install

npm install @argusdev/sdk-node

Usage

import { init } from "@argusdev/sdk-node";

init({ dsn: "https://<publicKey>@<host>/<projectId>", environment: "production" });

process.on("uncaughtException") and process.on("unhandledRejection") are wired automatically. On an uncaught exception the event is sent, then the process exits 1 (crash behavior preserved).

Express

Add the error handler after your routes, before your own:

import { argusErrorHandler } from "@argusdev/sdk-node";

app.use(argusErrorHandler());

It captures the error with request context, then passes it along — it observes, never absorbs.

Source context (v0.4+)

On a server, the crashing source sits on the same disk — so at capture time the SDK reads the ±5 lines around each in-app stack frame and attaches them to the event. The Argus dashboard renders the snippet with the crashing line highlighted:

applyDiscount in /app/dist/services/checkout.js:3:27
   1  export function applyDiscount(cart, coupon) {
   2    // expired coupons come back undefined
 ▌ 3    const discount = coupon.percentOff / 100;   ← the crash
   4    const subtotal = cart.items.reduce(…)
   5    return subtotal * (1 - discount);

No source maps, no build step, no configuration. In-app frames only (node_modules and node: internals are skipped), lines clipped to 200 chars, at most 10 frames per event, and any read failure silently degrades to "no snippet" — context reading can never break error reporting.

One thing to know: the lines around a crash site travel inside the event, exactly like Sentry's equivalent feature — if a secret is hardcoded next to a crashing line, it ships too. Keep secrets in env vars, not source.

MIT © Treasure Odetokun