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

ngcn

v1.0.4

Published

Next-Gen Angular Component CLI with themes, standalone support, and config files.

Readme

npm version

ngcn

⚡️ Next-Gen Component CLI for Angular – Generate themed, standalone-ready Angular components instantly.


✨ What is it?

ngcn is a CLI utility that helps you scaffold Angular components your way:

✅ Choose themes (e.g. Tailwind, SCSS)
✅ Support for Angular standalone components
✅ Customizable output paths
✅ User config file for defaults
✅ Works with any Angular project


🚀 Installation

You can use it directly with npx:

npx ngcn add button

Or install globally:

npm install -g ngcn

🛠️ Usage Add a new component

npx ngcn add <component-name>

Example:

npx ngcn add button

Options ✅ Choose a theme:

npx ngcn add button --theme scss

✅ Use standalone component flag:

npx ngcn add button --standalone

✅ Combine options:

npx ngcn add card --theme tailwind --standalone

Configuration file To avoid typing options every time, add a .ngcn.json config file in your Angular project root:

.your-angular-project/
  .ngcn.json

Example:

{
  "theme": "tailwind",
  "standalone": true,
  "targetPath": "src/app/ui"
}

✅ Now you can just run:

npx ngcn add button
and it will use your defaults!

📦 Template Structure ngcn comes with a set of component templates organized by theme:

templates/
  scss/
    button/
      button.component.ts
      button.component.html
      button.component.scss
  tailwind/
    button/
      ...

✅ You can extend the CLI by adding your own components in the templates folder.

🧩 How It Works ✅ Copies your chosen component template ✅ Replaces variables like:

{{ComponentName}}

{{StandaloneFlag}}

✅ Supports fully customizable theming and paths

🗂️ Example Generated Output In your Angular app:

src/app/ui/button/
  button.component.ts
  button.component.html
  button.component.scss

Example generated button.component.ts with standalone:

import { Component } from '@angular/core';

@Component({
  standalone: true,
  selector: 'app-button',
  templateUrl: './button.component.html',
  styleUrls: ['./button.component.scss']
})
export class ButtonComponent {}

🌟 Why use ngcn? ✅ Rapidly scaffold consistent, themed components ✅ Supports modern Angular standalone components ✅ Easily extendable with your own templates ✅ Simple CLI interface with powerful config options

🤝 Contributing Pull requests are welcome! Feel free to fork this repo and add:

More themes

More component templates

Additional CLI features