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

@shivampaliwal24/angular-ui-library

v1.0.0

Published

A reusable Angular UI component library

Readme

Angular UI Library

A reusable Angular component and service library that you can install in any Angular project.

📦 Installation

Option 1: Install from npm (after publishing)

npm install @your-scope/angular-ui-library

Option 2: Install locally for testing

# In this library directory
npm pack

# In your Angular project
npm install /path/to/your-scope-angular-ui-library-1.0.0.tgz

🚀 Quick Start

Import Components

import { Component } from '@angular/core';
import { ButtonComponent, CardComponent } from '@your-scope/angular-ui-library';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [ButtonComponent, CardComponent],
  template: `
    <lib-card title="Welcome" [elevated]="true">
      <p>This is a reusable card component!</p>
      <div footer>
        <lib-button variant="primary" (clicked)="handleClick()">
          Click Me
        </lib-button>
      </div>
    </lib-card>
  `
})
export class AppComponent {
  handleClick() {
    console.log('Button clicked!');
  }
}

Use Services

import { Component, inject } from '@angular/core';
import { LoggerService, LogLevel } from '@your-scope/angular-ui-library';

@Component({
  selector: 'app-example',
  template: `<h1>Check Console</h1>`
})
export class ExampleComponent {
  private logger = inject(LoggerService);

  ngOnInit() {
    this.logger.setLogLevel(LogLevel.DEBUG);
    this.logger.info('Component initialized');
    this.logger.debug('Debug information', { data: 'example' });
  }
}

📚 Components

ButtonComponent

Selector: lib-button

Inputs:

  • variant: 'primary' | 'secondary' | 'success' (default: 'primary')
  • disabled: boolean (default: false)
  • type: 'button' | 'submit' | 'reset' (default: 'button')

Outputs:

  • clicked: EventEmitter

Example:

<lib-button variant="success" (clicked)="onSave()">
  Save
</lib-button>

CardComponent

Selector: lib-card

Inputs:

  • title: string (optional)
  • elevated: boolean (default: false)
  • hasFooter: boolean (default: false)

Example:

<lib-card title="My Card" [elevated]="true" [hasFooter]="true">
  <p>Card content goes here</p>
  <div footer>Footer content</div>
</lib-card>

🛠️ Services

LoggerService

A configurable logging service with different log levels.

Methods:

  • setLogLevel(level: LogLevel): void
  • debug(message: string, ...args: any[]): void
  • info(message: string, ...args: any[]): void
  • warn(message: string, ...args: any[]): void
  • error(message: string, ...args: any[]): void

🔧 Development

Build the library

npm install
npm run build

Publish to npm

# Login to npm
npm login

# Publish
npm publish

📝 Notes

  • Change @your-scope to your actual npm username or organization
  • Update the repository URL in package.json
  • Add your name in the author field

📄 License

MIT