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-skeleton-suite

v2.0.0

Published

Renderer-agnostic declarative skeleton directive for Angular with native CSS, PrimeNG, and Material renderer adapters

Readme

ngx-skeleton-suite — Declarative, Renderer-Agnostic Angular Skeletons

ngx-skeleton-suite is an enterprise-grade structural directive suite for Angular applications. It eliminates repeated loading boilerplate, handles Signals, RxJS Observables, and Promises, generates responsive CSS grids, prevents Cumulative Layout Shift (CLS), and provides SSR/hydration safety out of the box.

Rendering is renderer-agnostic: the suite ships a dependency-free native CSS renderer by default, and optional adapters for PrimeNG and Angular Material. Install only the UI library you already use.

🌐 Live Astro Starlight Documentation Portal
⚡ Live Angular Interactive Demo App & Playground
📖 Read Full Developer Documentation & API Guide


Quick Compatibility

| ngx-skeleton-suite Version | Angular Core | RxJS | PrimeNG adapter | Material adapter | |---|---|---|---|---| | 2.0.0 | >= 18.0.0 < 23.0.0 | >= 7.4.0 | match your Angular major (primeng >= 17 < 24) | ngx-skeleton-loader >= 11 |

primeng and ngx-skeleton-loader are optional peer dependencies — they are only required if you register the matching adapter. PrimeNG majors track Angular majors (PrimeNG 20 → Angular 20), so use the PrimeNG major that matches your Angular major. See CHANGELOG.md for the breaking changes in 2.0.0.


Features

  • ⚡ Declarative Structural Directive: Simplify templates with *skeleton="isLoading".
  • 🧩 Renderer Adapters: Native CSS (default), PrimeNG, and Angular Material; add your own via a documented renderer contract.
  • 🔄 Universal Source Support: Accepts boolean, Signal<boolean>, Observable<boolean>, Promises, or data streams (*skeleton="let user from user$").
  • 🎨 Full Styling & Theme Customization: CSS variables (--ngx-skeleton-base-color, --ngx-skeleton-highlight-color), alignment controls, shape & size inputs, class hooks (styleClass).
  • ✨ Custom Animation Engine: adapter-default, wave, shimmer, pulse, and none.
  • 📐 Responsive CSS Grid Generation: Auto-fit or breakpoint-based grid placeholders.
  • 🎯 Composite Presets: Pre-built shapes (profile-card, card, list-item, avatar, paragraph, table-row) and custom tree definitions.
  • 🛡️ Flicker Protection & Minimum Duration: Delay timer (skeletonDelay) and minimum visible duration (skeletonMinimumDuration).
  • 📐 Layout Shift (CLS) Prevention: Multi-level layout reservation and ResizeObserver dimension caching.
  • 🌐 SSR & Hydration Safe: Platform-aware abstractions guarantee zero server-side rendering exceptions.
  • ♿ Accessible & Reduced Motion: Provides status semantics and honors prefers-reduced-motion.

Installation

npm install ngx-skeleton-suite

That is all you need for the default native CSS renderer. To use a UI-library renderer, install the adapter's peer as well:

# PrimeNG adapter
npm install ngx-skeleton-suite primeng

# Material adapter (community package)
npm install ngx-skeleton-suite ngx-skeleton-loader

Quick Usage Example (Standalone Component)

import { Component, signal } from '@angular/core';
import { SkeletonDirective } from 'ngx-skeleton-suite';

@Component({
  selector: 'app-user-profile',
  standalone: true,
  imports: [SkeletonDirective],
  template: `
    <div *skeleton="isLoading(); height: '12rem'; animation: 'wave'">
      <app-user-card [user]="user()" />
    </div>
  `,
})
export class UserProfileComponent {
  isLoading = signal(true);
}

Renderer Adapters

Provide an adapter once at bootstrap; the directive and presets stay unchanged.

// app.config.ts
import { ApplicationConfig } from '@angular/core';
import { provideNgxSkeleton } from 'ngx-skeleton-suite';
import { providePrimeNgSkeleton } from 'ngx-skeleton-suite/primeng';

export const appConfig: ApplicationConfig = {
  providers: [
    provideNgxSkeleton({ animation: 'adapter-default' }),
    providePrimeNgSkeleton(), // renders with <p-skeleton>
  ],
};
// Material adapter (backed by ngx-skeleton-loader)
import { provideMaterialSkeleton } from 'ngx-skeleton-suite/material';

Omit any adapter provider to use the native CSS renderer.

Testing

import { SkeletonHarness } from 'ngx-skeleton-suite/testing';

The harness is renderer-neutral and works against any adapter.


Quick Usage Example (NgModule Legacy Applications)

import { NgModule } from '@angular/core';
import { NgxSkeletonModule } from 'ngx-skeleton-suite';

@NgModule({
  imports: [NgxSkeletonModule],
  declarations: [LegacyUserProfileComponent],
})
export class UserModule {}

Documentation & API Index


License

MIT