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

@whatitbroke/angular

v1.0.4

Published

Angular adapter, ErrorHandler, DI analyzer, and RxJS tracker for WhatItBroke

Readme

@whatitbroke/angular

Angular Adapter, Global ErrorHandler, and Dependency Injection / Change Detection Analyzer

npm version License: MIT

@whatitbroke/angular provides deep root-cause analysis for Angular 15–19 applications, specializing in Dependency Injection failures, RxJS unhandled errors, and Change Detection bugs.


Installation

npm install @whatitbroke/angular @whatitbroke/core @whatitbroke/shared

Quickstart

1. Register WhatItBrokeErrorHandler in AppModule or app.config.ts

Standalone Application (app.config.ts):

import { ApplicationConfig, ErrorHandler } from '@angular/core';
import { WhatItBrokeErrorHandler } from '@whatitbroke/angular';

export const appConfig: ApplicationConfig = {
  providers: [
    { provide: ErrorHandler, useClass: WhatItBrokeErrorHandler }
  ]
};

NgModule (app.module.ts):

import { NgModule, ErrorHandler } from '@angular/core';
import { WhatItBrokeErrorHandler } from '@whatitbroke/angular';

@NgModule({
  providers: [
    { provide: ErrorHandler, useClass: WhatItBrokeErrorHandler }
  ]
})
export class AppModule {}

Key Capabilities

1. Dependency Injection Analyzer (DIAnalyzer)

Diagnoses common, frustrating Angular DI exceptions:

  • NullInjectorError: No provider for X!: Parses the injector path hierarchy, identifies the missing service token, and generates the fix:
    - @Injectable()
    + @Injectable({ providedIn: 'root' })
  • NG0200: Circular dependency detected: Isolates the exact cyclic loop between services.
  • NG0100: ExpressionChangedAfterItHasBeenCheckedError: Identifies synchronous state mutations inside lifecycle hooks (ngAfterViewInit) that violate change detection.

2. Programmatic Angular Adapter

import { AngularAdapter } from '@whatitbroke/angular';
import { WhatItBrokeCore } from '@whatitbroke/core';

const core = new WhatItBrokeCore();
const adapter = new AngularAdapter(core);

// Analyze Angular exception:
const report = await adapter.handleAngularError(error);
console.log(report.rootCause.recommendation);

Zero-Bloat Guarantee

@whatitbroke/angular is lightweight (~5.7 kB) and contains zero React, Vue, or backend Node.js code. @angular/core is an optional peerDependency.

License

MIT © WhatItBroke Team