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

@rkostiuk/ng-ui-grid

v0.1.2

Published

Reusable Angular grid with sorting, filtering, infinite scroll, menus, drag-drop columns, inline editing, and template renderers.

Readme

@rkostiuk/ng-ui-grid

Reusable Angular grid library with:

  • sorting
  • header filters
  • infinite scroll
  • virtualized row rendering
  • server-side paging/filtering hooks
  • column show/hide
  • drag-and-drop column reordering
  • resizable columns with min/max constraints
  • inline editing
  • custom header, filter, and cell templates
  • CSS variable based styling

Install

npm install @rkostiuk/ng-ui-grid

Import

import { UiGridComponent, GridColumn } from '@rkostiuk/ng-ui-grid';

Basic usage

import { ChangeDetectionStrategy, Component } from '@angular/core';
import { UiGridComponent, GridColumn } from '@rkostiuk/ng-ui-grid';

interface UserRow {
  id: number;
  name: string;
  company: string;
}

@Component({
  selector: 'app-users',
  standalone: true,
  imports: [UiGridComponent],
  template: `
    <app-ui-grid
      [columns]="columns"
      [rows]="rows"
      [pageSize]="25">
    </app-ui-grid>
  `,
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UsersComponent {
  columns: GridColumn<UserRow>[] = [
    { id: 'id', header: 'ID', field: 'id', width: '6rem', minWidth: '5rem', sortable: true, disableHide: true },
    { id: 'name', header: 'Name', field: 'name', editable: true, sortable: true },
    { id: 'company', header: 'Company', field: 'company' },
  ];

  rows: UserRow[] = [
    { id: 1, name: 'Lena Harper', company: 'Northwind' },
    { id: 2, name: 'Maksym Koval', company: 'Blue Harbor' },
  ];
}

Styling

Pass themeVars to override the default look with CSS custom properties:

themeVars = {
  '--ui-grid-accent': '#0f766e',
  '--ui-grid-header-bg': 'linear-gradient(180deg, rgba(15,118,110,0.12), rgba(15,118,110,0.04)), #f7fffd',
  '--ui-grid-row-hover-bg': 'rgba(15, 118, 110, 0.08)',
  '--ui-grid-radius': '14px',
};
<app-ui-grid
  [columns]="columns"
  [rows]="rows"
  [themeVars]="themeVars">
</app-ui-grid>

Column behavior

  • sortable defaults to false
  • filterable defaults to true
  • extendedFilter keeps the classic filter input and adds an advanced operator popover
  • filterOperators restricts the operator list per column
  • defaultFilterOperator sets the initial operator
  • filterMenuIcon customizes the advanced filter trigger icon
  • resizable defaults to true
  • width, minWidth, and maxWidth accept CSS size strings

Available filter operators:

  • contains
  • equals
  • notEqual
  • startsWith
  • endsWith
  • greater
  • greaterOrEqual
  • less
  • lessOrEqual
  • between

Events

  • sortChanged
  • filterChanged
  • columnVisibilityChanged
  • columnResizeFinished
  • cellEdited

Supported variables include:

  • --ui-grid-radius
  • --ui-grid-surface
  • --ui-grid-header-bg
  • --ui-grid-border
  • --ui-grid-divider
  • --ui-grid-shadow
  • --ui-grid-text
  • --ui-grid-text-strong
  • --ui-grid-muted
  • --ui-grid-muted-strong
  • --ui-grid-accent
  • --ui-grid-row-alt-bg
  • --ui-grid-row-hover-bg
  • --ui-grid-input-border
  • --ui-grid-input-bg
  • --ui-grid-menu-bg
  • --ui-grid-error

Publishing

Build the package:

npm run build:lib

Review the publish payload:

cd dist/ng-ui-grid
npm pack --dry-run

Publish:

cd dist/ng-ui-grid
npm publish --access public