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

@quanticdigit/web-errors

v1.0.2

Published

Error collection and presentation: level aggregation, a localized dialog in 31 languages, pluggable presenter.

Readme

@quanticdigit/web-errors

Error collection and presentation: level aggregation, a localized dialog in 31 languages, pluggable presenter.

This is the implementation of IErrorInfoAppender, which @quanticdigit/web-services declares and does not provide. The service layer knows that something went wrong; this knows how to say it.

Install

npm install @quanticdigit/web-errors @quanticdigit/web-services

Peer dependencies: @angular/core, devextreme, @quanticdigit/web-services.

Use it

ErrorCollector is providedIn: 'root'. Hand it to any service call:

export class UserPage {
  private readonly errors = inject(ErrorCollector);

  load(): void {
    this.users.byId(7, this.errors).subscribe((user) => …);
  }
}

Errors raised in the same turn are gathered into one dialog. Three failing calls produce three lines, not three windows the user closes without reading.

It already speaks your language

The texts ship with the package in the same 31 languages DevExtreme covers, so the dialog does not come out in English surrounded by translated components. Nothing to configure.

Three levels of customization

Nothing is mandatory. In order of weight:

One text. Load that key into your own DevExtreme catalogue; it wins over the built-in one, and the other seven stay as they are.

loadMessages({ it: { dialogTitleError: 'Ops' } });

The window. Declare ERROR_PRESENTER and ours is never even built.

{ provide: ERROR_PRESENTER, useValue: (p) => myDialog(p.title, p.message, p.errors) }

To keep the default and add to it, wrap the exported one:

{ provide: ERROR_PRESENTER, useValue: (p) => { telemetry(p); devExtremeDialogPresenter(p); } }

Everything. Implement IErrorInfoAppender yourself and this package is not needed.

A note on messages

IErrorInfoModel.message carries whatever the server put there. In products that resolve errors through a copy catalogue it is a key, not a sentence: resolve it before handing it over, or the key is what the user reads.

The family

web-utils, web-model, web-services, web-component and web-errors are released together and always share the same version. Install them at the same version.

License

Commercial. See LICENSE.txt in the package.