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

@iteraai/angular-component-inspector

v0.1.0

Published

Browser bridge, iteration runtime, and Angular CLI source metadata builders for the Itera Angular component inspector SDK.

Readme

@iteraai/angular-component-inspector

Browser bridge, iteration runtime, and Angular CLI source metadata builders for Angular apps embedded in the hosted Itera editor.

This package provides the Angular implementation of the component inspector SDK for browser-based embedded apps. The supported integration path is Angular browser development mode only.

Detailed customer integration guidance lives at iteraai.github.io/docs. Use this README for install commands, public entrypoints, and the current Angular bootstrap contract.

Installation

npm install @iteraai/angular-component-inspector @iteraai/inspector-protocol @angular/core

Peer dependency support:

  • @angular/core: ^18.0.0 || ^19.0.0 || ^20.0.0 || ^21.0.0

This package targets Angular browser DOM apps running in development mode. Production-mode builds, SSR-only entrypoints, and non-DOM renderers are out of scope for this package.

Public Entry Points

| Import path | Purpose | | --------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | @iteraai/angular-component-inspector | Root exports for bootstrap helpers, bridge helpers, and Angular adapter/runtime config. | | @iteraai/angular-component-inspector/embeddedBootstrap | Embedded bootstrap helpers for client-startup bridge initialization. | | @iteraai/angular-component-inspector/bridgeRuntime | Low-level bridge initialization and teardown. | | @iteraai/angular-component-inspector/iterationInspector | Element-selection runtime and message types for iteration mode. |

Embedded Bridge Quick Start

Initialize the inspector during client startup:

import { bootstrapApplication } from '@angular/platform-browser';
import { initDevEmbeddedInspectorBridge } from '@iteraai/angular-component-inspector';
import { bootIterationInspectorRuntime } from '@iteraai/angular-component-inspector/iterationInspector';
import { AppComponent } from './app/app.component';
import { appConfig } from './app/app.config';

const bridge = initDevEmbeddedInspectorBridge();

bootIterationInspectorRuntime();
bootstrapApplication(AppComponent, appConfig);

window.addEventListener('beforeunload', () => {
  bridge.destroy();
});

The Angular integration path is registration-free. Apps do not need to register Angular roots manually with the inspector runtime.

Angular CLI Builder Integration

The supported Angular source-metadata contract is builder-based. Development builds that run through the package-provided builders attach project-relative source.file plus required 1-based source.line, with additive source.column when the transform can provide it cheaply.

Apps keep the integration surface small:

  • one startup bridge bootstrap call
  • one Angular CLI builder swap for build
  • one Angular CLI builder swap for serve
  • no per-component decorators, wrappers, or manual registration

Representative angular.json target wiring:

{
  "projects": {
    "app": {
      "architect": {
        "build": {
          "builder": "@iteraai/angular-component-inspector:application"
        },
        "serve": {
          "builder": "@iteraai/angular-component-inspector:dev-server",
          "options": {
            "buildTarget": "app:build"
          }
        }
      }
    }
  }
}

inspectorSourceMetadata.enabled defaults to true for development-like builds and can be set to false to opt out. Production-like builds still delegate to Angular CLI, but source metadata injection is disabled automatically.

If the builder path is not enabled, the runtime bridge still works, but supported Angular builds do not guarantee TreeNode.source.file and TreeNode.source.line.

Package Surface Summary

  • The standard embedded path uses the root export or @iteraai/angular-component-inspector/embeddedBootstrap.
  • Use @iteraai/angular-component-inspector/bridgeRuntime when you need lower-level bridge lifecycle or adapter control.
  • Use @iteraai/angular-component-inspector/iterationInspector for the separate element-selection runtime on itera:iteration-inspector.
  • Use the package builders in angular.json when you need the supported Angular source metadata contract.
  • The exported adapter targets are auto, angular-dev-mode-globals, and noop.
  • The current supported runtime scope is Angular browser DOM apps embedded in the hosted editor flow while Angular dev-mode globals are available.