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

ngx-mlb

v0.3.2

Published

An Angular (8+) monorepo library builder. Builds Angular libraries and their dependent monorepo libraries in a single run.

Readme

NGX MONOREPO LIBRARY BUILDER: ngx-mlb

Why?

Angular 8+ with its 'projects' folder structure supports building libraries individually. When this library uses another library from the same monorepo as a dependency, it will fail. This builder accepts a libraries.json containing all the monorepo libraries with their dependencies on other monorepo libraries. This dependency graph is used to build libraries and their dependencies in the correct order. If a library is a dependency for multiple libraries, it will only be built once.

Usage

Create a libraries.json

Create a libraries.json file and place it next to your root package.json. The contents of your libraries.json file should be as follows:

{
    "libraries": {
        "my-library-1": [],
        "my-library-2": ["my-library-1"],
        "my-library-3": ["my-library-1", "my-library-2"]
    }
}

The keys should contain the names of your projects as they exist in the projects folder.

The value should be an array containing the dependencies that exist inside the monorepo.

Build a library

Calling ngx-mlb from the command line allows you to add a specific library to build.

Build using explicit call usage on command line:

ngx-mlb --libraries libraries.json --library my-library-1

Build using package.json script call usage on command line:

{
    "scripts": {
        "build:library": "ngx-mlb --libraries libraries.json",
        "build:libraries": "ngx-mlb --libraries libraries.json -all",
    }
}
npm run build:library -- --library my-library-1

npm run build:libraries

note the -- to signal npm to pass the params down to ngx-mlb.

Options

You can either specify a single library, or flag it to build all libraries.

--libraries     // library resource file containing all monorepo libraries with dependencies
--library       // build a specific
--all           // build all

Examples

ngx-mlb --libraries libraries.json --library my-library-1

ngx-mlb --libraries libraries.json --library @namespace/my-library-4

ngx-mlb --libraries libraries.json --all