# olov/ng-annotate

Add, remove and rebuild AngularJS dependency injection annotations

Repository: https://github.com/olov/ng-annotate
Canonical: https://ross.abutalabs.com/products/ng-annotate
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2020-03-13T20:39:57+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4747, "days_push": 2364, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2003, forks 150 (observed 2026-08-28T04:06:04.538630+00:00)

## What it is
ng-annotate is a JavaScript tool that adds, removes, and rebuilds AngularJS dependency injection annotations, usable both as a CLI and a library. It uses static analysis to detect AngularJS patterns so code can be safely minified.

## Use cases
- add angularjs dependency injection annotations before minification
- remove di annotations from an existing codebase
- rebuild annotations after refactoring controller parameters
- annotate angularjs code using ngInject prologue directives
- prepare angularjs source for uglify or other minifiers

## When to choose
- you maintain a legacy AngularJS 1.x codebase that needs DI annotations for safe minification
- you need to strip or rebuild checked-in annotations during refactoring

## When to avoid
- you are starting a new project (AngularJS is end-of-life)
- you use modern Angular (2+), which does not need this tool
- you want an actively maintained tool - use babel-plugin-angularjs-annotate instead

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: parser, build-tool, developer-tools
- domain: web-development, frontend, developer-tools
- platform: cli, cross-platform
- tags: angularjs, dependency-injection, annotations, minification, code-transformation, deprecated, nodejs

## Member repositories
- olov/ng-annotate (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:04.538630+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:01:55.594265+00:00, confidence not recorded.
  - readme: https://github.com/olov/ng-annotate (fetched 2026-08-28T04:06:04.538630+00:00, sha 3e97e3ce8377)
  - registry_npm: https://registry.npmjs.org/ng-annotate (fetched 2026-08-29T10:41:50.699847+00:00, sha bd3fb7aed25d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
