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

@umbrelog/browser

v1.0.1

Published

Browser Error Capture for Umbrelog, an AI-powered Log Management Platform — same log pipeline as Node

Readme

@umbrelog/browser

CI

Umbrelog Browser Error Capture — the Browser runtime of the Umbrelog SDK for Umbrelog, an AI-powered Log Management Platform.

Browser logs enter the same ingestion pipeline as Node logs. They are not a separate product.

This package is not RUM, Session Replay, Performance Monitoring, or Browser Observability.

Requirements

  • Modern browsers with fetch (and ideally keepalive support)

Install

npm install @umbrelog/browser

Create a Browser Client Token

In the Umbrelog dashboard → Account settingsBrowser client tokens, create a token (ubc_…).

Do not put a server API key (dl_…) in browser bundles. Server keys can access more than log ingest.

Quick start

import { createLogger } from '@umbrelog/browser';

const logger = createLogger({
  clientToken: 'ubc_…',
  service: 'web',
  application: 'checkout-web', // or app: 'checkout-web'
  env: 'production',
  release: '1.4.2', // optional
});

logger.error('Checkout failed', { orderId: 'ord-1' });

Automatic capture (default on):

  • window.onerror
  • unhandledrejection

Use application when one organization has several frontends (checkout-web, admin-panel, marketing-site, docs) while service remains the registry / investigation scope.

Optional singleton

import { init, getLogger } from '@umbrelog/browser';

init({
  clientToken: 'ubc_…',
  service: 'web',
  application: 'checkout-web',
  env: 'production',
});

getLogger()?.error('Something went wrong');

Supported frameworks

  • React
  • Next.js
  • Vue
  • Angular
  • Svelte
  • Remix

All frameworks use the same Browser SDK. There is no separate React/Next/Vue package — call createLogger / init once at app startup (client-side only).

Correlation (optional)

You can attach trace_id, execution_id, and correlation_id via config or per-log attributes. Automatic distributed tracing is not implemented yet.

Sampling (future-ready)

createLogger({
  clientToken: 'ubc_…',
  service: 'checkout-web',
  sampleRate: 1,              // default 100%
  maxEventsPerMinute: undefined,
});

What is captured vs not

| In scope | Out of scope | |----------|----------------| | JS errors (window.onerror) | Session Replay | | Unhandled promise rejections | RUM / Web Vitals | | Manual logger.error/warn/info | Network / performance monitoring | | | Console interception / DOM recording |

Runtime identity

Browser logs include:

  • runtime = browser
  • platform = web
  • source = browser (or window.onerror / unhandledrejection)

Documentation

License

ISC — see LICENSE.