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-explorer

v0.0.2

Published

CLI tool and Claude plugin to search and explore components, services, directives, and other constructs in Angular projects

Readme

ng-explorer

A CLI tool to efficiently search and explore Angular components, services, directives, and other constructs in Angular projects.

Installation

npm install -g ng-explorer

Claude Code Integration

For Claude Code users, install the plugin to enable the /ng-explorer skill:

# Add the marketplace
/plugin marketplace add willmartian/claude-plugins

# Install the plugin
/plugin install ng-explorer@willmartian

Once installed, you can use /ng-explorer directly in your Claude Code sessions to search Angular constructs.

Prerequisites

ng-explorer uses Compodoc under the hood. You need to generate the documentation first:

# From repository root
npx compodoc -p tsconfig.json -e json -d . --disablePrivate --disableProtected

This creates a documentation.json file in the repository root.

Usage

Basic Search

Search for Angular constructs by name, or omit the query to list all:

# Fuzzy search for anything matching "foo"
ng-explorer foo

# List all components
ng-explorer --type component

# Search only components matching "foo"
ng-explorer foo --type component

# Search directives
ng-explorer tooltip --type directive

# Search in specific subdirectory
ng-explorer form --path "libs/common/src/components/**"

# Exact name match (no fuzzy search)
ng-explorer FooComponent --exact

# Exact match with type filter
ng-explorer BarService --exact --type injectable

Verbose API Details

Show full API details using the --verbose flag:

# View component API (exact match + verbose)
ng-explorer FooComponent --exact --verbose

The verbose view shows:

  • For Components: selector, standalone status, inputs, outputs, properties, methods, constructor dependencies
  • For Services: properties, methods, constructor dependencies
  • For Directives: selector, inputs, outputs, methods
  • For Pipes: pipe name, pure status

Custom Documentation Path

If your documentation.json is in a different location:

ng-explorer --doc-path /path/to/documentation.json foo
ng-explorer -d ./docs/documentation.json FooService --exact --verbose

Command Reference

ng-explorer [query] [options]

Search for Angular constructs by name or list all constructs.

Arguments:

  • [query] - Search query string (optional - omit to list all)

Options:

  • -d, --doc-path <path> - Path to documentation.json file (default: ./documentation.json)
  • -t, --type <type> - Filter by type: component, injectable, directive, pipe, module, class, all (default: all)
  • -p, --path <pattern> - Filter by file path pattern (supports wildcards like apps/web/** or libs/common/**)
  • -l, --limit <number> - Limit number of results (default: 50)
  • -v, --verbose - Show full API details for each result
  • -e, --exact - Use exact name matching instead of fuzzy search

Examples:

# Fuzzy search
ng-explorer foo
ng-explorer bar --type injectable

# Exact match
ng-explorer FooComponent --exact

# Show verbose API details
ng-explorer FooComponent --exact --verbose
ng-explorer foo --verbose

# Combine filters
ng-explorer foo --path "apps/web/**" --type component

# Custom documentation path
ng-explorer -d ./docs/documentation.json foo

Troubleshooting

Error: Failed to parse documentation.json

The documentation file may be corrupted. Try regenerating it:

rm documentation.json
npx compodoc -p tsconfig.json -e json -d . --disablePrivate --disableProtected

License

GPL-3.0