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

@groma/scanner-angular

v0.1.3

Published

Complementary Angular framework evidence with its own compatible TypeScript tooling.

Downloads

547

Readme

Angular scanner

The Angular scanner adds concrete external-template output bindings to the TypeScript scanner evidence. Enable it alongside the Java scanner for the supported Maven and Angular application. All enabled scanners must complete before Groma updates the map.

Build and install

From the Groma checkout:

bun install --frozen-lockfile --ignore-scripts
bun plugins/scanners/angular/build.ts

From the project being scanned:

groma scanner add /absolute/path/to/groma/plugins/scanners/angular/dist/package
groma scan

The package contains a bundled ESM entry and TypeScript standard-library declarations. Consumers do not run a package build or installation script. The prototype package name is not a public publication commitment.

Prepare the application's ordinary dependencies using its package manager. The scanner reads each selected project's tsconfig.json, its configured source entry points, and the Angular resources reachable from that program. It does not install dependencies, compile application output, or run application code.

Compiler tooling

The package pins @angular/compiler and @angular/compiler-cli to 21.2.17 and its own TypeScript to 5.9.3. Angular 21.2 supports TypeScript 5.9; see the official compatibility table. The TypeScript scanner uses its own 7.1 SDK. The package build resolves every compiler TypeScript import to the scanner's 5.9.3 installation before bundling, so workspace dependency hoisting cannot substitute Groma's compiler.

The adapter uses NgtscProgram, its template type checker, and the compiler's template and TypeScript symbols. These version-specific compiler APIs are pinned with the package. Angular owns template parsing, directive matching, output binding, and handler resolution; the adapter does not recreate them. See Angular template type checking.

Supported evidence

A direct method call in an external template can bind a single resolved source output property to a source method with a body. TypeScript locates emit() calls on that exact property declaration. An emit inside an arrow callback belongs to that callback, not to the surrounding method.

The observation includes the emitting operation, handler operation, emit position, and HTML event attribute position. Positions are zero-based UTF-16 offsets; binding and invocation lines are one-based. Named bindings use the existing shared supplied-callback rule. Ordinary TypeScript evidence can remain unresolved while Angular establishes the concrete binding.

Angular reports angular Code provenance for its source contribution. The exact source path keeps one curated owner across both scanners. HTML edits participate in the existing watch lifecycle. Repeat scans retain authored architecture, and compiler errors leave the previous complete map in place.

In OKF, the result remains ordinary Code links and readable relationship rows. In C4, an Angular component is source evidence, not a new architecture level or an automatic architecture component. Core owns relationship interpretation; the plugin does not write architecture or introduce metadata.

Coverage limits

This revision qualifies the CompanyMergeDialog output-to-parent-handler flow. It does not establish injected service receivers, routing, HTTP matching, automatic Spring wiring, inline-template bindings, arbitrary handler expressions, output mutation, or exhaustive Angular runtime behavior. Unresolved or unsupported event bindings produce unsupported-angular-binding diagnostics rather than relationships. DOM events and dependency-library outputs have no supported source output provider in this rule. TypeScript semantic errors, including incompatible types, fail readiness and scanning alongside syntax and Angular compiler errors. Compiler errors fail the scan instead of yielding a partial observation. Template strictness follows the project's Angular compiler options. Groma enables the template-checker API to resolve output bindings but does not enable stricter template checks than the project requests.

Independent fixture tests load the built package and cover concrete callback endpoints, complementary TypeScript evidence, curated ownership, HTML-triggered rescan, and failure preservation. See validation for the real-project result and remaining release gates.

Nested projects

Run Groma from the repository root. The scanner finds package declarations in tracked and unignored files, including nested apps and libraries. Dependencies, dev dependencies, peer dependencies and optional dependencies identify candidates. A candidate also needs a tracked or unignored tsconfig.json and TypeScript source files belonging to that package, outside nested packages. Declaration files and inactive fixtures with a .fixture suffix do not qualify. Packages with only framework tooling dependencies are skipped. No matching project produces no evidence. Each compiler uses that project's configuration and installed dependencies; imported source in sibling repository libraries keeps its original source path. Readiness checks all selected projects. An invalid selected project fails this scanner's observation; other scanners can still update the architecture. Source and nested package/configuration changes use the shared scanner watch flow.