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

@upgoose/browser

v0.1.3

Published

Upgoose error tracking SDK for browsers

Readme

@upgoose/browser

Lightweight error tracking SDK for browser applications. Captures unhandled exceptions, promise rejections, and manual error reports — with breadcrumbs, PII scrubbing, and zero dependencies.

Install

npm install @upgoose/browser

Quick start

import upgoose from '@upgoose/browser';

upgoose.init({
  apiKey: 'ug_...',          // from your project's DSN
  apiUrl: 'https://api.upgoose.app',
  environment: 'production',
  release: '1.2.3',          // optional, enables release tracking
});

Errors are captured automatically. That's it.

Manual capture

// Capture an exception
try {
  riskyOperation();
} catch (err) {
  upgoose.captureException(err);
}

// Capture a message
upgoose.captureMessage("Payment flow failed", "warning");

User context

upgoose.setUser({ id: '123', email: '[email protected]' });

Tags

upgoose.setTag('team', 'checkout');

Configuration

| Option | Type | Default | Description | |--------|------|---------|-------------| | apiKey | string | required | API key from your project DSN | | apiUrl | string | required | Upgoose API base URL | | environment | string | — | e.g. 'production', 'staging' | | release | string | — | App version or git SHA | | sampleRate | number | 1 | 0–1, fraction of events to capture | | maxBreadcrumbs | number | 50 | Max breadcrumbs retained | | beforeSend | function | — | Transform or drop events before send | | captureConsole | boolean | true | Log console.error/warn as breadcrumbs | | captureClicks | boolean | true | Log click events as breadcrumbs | | captureNavigation | boolean | true | Log route changes as breadcrumbs | | captureNetwork | boolean | true | Log fetch/XHR as breadcrumbs | | captureUnhandled | boolean | true | Global error + rejection handlers |

What gets captured

  • Unhandled exceptions (window.onerror)
  • Unhandled promise rejections
  • Breadcrumbs: clicks, navigation, console, fetch/XHR (with timing)
  • Browser context: user agent, viewport, language
  • Page URL (sensitive query params automatically redacted)

What doesn't get sent

  • No cookies, localStorage, or session data
  • No DOM snapshots or session replay
  • No performance traces
  • Sensitive URL params (token, key, secret, password, auth, session, jwt) are redacted before leaving the browser

Filtering events

upgoose.init({
  apiKey: '...',
  apiUrl: '...',
  beforeSend(event) {
    // Drop events from browser extensions
    if (event.stack?.includes('chrome-extension://')) return null;
    // Redact custom fields
    delete event.context?.sensitiveField;
    return event;
  },
});

Bundle size

~3 KB gzipped. Zero dependencies.

Documentation

Full integration guide: upgoose.app/docs

Switching from another error tracking tool? Upgoose accepts standard error event payloads — migration guide

License

BSD-3-Clause