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

@cngx/doctor

v0.2.0

Published

Deterministic project-wiring scanner for cngx consumer apps: the whole-project checks ESLint's per-file scope cannot see, as an npx-able CI gate.

Readme

@cngx/doctor

A deterministic project-wiring scanner for apps that consume @cngx/*. It catches the mistakes ESLint's per-file scope cannot see - the ones that need a whole-project view - and exits non-zero when an error-severity finding trips, so a consumer CI job can gate on it directly.

Usage

npx @cngx/doctor [projectDir] [--json]

projectDir defaults to the current directory. Default output is human-readable; --json emits the machine contract. --help and --version do what they say, and an unknown flag is warned about on stderr rather than silently ignored. The exit code follows lint semantics: 0 when clean or when only warn-severity findings exist (they are still reported in the output), non-zero when any error-severity finding exists - wire it straight into a CI step:

- run: npx @cngx/doctor

Each finding is an object:

{
  "id": "toaster-without-withtoasts",
  "message": "why it is wrong",
  "fixHint": "how to fix it",
  "severity": "error",
  "file": "src/app.ts"
}

file is present only when the finding points at a specific source; --json emits the array of these objects.

Checks

  • toaster-without-withtoasts - a CngxToaster / CngxAlerter / CngxBanner (or the *On bridges) is used but the matching provideFeedback(withToasts()/withAlerts()/withBanners()) root opt-in is missing, so the feedback surface has no host to render into.
  • track-b-css-not-imported - a cngx directive whose visual theming lives in the Track-B stylesheet is imported, but no app style entry wires @cngx/themes/cngx.css - neither an @import in a global stylesheet nor a direct listing in a build styles array - so it renders unstyled. Style entries resolve from angular.json, from Nx project.json files (root, apps/*, libs/*), and from the conventional src/styles.* defaults.
  • floating-fallback-missing - @floating-ui/dom is installed but provideFloatingFallback() is never called, so browsers without CSS Anchor Positioning get no positioning fallback.

Charter

The doctor owns exactly one class of defect: silent wiring failures. A wiring mistake it catches produces no throw and logs nothing - the app just renders wrong or does nothing, with no signal to the developer. The doctor makes that silence loud.

It deliberately does not cover throw-based errors. When a required provider is genuinely missing at runtime, Angular's dependency injector already throws and Angular's ErrorHandler already surfaces it; that path is loud on its own and is out of scope here. The check set stays small and silent-wiring-only on purpose - adding checks outside that charter is a separate decision, not a drop-in.

One known detection bound: symbol usage is read from named runtime imports (import { CngxToaster } from '@cngx/...'). A namespace import (import * as feedback from '@cngx/...') is not matched - the miss direction is a skipped finding, never a false positive.