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

@gridcraft/angular

v1.0.0

Published

A data grid for Angular. Standalone components, signals throughout, and it runs with or without Zone.js. Its only runtime dependency is `tslib`.

Readme

@gridcraft/angular

A data grid for Angular. Standalone components, signals throughout, and it runs with or without Zone.js. Its only runtime dependency is tslib.

Documentation and live examples: https://gridcraft.anonovix.com/docs

Install

npm install @gridcraft/angular

The peer range is @angular/core and @angular/common >=19.0.0 <23.0.0. One release covers all four majors, and npm refuses the install outside that range instead of letting the build fail later.

Add a theme

The grid is unstyled until a theme is loaded. Add one line to your global styles.scss:

@use '@gridcraft/angular/themes/default';

dark and material are also included. Load one theme per app. Each is scoped to the class the grid puts on its own root element, so nothing leaks into the rest of your styles.

If you don't use SCSS, add node_modules/@gridcraft/angular/themes/default.scss to the styles array in angular.json instead.

A first grid

import { Component } from '@angular/core';
import { of } from 'rxjs';
import { GridcraftComponent, type FetchParams, type GridColumn, type GridConfig } from '@gridcraft/angular';

interface Person { id: number; name: string; role: string; salary: number; }

const PEOPLE: Person[] = [
  { id: 1, name: 'Alice Chen', role: 'Engineer', salary: 95000 },
  { id: 2, name: 'Bob Martin', role: 'Designer', salary: 82000 },
  { id: 3, name: 'David Kim',  role: 'Manager',  salary: 115000 },
];

@Component({
  selector: 'app-people',
  imports: [GridcraftComponent],
  template: `<gridcraft [columns]="columns" [dataSource]="dataSource" [config]="config" />`,
})
export class PeopleComponent {
  columns: GridColumn<Person>[] = [
    { key: 'name',   name: 'Name',   prop: 'name',   sizing: 'flex', sortable: true, filter: { type: 'text' } },
    { key: 'role',   name: 'Role',   prop: 'role',   width: 130,     sortable: true, filter: { type: 'text' } },
    { key: 'salary', name: 'Salary', prop: 'salary', width: 120,     sortable: true, filter: { type: 'number' } },
  ];

  dataSource = {
    fetchRows: (p: FetchParams) => of({
      rows: PEOPLE.slice(p.offset, p.offset + p.limit),
      totalCount: PEOPLE.length,
    }),
  };

  config: GridConfig<Person> = {
    height: 380,                 // the grid needs a height to have a scroll viewport
    sortMode: 'client',          // sort the loaded rows in memory
    filterMode: 'row',           // a filter input under each header
    filterApplyMode: 'client',   // filter the loaded rows in memory
  };
}

Three inputs carry everything:

  • columns says what to show.
  • dataSource supplies rows. Its whole contract is one method, fetchRows(params), returning an Observable<{ rows, totalCount }>. For an in-memory array, wrap it in of() as above. For a server, call your API there instead: the grid passes the offset, page size, sorts and filters in params.
  • config holds everything else. Every key is optional, but set a height: without one the grid has no scroll viewport.

There is no module to register. GridcraftComponent is standalone, and so is everything else in the package.

What the package covers

  • Data: in-memory or server-side, with paging, infinite scroll and row virtualisation for large sets. Live row updates through applyTransaction().
  • Columns: resize, reorder, pin, auto-size, column groups, value getters and formatters, cell templates and renderers, tooltips, conditional formatting, cell spanning.
  • Rows: sorting, single and multi selection with checkboxes, expandable rows with your own template, pinned rows, row dragging, auto row height, full-width rows.
  • Filtering: text, number and date filters in a filter row or popup, a quick filter across every column, external filters, and filter state you can save and restore.
  • Editing: inline cell and row editing, validation, batch edits across selected rows, and undo/redo.
  • Output: CSV export and a print/PDF layout.
  • Everything else: theming through CSS custom properties, RTL, localisation, keyboard navigation, screen-reader support, and server-side rendering.

Each of these has its own page with a working example in the documentation.

App-wide defaults

To stop repeating the same options on every grid, set them once in your root providers. A grid's own [config] still wins over anything set here.

import { provideGridDefaults } from '@gridcraft/angular/core';

export const appConfig: ApplicationConfig = {
  providers: [
    provideGridDefaults({ rowHeight: 48, pageSize: 50, columnResize: true, columnReorder: true }),
  ],
};

Where to go next

Licence

MIT. The full text ships with the package in LICENSE.md.