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

@avi-pathak/apgrid

v0.1.6

Published

A fast, virtualized data grid for the web. Renders millions of rows with a recycled DOM.

Readme

@avi-pathak/apgrid

A fast, framework-free virtualized data grid for the web. Renders 1,000,000+ rows with a recycled DOM, modeled on the architecture of commercial data grids.

Features

  • Dual-axis virtualization (millions of rows, hundreds of columns) at ~60fps
  • Recycled DOM — node count tracks the viewport, not the dataset
  • Row + column headers with pinned corner; full-span scrollbars
  • Selection modes: None, Cell, CellRange, Row, RowRange, Column, ColumnRange
  • Sorting, filtering, and row grouping (with a drag-to-group bar)
  • Multi-level column groups (nested headers, collapse/expand)
  • Frozen rows & columns, cell merging, clipboard copy/paste
  • Cell editing (text / dropdown / checkbox), column resize & reorder
  • Full undo / redo (ctrl+Z / ctrl+Y) and state serialization (toJSON / loadJSON)
  • SCSS-authored, token-driven styling with a built-in dark theme
  • Zero runtime dependencies; ships ESM, CJS, and UMD with type declarations

Install

npm install @avi-pathak/apgrid

Usage

import { Grid } from '@avi-pathak/apgrid';
import '@avi-pathak/apgrid/styles.css';

const grid = new Grid('#theGrid', {
  columns: [
    { binding: 'id', header: 'ID', width: 60 },
    { binding: 'country', header: 'Country', width: 140 },
    { binding: 'sales', header: 'Sales', width: 120, editable: true },
  ],
  itemsSource: data,
  selectionMode: 'CellRange',
});

Opt into the dark theme by adding the apg-theme-dark class to the host (or any ancestor), or apg-theme-auto to follow the OS.

Scripts

| Script | What it does | | --- | --- | | npm run dev | Dev server with the example demos on :5173 | | npm run build | Bundle ESM/CJS/UMD, extract CSS themes, emit .d.ts | | npm test | Vitest unit tests | | npm run typecheck · npm run lint | Strict type check / ESLint | | npm run docs | Generate the API documentation site into docs-site/ | | npm run docs:serve | Build the docs and serve them locally |

Documentation

The generated site combines the auto-built API reference (from the source TSDoc) with the hand-written guides:

  • Architecture — the layered design and render pipeline
  • Core Engine, Rendering, Virtualization — the internals
  • Interaction — selection, editing, keyboard, events
  • Data Layer — the CollectionView / DataView abstraction
  • Column Groups — multi-level headers and collapse/expand
  • Build System, Testing, Roadmap

Run npm run docs:serve to browse it locally. The guide markdown lives in the docs folder on GitHub.