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

@probara/angular

v0.4.0

Published

Probara error monitoring for Angular: an ErrorHandler, router context and an HttpClient interceptor on top of @probara/browser.

Readme

@probara/angular

Error monitoring for Angular with Probara, on top of @probara/browser: the errors Angular's ErrorHandler gets are sent as unhandled errors, each event carries the route it happened on, failed navigations become breadcrumbs, and HttpClient failures of the URLs you choose are sent as events. It re-exports the whole @probara/browser API (captureException, setUser, withScope…).

Requires Angular 19 or later. Events report the SDK probara.javascript.angular with this package's version, and list @probara/browser among its packages.

Install

npm install @probara/angular

Start

Add provideProbara to your application's providers, with the DSN of your Probara project:

import { provideHttpClient, withInterceptors } from '@angular/common/http';
import { bootstrapApplication } from '@angular/platform-browser';
import { provideRouter } from '@angular/router';
import { probaraHttpInterceptor, provideProbara } from '@probara/angular';

bootstrapApplication(AppComponent, {
  providers: [
    provideProbara({
      dsn: 'https://<public key>@<probara api host>/',
      release: '[email protected]',
      environment: 'production',
      httpErrors: { targets: ['https://api.shop.example/payments'] },
    }),
    provideRouter(routes),
    provideHttpClient(withInterceptors([probaraHttpInterceptor])),
  ],
});

provideProbara starts @probara/browser when the app starts (it takes every @probara/browser option), and replaces Angular's ErrorHandler with ProbaraErrorHandler. Call either provideProbara or init, not both. With zone.js, it starts @probara/browser outside Angular's zone, so its listeners, timers and replay never run change detection; your beforeSend runs outside the zone too.

What is sent

  • Errors. Everything Angular's ErrorHandler gets, as unhandled errors (mechanism: angular). The error is still logged to the console as Angular does (ERROR …); pass logErrors: false to stop that. For an HttpErrorResponse, the error behind it is sent, or Http failure response for <url>: <status> <body>; a 400, 401 or 404 response is never sent.
  • Routes. Each event is tagged route with the path of the route it happened on, such as /projects/:projectId/errors/:issueId.
  • Navigations. Each router navigation is a navigation breadcrumb with the URL and the route paths it went from and to; failed navigations are angular.router breadcrumbs. @probara/browser also records the clicks, the console and every HttpClient request.
  • HttpClient failures. With probaraHttpInterceptor, a failed response whose URL starts with one of httpErrors.targets (or matches a regular expression) and whose status is in httpErrors.statuses (500–599 unless given) is sent as an event, once: ProbaraErrorHandler leaves it out if it reaches it too. 400, 401 and 404 are never sent. A response whose server already sent the error with @probara/node (it names it in probara-replay-event) is never sent again.
  • Replays. With replay: { enabled: true }, once Probara asks for the replay of an error, the tab keeps uploading its replay, and every later error of the tab links to it. Requests to httpErrors.targets (or replay.propagationTargets) carry probara-replay-id, so the server errors they cause show that replay too (how it works).

Use your own ErrorHandler

ProbaraErrorHandler needs no injection: extend it, or create it yourself.

{ provide: ErrorHandler, useFactory: () => new ProbaraErrorHandler({ logErrors: false }) }

License

Apache-2.0