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

@ngcorex/angular

v0.2.9

Published

Angular CLI integration for ngCorex - deterministic, governance-first design token engine with build-time CSS generation. Provides ng add support and build-time workflow wiring.

Readme

@ngcorex/angular

NPM Version NPM License Static Badge NPM Downloads GitHub Issues or Pull Requests

Angular CLI integration for ngCorex - a deterministic, governance-first design token engine with build-time CSS generation.

This package provides ng add support and workflow wiring for Angular projects.

  • It does not introduce runtime logic.
  • It does not modify components.
  • It does not generate styles at runtime.

All processing remains build-time only.


Installation

Inside an Angular project:

npx ng add @ngcorex/angular

What ng add Does

The schematic performs the following deterministic actions:

1. Adds devDependencies

"@ngcorex/cli": "^<version>"

@ngcorex/css is automatically installed as a transitive dependency of @ngcorex/cli.

ngCorex runs at build-time only, so packages are installed as dev dependencies.

Note: Dependencies are added to package.json but not installed automatically. Run npm run ngcorex:setup to install dependencies and complete setup.


2. Adds CLI Scripts

"scripts": {
  "ngcorex:init": "ngcorex init",
  "ngcorex:build": "ngcorex build",
  "ngcorex:watch": "ngcorex build --watch",
  "ngcorex:setup": "npm install && ngcorex init && ngcorex build",
  "ngcorex:dev": "npm install && ngcorex init && ngcorex build --watch",
  "ngcorex:start": "npm install && ngcorex init && ngcorex build && ng serve"
}

These scripts provide convenient workflows:

  • ngcorex:init - Creates tokens.json and ngcorex.config.ts
  • ngcorex:build - Generates CSS from tokens (one-time)
  • ngcorex:watch - Watches for changes and auto-rebuilds CSS
  • ngcorex:setup - Installs dependencies + init + build for quick setup
  • ngcorex:dev - Installs dependencies + init + build with watch mode for development
  • ngcorex:start - Installs dependencies + init + build + ng serve for complete startup

Smart start Script Modification:

The schematic intelligently modifies the existing start script:

  • If start is exactly "ng serve", it becomes "ngcorex build && ng serve"
  • If start has a custom value, it remains unchanged
  • ngcorex:start is always added as a fallback

3. Updates angular.json

Injects:

src/styles/ngcorex.css

into:

build.options.styles

This ensures generated CSS is included in Angular builds.


First-Time Setup

After installation, you have two options:

Quick Setup (Recommended)

npm run ngcorex:setup

This will:

  1. Install ngCorex dependencies
  2. Generate ngcorex.config.ts
  3. Generate tokens.json
  4. Generate src/styles/ngcorex.css

Alternatively, you can use the watch mode for development:

npm run ngcorex:dev
ng serve

This will:

  1. Install ngCorex dependencies
  2. Generate ngcorex.config.ts
  3. Generate tokens.json
  4. Generate src/styles/ngcorex.css
  5. Start watching for changes to tokens.json and ngcorex.config.ts
  6. Auto-rebuild CSS whenever tokens are modified

Manual Setup

npm run ngcorex:init
npm run ngcorex:build
ng serve

This will:

  1. Generate ngcorex.config.ts
  2. Generate tokens.json
  3. Generate src/styles/ngcorex.css
  4. Serve Angular with ngCorex styles included

Note: With manual setup, you'll need to run npm run ngcorex:build each time you modify tokens.json or ngcorex.config.ts. Alternatively, run npm run ngcorex:watch in a separate terminal for automatic rebuilds, or use npm run ngcorex:dev which combines init + watch.


Architecture

Dependency direction:

Angular Project
    ↓
@ngcorex/angular
    ↓
@ngcorex/css
    ↓
@ngcorex/cli

The core engine never depends on Angular.

This adapter exists only to reinforce workflow and CLI integration.


Versioning

The Angular adapter follows strict lockstep versioning with the ngCorex ecosystem.

Example:

@ngcorex/[email protected]
@ngcorex/[email protected]

Philosophy

ngCorex in Angular remains:

  • Deterministic
  • Constraint-driven
  • Governance-first
  • Build-time only
  • Framework-agnostic at its core