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

argent-grid

v0.3.0

Published

A free, high-performance alternative to AG Grid Enterprise

Downloads

312

Readme

ArgentGrid

A free, high-performance alternative to AG Grid Enterprise built with Angular and Canvas rendering.

🌐 Live Demo

Check out the interactive demo: https://hainanzhao.github.io/ArgentGrid/

The demo showcases:

  • Canvas-based rendering with 100,000+ rows
  • Virtual scrolling
  • Sorting, filtering, and selection
  • Cell editing
  • Column and row pinning
  • Excel/CSV export

Features

  • 🚀 High Performance: Canvas-based rendering for 100,000+ rows at 60fps
  • 🎯 AG Grid Compatible: Drop-in replacement with 1:1 API compatibility
  • 📦 Angular Native: Built with Angular 18+ using modern best practices
  • 🧪 TDD Developed: Comprehensive test coverage with Vitest
  • 🎨 Hybrid Architecture: Canvas viewport + DOM headers for accessibility

⚖️ Feature Parity

For a detailed comparison with AG Grid and our development roadmap, see: plan

Installation

npm install argent-grid

Requirements

  • Angular 18+
  • TypeScript 5.4+

Quick Start

Basic Usage

import { Component } from '@angular/core';
import { ColDef } from 'argent-grid';

interface RowData {
  id: number;
  name: string;
  age: number;
}

@Component({
  selector: 'app-root',
  template: `
    <argent-grid
      [columnDefs]="columnDefs"
      [rowData]="rowData"
      [rowHeight]="32"
      height="600px">
    </argent-grid>
  `
})
export class AppComponent {
  columnDefs: ColDef<RowData>[] = [
    { colId: 'id', field: 'id', headerName: 'ID', width: 100 },
    { colId: 'name', field: 'name', headerName: 'Name', width: 150 },
    { colId: 'age', field: 'age', headerName: 'Age', width: 80, sortable: true }
  ];

  rowData: RowData[] = [
    { id: 1, name: 'John Doe', age: 30 },
    { id: 2, name: 'Jane Smith', age: 25 }
  ];
}

Module Import

import { NgModule } from '@angular/core';
import { ArgentGridModule } from 'argent-grid';

@NgModule({
  imports: [
    ArgentGridModule
  ]
})
export class AppModule {}

Architecture

Hybrid Rendering Approach

┌─────────────────────────────────────┐
│  Header Layer (DOM-based)           │  ← Accessibility, Styling
├─────────────────────────────────────┤
│  Canvas Layer (Data Viewport)       │  ← High-performance rendering
│  - 100,000+ rows                    │
│  - 60fps scrolling                  │
│  - Virtual scrolling                │
└─────────────────────────────────────┘

Core Components

  • ArgentGridComponent: Main grid component
  • CanvasRenderer: High-performance canvas painting engine
  • GridService: Headless logic layer for data management
  • AgGridCompatibilityDirective: AG Grid API compatibility layer

Development

Setup

npm install

Build

npm run build

Test

npm test           # Run tests
npm run test:watch # Watch mode
npm run test:coverage # With coverage

Lint

npm run lint

🎨 Storybook Development

ArgentGrid uses Storybook for component development, documentation, and visual testing. Each feature (Sorting, Grouping, Theming, etc.) is documented as an isolated story.

Run Storybook

# Start Storybook dev server
npm run storybook

Open http://localhost:6006 to view the stories and interact with the grid.

Build Storybook

# Build static Storybook site
npm run build-storybook

Output will be in the ./storybook-static directory.

E2E Testing (Playwright)

ArgentGrid uses Playwright for end-to-end testing against the Storybook stories. These tests verify visual rendering, interactivity (dragging, resizing), and complex logic (filtering, grouping).

Run Tests:

# Run all E2E tests
npm run test:e2e

This will execute the Feature Guard Rails suite which verifies:

  • Row Grouping & Expansion
  • Floating Filters
  • Cell Editing
  • Column Pinning & Scroll Sync
  • Column Re-ordering (Drag & Drop)

Visual Regression Testing

Since ArgentGrid renders its core data area using HTML5 Canvas, we use Visual Regression Testing to ensure consistent rendering and catch pixel-level regressions.

Run Visual Tests:

npx playwright test e2e/visual.spec.ts

Updating Snapshots: If you have made intentional UI changes (e.g., changed selection colors, refined border logic, or adjusted header padding) and the visual tests fail, you must update the baseline snapshots:

npx playwright test e2e/visual.spec.ts --update-snapshots

Note: Ensure your local environment is clean and Storybook is correctly built before updating snapshots. Baseline snapshots are committed to the repository to serve as the source of truth for CI.

Performance Benchmarking

ArgentGrid includes a benchmarking suite to measure rendering efficiency and scroll performance under heavy load (100,000+ rows).

Option 1: Interactive (UI)

  1. Start Storybook: npm run storybook
  2. Open http://localhost:6006
  3. Navigate to ArgentGrid / Benchmark
  4. View real-time ms frame metrics and a detailed report.

Option 2: Automated (CLI) To run the automated performance test:

npx playwright test e2e/benchmark.spec.ts --reporter=list

🚀 ArgentGrid Performance Benchmark Results

Initial Render : 2.60ms Avg Scroll Frame : 1.55ms Selection All : 103.70ms Grouping Toggle : 147.10ms Total Test Time : 495.60ms

License

MIT License - See LICENSE for details.

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting PRs.

Acknowledgments