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

@sunilsolankiji/perfectui

v3.1.1

Published

A modern, tree-shakable UI component library for Angular 19+

Readme

PerfectUI

A modern, tree-shakable UI component library for Angular 19+.

🔗 Live Demo

Features

  • 🌳 Tree-shakable - Only include what you use with secondary entry points
  • 🎨 Themeable - CSS custom properties for easy customization
  • Accessible - WCAG compliant with full ARIA support
  • 📱 Responsive - Works great on all screen sizes
  • 🚀 Standalone - Works with Angular's standalone components
  • 💪 TypeScript - Full type safety and IntelliSense support

Installation

npm install perfectui

Usage

Import from secondary entry points (recommended for tree-shaking)

// Dialog
import { provideDialog, PuiDialogService } from 'perfectui/dialog';

// Toastr
import { provideToastr, PuiToastrService } from 'perfectui/toastr';

// OTP
import { provideOtp, PuiOtp } from 'perfectui/otp';

Configure in app.config.ts

import { ApplicationConfig } from '@angular/core';
import { provideDialog } from 'perfectui/dialog';
import { provideToastr } from 'perfectui/toastr';
import { provideOtp } from 'perfectui/otp';

export const appConfig: ApplicationConfig = {
  providers: [
    provideDialog({
      size: 'md',
      theme: 'default',
    }),
    provideToastr({
      position: 'top-right',
      duration: 5000,
    }),
    provideOtp({
      length: 6,
      inputType: 'numeric',
    }),
  ],
};

Components

Dialog

A flexible dialog/modal system with built-in alert, confirm, and prompt dialogs.

import { PuiDialogService } from 'perfectui/dialog';

@Component({...})
export class MyComponent {
  private dialog = inject(PuiDialogService);

  async showAlert() {
    await this.dialog.alert('Hello World!', 'Title');
  }

  async showConfirm() {
    const result = await this.dialog.confirm('Are you sure?', 'Confirm');
    if (result.confirmed) {
      // User confirmed
    }
  }

  async showPrompt() {
    const result = await this.dialog.prompt('Enter your name:', 'Name');
    if (result.confirmed) {
      console.log('Name:', result.value);
    }
  }

  openCustomDialog() {
    const ref = this.dialog.open(MyDialogComponent, {
      data: { userId: 123 },
      size: 'lg',
    });
    ref.afterClosed().then(result => console.log(result));
  }
}

Toastr

Toast notification system with multiple themes and positions.

import { PuiToastrService } from 'perfectui/toastr';

@Component({...})
export class MyComponent {
  private toastr = inject(PuiToastrService);

  showSuccess() {
    this.toastr.success('Operation completed!', 'Success');
  }

  showError() {
    this.toastr.error('Something went wrong', 'Error');
  }

  showWarning() {
    this.toastr.warning('Please be careful', 'Warning');
  }

  showInfo() {
    this.toastr.info('Here is some information', 'Info');
  }
}

OTP

A customizable OTP (One-Time Password) input component.

import { PuiOtp } from 'perfectui/otp';

@Component({
  imports: [PuiOtp],
  template: `
    <pui-otp
      [(ngModel)]="otpValue"
      [length]="6"
      [inputType]="'numeric'"
      [theme]="'outline'"
      (completed)="onOtpComplete($event)"
    />
  `
})
export class MyComponent {
  otpValue = '';

  onOtpComplete(event: OtpCompleteEvent) {
    console.log('OTP completed:', event.value);
  }
}

Tabs

Accessible, signal-based tab group with line / filled / pills / bordered variants, horizontal & vertical orientations, lazy panels and rich label templates. No service or provider required — configure entirely through inputs.

import { PuiTabs, PuiTab, PuiTabLabel } from 'perfectui/tabs';

@Component({
  imports: [PuiTabs, PuiTab, PuiTabLabel],
  template: `
    <pui-tabs [(selectedIndex)]="active" variant="line">
      <pui-tab label="Overview" icon="📊">
        <p>Overview content…</p>
      </pui-tab>

      <pui-tab label="Inbox" icon="📥" [badge]="12">
        <p>You have new messages.</p>
      </pui-tab>

      <pui-tab>
        <ng-template puiTabLabel>
          <span>🔔 Notifications</span>
          <span class="badge">NEW</span>
        </ng-template>
        <p>Custom rich label template.</p>
      </pui-tab>

      <pui-tab label="Disabled" [disabled]="true">…</pui-tab>
    </pui-tabs>
  `,
})
export class MyPage {
  readonly active = signal(0);
}

Available inputs: variant (line | filled | pills | bordered), orientation, size, align, lazy, animated, disabled, autoScroll, ariaLabel. Emits tabChange and supports two-way [(selectedIndex)].

Theming

PerfectUI uses CSS custom properties for theming. Override them in your global styles:

:root {
  /* Primary colors */
  --pui-primary-500: #3b82f6;
  --pui-primary-600: #2563eb;
  
  /* Success colors */
  --pui-success-500: #22c55e;
  --pui-success-600: #16a34a;
  
  /* Error colors */
  --pui-error-500: #ef4444;
  --pui-error-600: #dc2626;
  
  /* Warning colors */
  --pui-warning-500: #f59e0b;
  --pui-warning-600: #d97706;
  
  /* Info colors */
  --pui-info-500: #3b82f6;
  --pui-info-600: #2563eb;
}

License

MIT