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

@idevconn/bugfender

v0.3.0

Published

Bugfender SDK helpers with built-in PII / noise filtering and typed tags. ~120 LOC. Framework-agnostic.

Readme

@idevconn/bugfender

Bugfender SDK helpers with built-in PII / noise filtering and typed tags. Framework-agnostic. The Bugfender SDK is a peer dependency.

Features

  • initBugfender() accepts a config object — no implicit env reads, so the pkg works in browser apps, server bundles, or tests.
  • PII-aware: every report runs the message + (optional) stack through a regex set covering emails, JWTs, Bearer tokens, long hex blobs, and phone numbers. Matches are silently dropped before they reach the SDK.
  • Built-in noise filter for ResizeObserver loop / Script error / Non-Error promise rejection.
  • Typed tags via reportError<MyTag>("…") — narrow with a union type per app.
  • Safe to call any helper before initBugfender() — they no-op so callers don't need to guard.
  • The pkg's containsPII() is exported as a standalone utility too, useful for last-line-of-defense checks at logging boundaries.

Install

npm install @idevconn/bugfender @bugfender/sdk

Quick start

import { initBugfender, reportError, setBugfenderDeviceKey } from "@idevconn/bugfender";

// Once at app start
initBugfender({
  appKey: import.meta.env.VITE_BUGFENDER_APP_KEY,
  version: import.meta.env.VITE_APP_VERSION,
  printToConsole: import.meta.env.DEV,
});

// On auth state change
setBugfenderDeviceKey(user?.id ?? null);

// Anywhere you'd otherwise log a swallowed error
reportError("api", `HTTP ${err.status}`, err);

Tag narrowing

import { reportError } from "@idevconn/bugfender";

type AppTag = "auth" | "payment" | "invoices" | "subscriptions" | "ml" | "ui" | "api";

reportError<AppTag>("payment", "PayPal capture failed", err);
// reportError<AppTag>("typo", "..."); // ← type error

API

| Export | Purpose | | ---------------------------- | ----------------------------------------------------------------------------------------- | | initBugfender(opts) | Initialize the SDK. Returns false if appKey is empty. Idempotent. | | isBugfenderEnabled() | True after a successful init. | | setBugfenderDeviceKey(id) | Attach / clear the current user's user.id device key. | | containsPII(text) | True when text matches any active PII pattern. | | reportError(tag, text, e?) | Send an error log. Drops the call when uninitialized OR when text contains PII. | | reportWarning(tag, text) | Send a warn log. Same drop semantics. | | reportIssue(title, body) | Send a high-visibility issue. Dropped if either field contains PII. | | DEFAULT_PII_PATTERNS | Read-only — the default regex set. Use to build your own variant of containsPII. | | DEFAULT_NOISE_PATTERNS | Read-only — browser-cruft patterns folded into Bugfender.init({ ignoreException }). | | Bugfender | Re-exported from @bugfender/sdk for escape-hatch use cases that bypass the PII filter. |

License

Apache-2.0