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

@booboo.dev/js

v0.9.0

Published

Official JavaScript SDK for booboo.dev error tracking

Readme

@booboo.dev/js

CI npm version License: MIT

Official JavaScript SDK for booboo.dev error tracking. Zero runtime dependencies.

Installation

npm install @booboo.dev/js

Quick Start

import { init } from "@booboo.dev/js";

init({ dsn: "your-dsn-here" });

That's it. Unhandled errors and promise rejections are automatically captured.

Manual Capture

import { captureException, captureMessage, flush } from "@booboo.dev/js";

try {
  riskyOperation();
} catch (error) {
  captureException(error);
}

captureMessage("Something noteworthy happened", "warning");

// Drain pending events (e.g. before shutdown)
await flush();

User Context

import { setUser } from "@booboo.dev/js";

setUser({
  id: "123",
  email: "[email protected]",
  username: "alice",
});

Breadcrumbs

Breadcrumbs are captured automatically (console, clicks, navigation, fetch). You can also add custom ones:

import { addBreadcrumb } from "@booboo.dev/js";

addBreadcrumb({
  type: "custom",
  category: "auth",
  message: "User logged in",
});

Configuration

import { init } from "@booboo.dev/js";

init({
  dsn: "your-dsn-here",
  endpoint: "https://api.booboo.dev/ingest/", // default
  environment: "production",
  breadcrumbs: true, // or { console: true, clicks: true, navigation: true, fetch: true }
  maxBreadcrumbs: 30,
  tags: { version: "1.2.3" },
  context: { version: "1.2.3" },
  user: { id: "123" },
  ignoreErrors: [
    "ResizeObserver",           // exact match on error.name
    /network/i,                  // regex on name or message
    /Loading chunk \d+ failed/,  // ignore lazy-load failures
  ],
  captureHttpErrors: {
    targets: [/api\.myapp\.com/],
  },
  beforeSend: (event) => {
    // Return null to drop the event, or modify and return it
    return event;
  },
});

| Option | Default | Description | |--------|---------|-------------| | dsn | (required) | Your project's DSN from booboo.dev | | endpoint | https://api.booboo.dev/ingest/ | Ingestion endpoint URL | | environment | "" | Environment name (e.g. "production", "staging"). Attached to every event. | | release | "" | Release identifier (e.g. a git SHA). Used to match uploaded source maps so minified production stack traces resolve to your original code. | | debug | false | Log every send and drop to the console. Rejected/undeliverable events are always reported with console.warn (once per minute per cause). | | handshake | true | Send a one-off install ping on init() so the dashboard shows the project as connected before the first error. | | breadcrumbs | true | Enable/disable automatic breadcrumb capture | | maxBreadcrumbs | 30 | Maximum breadcrumbs to keep in buffer | | tags | {} | Custom tags attached to every event | | context | {} | Custom context attached to every event | | user | null | Initial user context | | ignoreErrors | [] | Errors to suppress. Strings match error.name exactly; RegExps test against both error.name and error.message. | | captureHttpErrors | false | Auto-capture HTTP errors from fetch. true = 5xx, [429, 500] = specific codes, or object with statuses and targets | | beforeSend | null | Hook to modify or drop events before sending |

HTTP Error Capture

Automatically capture HTTP errors from fetch() requests:

import { init } from "@booboo.dev/js";

// Capture all 5xx responses
init({ dsn: "your-dsn-here", captureHttpErrors: true });

// Or specify exact status codes
init({ dsn: "your-dsn-here", captureHttpErrors: [429, 500, 502, 503] });

// Filter by URL to avoid capturing errors from third-party services
init({
  dsn: "your-dsn-here",
  captureHttpErrors: {
    targets: ["api.myapp.com", /^https:\/\/internal\./],
  },
});

// Combine specific statuses with URL filtering
init({
  dsn: "your-dsn-here",
  captureHttpErrors: {
    statuses: [429, 500, 502, 503],
    targets: ["api.myapp.com"],
  },
});

Axios

For Axios, use the axiosErrorInterceptor helper:

import axios from "axios";
import { axiosErrorInterceptor } from "@booboo.dev/js";

const api = axios.create({ baseURL: "/api" });
api.interceptors.response.use(null, axiosErrorInterceptor());

// Custom status codes
api.interceptors.response.use(null, axiosErrorInterceptor({ statuses: [429, 500] }));

React

import { ErrorBoundary } from "@booboo.dev/js/react";

function App() {
  return (
    <ErrorBoundary fallback={<div>Something went wrong</div>}>
      <MyApp />
    </ErrorBoundary>
  );
}

The fallback prop also accepts a render function:

<ErrorBoundary fallback={(error, reset) => (
  <div>
    <p>Error: {error.message}</p>
    <button onClick={reset}>Try again</button>
  </div>
)}>
  <MyApp />
</ErrorBoundary>

React Query

Automatically capture errors from TanStack Query / React Query. Query keys, hashes, and mutation IDs are included as context for easier debugging:

import { QueryClient, QueryCache, MutationCache } from "@tanstack/react-query";
import { boobooQueryIntegration } from "@booboo.dev/js/react";

const b = boobooQueryIntegration();
const queryClient = new QueryClient({
  queryCache: new QueryCache(b.queryCache),
  mutationCache: new MutationCache(b.mutationCache),
});

Vue

import { createApp } from "vue";
import { init } from "@booboo.dev/js";
import { BoobooVue } from "@booboo.dev/js/vue";

init({ dsn: "your-dsn-here" });

const app = createApp(App);
app.use(BoobooVue());
app.mount("#app");

Features

  • Automatic capture of unhandled errors and promise rejections
  • Automatic HTTP error capture from fetch() with captureHttpErrors
  • Stack trace parsing for Chrome, Firefox, and Safari
  • Source context enrichment
  • Automatic breadcrumbs (console, clicks, navigation, fetch)
  • React ErrorBoundary component
  • React Query / TanStack Query integration
  • Axios error interceptor
  • Vue 3 plugin
  • flush() to drain pending events before shutdown
  • beforeSend hook for event filtering
  • Custom tags, context, and user data
  • Non-blocking event delivery with page visibility flush
  • Zero runtime dependencies
  • ESM and CJS dual output
  • Full TypeScript support

License

MIT