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

@favio21/ngx-data-table

v0.0.1

Published

Modern Angular 18 data table component with filtering, grouping, and sorting capabilities. Built with standalone components and signals.

Readme

NGX Data Table

Modern Angular 18 data table component with filtering, grouping, and sorting capabilities. Built with standalone components and signals.

✨ Features

  • 🔍 Advanced filtering with query builder
  • 📊 Multi-level grouping with drag & drop
  • 🔄 Sorting capabilities
  • 🎨 Material Design styling
  • ♿ Full accessibility support
  • 📱 Responsive design
  • ⚡ Standalone components (no NgModules!)
  • 🎯 Signals support
  • 🔥 Angular 18 optimized

📦 Installation

npm install @your-org/ngx-data-table

📋 Peer Dependencies

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

🚀 Usage (Standalone - Recommended)

Simple Example

import { Component } from '@angular/core';
import { TableComponent, ColumnDefinition } from '@your-org/ngx-data-table';

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [TableComponent],
  template: `
    <app-table
      [data]="data"
      [columnDefinitions]="columns"
      [sortableColumns]="sortableColumns"
    />
  `
})
export class AppComponent {
  data = [
    { id: 1, name: 'Product 1', price: 100 },
    { id: 2, name: 'Product 2', price: 200 }
  ];

  columns: ColumnDefinition[] = [
    { key: 'id', label: 'ID', icon: 'tag' },
    { key: 'name', label: 'Name', icon: 'label' },
    { key: 'price', label: 'Price', icon: 'attach_money' }
  ];

  sortableColumns = ['id', 'name', 'price'];
}

Complete Example with Filtering and Grouping

import { Component, signal } from '@angular/core';
import {
  TableComponent,
  AdvancedFilterComponent,
  GroupingControlComponent,
  ColumnDefinition,
  FilterField,
  FilterQuery
} from '@your-org/ngx-data-table';

@Component({
  selector: 'app-demo',
  standalone: true,
  imports: [
    TableComponent,
    AdvancedFilterComponent,
    GroupingControlComponent
  ],
  template: `
    <app-advanced-filter
      [fields]="filterFields()"
      (filterApplied)="onFilterApplied($event)"
      (filterCleared)="onFilterCleared()"
    />

    <app-grouping-control
      [availableColumns]="columns()"
      (groupingChanged)="onGroupingChanged($event)"
    />

    <app-table
      [data]="data()"
      [columnDefinitions]="columns()"
      [sortableColumns]="sortableColumns()"
      [groupBy]="groupBy()"
      [filterQuery]="currentFilter()"
    />
  `
})
export class DemoComponent {
  data = signal([
    { id: 1, name: 'Product 1', category: 'Electronics', price: 299.99 },
    { id: 2, name: 'Product 2', category: 'Books', price: 19.99 }
  ]);

  columns = signal<ColumnDefinition[]>([
    { key: 'id', label: 'ID', icon: 'tag' },
    { key: 'name', label: 'Name', icon: 'label' },
    { key: 'category', label: 'Category', icon: 'category' },
    { key: 'price', label: 'Price', icon: 'attach_money' }
  ]);

  filterFields = signal<FilterField[]>([
    { key: 'name', label: 'Name', type: 'text' },
    { key: 'price', label: 'Price', type: 'number' }
  ]);

  sortableColumns = signal(['id', 'name', 'price']);
  groupBy = signal<string[]>([]);
  currentFilter = signal<FilterQuery | null>(null);

  onGroupingChanged(groups: string[]) {
    this.groupBy.set(groups);
  }

  onFilterApplied(filter: FilterQuery) {
    this.currentFilter.set(filter);
  }

  onFilterCleared() {
    this.currentFilter.set(null);
  }
}

📚 API Documentation

TableComponent

Inputs:

  • data: T[] - Array of data items
  • columnDefinitions: ColumnDefinition[] - Column configuration
  • sortableColumns: string[] - Sortable column keys
  • groupBy: string[] - Grouping keys
  • config: TableConfig<T> - Advanced configuration
  • filterQuery: FilterQuery | null - Filter query

Outputs:

  • groupingChanged: string[] - Emits when grouping changes

AdvancedFilterComponent

Inputs:

  • fields: FilterField[] - Available filter fields

Outputs:

  • filterApplied: FilterQuery - Emits when filter is applied
  • filterCleared: void - Emits when filter is cleared

GroupingControlComponent

Inputs:

  • availableColumns: ColumnDefinition[] - Available columns

Outputs:

  • groupingChanged: string[] - Emits when grouping changes

🎨 Theming

The library uses Angular Material theming. Make sure to include Material theme in your styles.scss:

@use '@angular/material' as mat;

@include mat.core();

$primary: mat.define-palette(mat.$teal-palette);
$accent: mat.define-palette(mat.$amber-palette);

$theme: mat.define-light-theme((
  color: (
    primary: $primary,
    accent: $accent,
  )
));

@include mat.all-component-themes($theme);

🤝 Contributing

Contributions are welcome! Please read our contributing guidelines.

📄 License

MIT © [Your Name]