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

@gridstorm/angular

v0.1.2

Published

GridStorm Angular adapter — standalone component for Angular 16+

Readme

@gridstorm/angular

Angular adapter for GridStorm -- a high-performance, headless data grid engine.

Provides a standalone Angular component (<gridstorm>) that wraps the GridStorm core engine and DOM renderer. Requires Angular 16+ (standalone component support).

Installation

npm install @gridstorm/angular @gridstorm/core @gridstorm/dom-renderer
# or
pnpm add @gridstorm/angular @gridstorm/core @gridstorm/dom-renderer

Quick Start

Import the standalone component directly in your Angular component:

import { Component } from '@angular/core';
import { GridStormComponent } from '@gridstorm/angular';
import { sortingPlugin } from '@gridstorm/plugin-sorting';
import type { GridApi, ColumnDef } from '@gridstorm/angular';

@Component({
  selector: 'app-employees',
  standalone: true,
  imports: [GridStormComponent],
  template: `
    <gridstorm
      [columns]="columns"
      [rowData]="rowData"
      [plugins]="plugins"
      [rowHeight]="40"
      [theme]="'dark'"
      [density]="'normal'"
      (gridReady)="onGridReady($event)"
      (selectionChanged)="onSelectionChanged($event)"
      style="height: 600px; width: 100%;"
    ></gridstorm>
  `,
})
export class EmployeesComponent {
  columns: ColumnDef[] = [
    { field: 'name', headerName: 'Name', sortable: true },
    { field: 'department', headerName: 'Department', sortable: true },
    { field: 'salary', headerName: 'Salary', width: 120 },
  ];

  rowData = [
    { name: 'Alice', department: 'Engineering', salary: 95000 },
    { name: 'Bob', department: 'Marketing', salary: 72000 },
    { name: 'Charlie', department: 'Engineering', salary: 110000 },
  ];

  plugins = [sortingPlugin()];

  private gridApi: GridApi | null = null;

  onGridReady(api: GridApi) {
    this.gridApi = api;
  }

  onSelectionChanged(event: any) {
    console.log('Selection changed:', event);
  }
}

Inputs

| Input | Type | Default | Description | | ------------------- | --------------------------- | ---------- | ----------------------------------------------- | | columns | ColumnDef[] | [] | Column definitions | | rowData | any[] | [] | Row data array | | plugins | GridPlugin[] | [] | Plugins to install | | getRowId | (params) => string | undefined| Custom row ID generator | | rowHeight | number | 40 | Row height in pixels | | theme | string | 'light' | Theme name ('light', 'dark', or custom) | | density | string | 'normal' | Density mode ('compact', 'normal', etc.) | | defaultColDef | Partial<ColumnDef> | undefined| Default column config applied to all columns | | paginationPageSize| number | undefined| Rows per page (when pagination enabled) | | headerHeight | number | undefined| Header row height in pixels | | domLayout | 'normal' \| 'autoHeight' | undefined| DOM layout mode | | rowSelection | 'single' \| 'multiple' | undefined| Row selection mode | | pagination | boolean | undefined| Enable client-side pagination | | ariaLabel | string | undefined| ARIA label for accessibility |

Outputs

| Output | Payload | Description | | ------------------- | --------------------------- | ----------------------------------------------- | | gridReady | GridApi | Grid initialized, API is ready | | rowDataChanged | { rowData: any[] } | Row data was replaced | | selectionChanged | { selectedNodes, source } | Row selection changed | | sortChanged | { sortModel } | Sort model changed | | filterChanged | { filterModel } | Filter model changed | | cellValueChanged | { node, colId, ... } | Cell value edited | | cellClicked | { node, colId, value } | Cell was clicked | | cellDoubleClicked | { node, colId, value } | Cell was double-clicked | | rowClicked | { node, event } | Row was clicked | | paginationChanged | { currentPage, ... } | Pagination state changed | | columnResized | { column, ... } | Column was resized |

GridStormService

An injectable service for managing multiple grid instances across your application:

import { Component, OnDestroy } from '@angular/core';
import { GridStormComponent, GridStormService } from '@gridstorm/angular';
import type { GridApi } from '@gridstorm/angular';

@Component({
  selector: 'app-dashboard',
  standalone: true,
  imports: [GridStormComponent],
  template: `
    <gridstorm
      [columns]="columns"
      [rowData]="rowData"
      (gridReady)="onGridReady($event)"
    ></gridstorm>
  `,
})
export class DashboardComponent implements OnDestroy {
  // ... columns, rowData ...

  constructor(private gridService: GridStormService) {}

  onGridReady(api: GridApi) {
    this.gridService.registerApi('dashboard-grid', api);
  }

  ngOnDestroy() {
    this.gridService.removeApi('dashboard-grid');
  }
}

Access from another component:

export class ToolbarComponent {
  constructor(private gridService: GridStormService) {}

  exportSelected() {
    const api = this.gridService.getApi('dashboard-grid');
    if (api) {
      const rows = api.getSelectedRows();
      // ... export logic
    }
  }
}

Build Notes

This package ships TypeScript source files alongside the tsup-compiled output. Since Angular decorators require the Angular compiler for AOT (ahead-of-time) compilation in production builds, there are two integration approaches:

Development / JIT Mode

Import directly from the package -- the compiled ESM/CJS output works with Angular's JIT compiler:

import { GridStormComponent, GridStormService } from '@gridstorm/angular';

Production / AOT Builds

For production AOT builds, you may need to use ngPackagr or include the source files in your Angular project's compilation. The raw .ts source files are included in the published package under src/ for this purpose.

Theming

Apply the @gridstorm/theme-default stylesheet and use the theme and density inputs:

// In your angular.json styles array:
// "node_modules/@gridstorm/theme-default/dist/index.css"

@Component({
  template: `
    <gridstorm
      [columns]="columns"
      [rowData]="rowData"
      [theme]="currentTheme"
      [density]="currentDensity"
    ></gridstorm>
  `,
})
export class ThemedGridComponent {
  currentTheme = 'dark';
  currentDensity = 'compact';

  toggleTheme() {
    this.currentTheme = this.currentTheme === 'light' ? 'dark' : 'light';
  }
}

License

MIT