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

@ng-annotate/angular

v0.10.0

Published

Angular library for ng-annotate-mcp — browser overlay for annotating components and routing instructions to an AI agent

Downloads

5,191

Readme

@ng-annotate/angular

Angular library for ng-annotate-mcp — a dev-only toolchain addon that lets you annotate components directly in the browser and have an AI agent (Claude) act on those annotations in real time.

Heavily inspired by agentation.dev — check it out for the original concept.

How it works

  1. Press Alt+Shift+A in the browser to enter inspect mode
  2. Click any component and type an annotation (instruction for the agent)
  3. The agent reads the annotation via MCP, edits the relevant files, and resolves it
  4. The browser hot-reloads automatically

Install

ng add @ng-annotate/angular

The schematic configures everything automatically:

  • Switches the Angular dev server to @ng-annotate/angular:dev-server (handles WebSocket + manifest injection — no separate config file or proxy needed)
  • Adds provideNgAnnotate() to app.config.ts
  • Creates the MCP config file for your AI editor (.mcp.json for Claude Code, .vscode/mcp.json for VS Code, or both)

Works with both @angular/build:dev-server and the legacy @angular-devkit/build-angular:dev-server builder.

Manual install

npm install @ng-annotate/angular --save-dev

angular.json — change the serve builder:

{
  "projects": {
    "your-app": {
      "architect": {
        "serve": {
          "builder": "@ng-annotate/angular:dev-server"
        }
      }
    }
  }
}

src/app/app.config.ts

import { ApplicationConfig } from '@angular/core';
import { provideNgAnnotate } from '@ng-annotate/angular';

export const appConfig: ApplicationConfig = {
  providers: [
    provideNgAnnotate(),
  ],
};

No template changes needed — the overlay is injected automatically.

Usage

Once installed:

1. Start the dev server

ng serve

2. Start the agent polling loop

Tell your agent to watch for annotations. In Claude Code:

/mcp ng-annotate start-polling

The agent will drain any queued annotations and then enter a watch_annotations loop — processing browser annotations as they arrive and editing files automatically. It runs until you end the conversation.

The start-polling prompt works with any MCP-compatible AI editor.

3. Annotate in the browser

Open your Angular app in the browser, press Alt+Shift+A to enter inspect mode, click a component, type your instruction, and submit. The agent picks it up within seconds, edits the file, and the browser hot-reloads.

Keyboard shortcuts

| Shortcut | Action | |---|---| | Alt+Shift+A | Toggle inspect mode | | Click component | Open annotation panel | | Esc | Cancel / go back |

API

provideNgAnnotate()

Standalone providers function for Angular 21+. Registers InspectorService, BridgeService, and dynamically mounts the overlay component to document.body during app initialization. Only active in dev mode.

import { provideNgAnnotate } from '@ng-annotate/angular';

export const appConfig: ApplicationConfig = {
  providers: [provideNgAnnotate()],
};

NgAnnotateModule

For NgModule-based apps:

import { NgAnnotateModule } from '@ng-annotate/angular';

@NgModule({
  imports: [NgAnnotateModule],
})
export class AppModule {}

Related packages

| Package | Purpose | |---|---| | @ng-annotate/mcp-server | MCP server exposing tools to the AI agent | | @ng-annotate/vite-plugin | For non-Angular-CLI Vite projects (Vue, Svelte, etc.) |

License

MIT