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 🙏

© 2025 – Pkg Stats / Ryan Hefner

ngx-zen-table

v0.1.0

Published

Lightweight infinite-scroll Angular Material table with skeleton rows, selection, and auto-fill.

Readme

🧘‍♂️ ngx-zen-table

Lightweight infinite-scroll Angular Material table with skeleton loading, sticky headers, and row selection — built for Angular 20 and Signals.

npm Angular License: MIT


✨ Features

  • Infinite scrolling with automatic viewport fill
  • Built-in skeleton rows during loading
  • Sticky header (Material-compatible)
  • Row selection (single / multiple / select-all visible)
  • Works with Signals and OnPush / zoneless mode
  • SSR-safe & debounce-optimized
  • Minimal dependencies (only Angular + Material)

🚀 Installation

npm install ngx-zen-table

Peer dependencies required:

npm install @angular/core @angular/common @angular/material

🧩 Usage example

import { Component, signal } from '@angular/core';
import { ZenTableComponent } from 'ngx-zen-table';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [ZenTableComponent],
  template: `
    <zen-table
      [columns]="cols"
      [fetchPage]="fetchPage"
      [selectable]="true"
      [stickyHeader]="true"
      (selectionChange)="onSelect($event)">
    </zen-table>
  `,
})
export class DemoComponent {
  cols = [
    { id: 'id', header: 'ID', width: 80, cell: (r: any) => r.id },
    { id: 'name', header: 'Name', cell: (r: any) => r.name },
  ];

  fetchPage = async ({ page, pageSize }: any) => {
    const total = 100;
    const start = page * pageSize;
    const items = Array.from({ length: Math.min(pageSize, total - start) }, (_, i) => ({
      id: start + i + 1,
      name: `Row ${start + i + 1}`,
    }));
    return { items, hasNext: start + pageSize < total };
  };

  onSelect(rows: any[]) {
    console.log('Selected rows:', rows);
  }
}

⚙️ Inputs & Outputs

| Input | Type | Default | Description | | ----------------- | --------------------------------- | ------------ | ---------------------------------- | | columns | ZenColumn<T>[] | — | Column definitions | | fetchPage | (params) => Promise<PageResult> | — | Async page loader | | pageSizeHint | number | 25 | Initial page size | | autoFill | boolean | true | Auto-compute rows to fill viewport | | pageSizeCap | number | 200 | Max rows per auto-fill cycle | | stickyHeader | boolean | false | Enables sticky header | | selectable | boolean | false | Enables row selection | | selectionMode | 'single' \| 'multiple' | 'multiple' | Selection mode | | getRowKey | (row: T) => unknown | — | Unique key for selection | | resetKey | number | 0 | Force internal reset | | selectionChange | EventEmitter<T[]> | — | Emits current selection |

🧠 Notes

  • Designed for Angular 20 / Signals.
  • Fully compatible with Angular Material themes.
  • Inline skeletons keep table height stable.
  • No dependency on CDK virtual scroll — simpler & SSR-friendly.

🪄 Roadmap

  • Sorting & filtering hooks
  • Keyboard navigation
  • cell templates
  • Expandable rows
  • Virtual scroll mode (optional CDK)

📝 License MIT © Cédric Sterkendries