# ng-packagr/ng-packagr

Compile and package Angular libraries in Angular Package Format (APF)

Repository: https://github.com/ng-packagr/ng-packagr
Canonical: https://ross.abutalabs.com/products/ng-packagr
License: MIT
License Family: permissive
Topics: angular, angular-library, component-library, typescript, css, scss, html, less, stylus, angular-package-format, angular-cli
Last push: 2026-08-26T18:11:28+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 3395, "days_push": 7, "days_rel": 29, "gap_med": 20, "n_releases_24m": 30}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1857, forks 300 (observed 2026-08-28T04:05:45.046945+00:00)

## What it is
ng-packagr is a build tool that compiles and packages Angular libraries into the Angular Package Format (APF), producing distribution-ready npm packages. It bundles TypeScript sources into FESM2022, generates type definitions, and handles stylesheets and template inlining.

## Use cases
- build an angular library for npm publishing
- package a component library in angular package format
- compile typescript angular sources into fesm bundles
- generate .d.ts type definitions for my angular library
- publish multiple angular libraries from a monorepo
- inline scss styles and html templates in an angular package
- make my library consumable by angular cli and webpack

## When to choose
- you are developing and publishing an Angular library to npm
- you need output conforming to the Angular Package Format
- you maintain multiple Angular libraries in a monorepo
- you want automatic FESM bundling, type definitions, and stylesheet preprocessing

## When to avoid
- you are building an Angular application rather than a library
- you publish a plain TypeScript/JavaScript package not tied to Angular
- you need a general-purpose bundler like webpack, esbuild, or rollup

## Facets
- artifact type: library
- maturity: active
- function: build-tool, compiler, cli, css-framework
- domain: web-development, frontend, developer-tools
- platform: cli, cross-platform
- tags: angular, angular-package-format, npm-packaging, typescript, scss, component-library, monorepo, command-line, nodejs

## Member repositories
- ng-packagr/ng-packagr (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:45.046945+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:16:37.162685+00:00, confidence not recorded.
  - readme: https://github.com/ng-packagr/ng-packagr (fetched 2026-08-28T04:05:45.046945+00:00, sha 95c2693b7a49)
- Data as of 2026-08-30T08:39:29.467469+00:00.
