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

@hobom-grid/react

v0.2.0

Published

React adapter for @hobom-grid/core — virtualized data grid component and hooks

Readme

@hobom-grid/react

React adapter for @hobom-grid/core.

Virtualized data grid component and composable hooks — handles 100k+ rows with sub-frame rendering.

Documentation | Core Engine

Install

npm install @hobom-grid/react @hobom-grid/core

Quick Start

import { Grid, useClientRowModel } from "@hobom-grid/react";

const columns = ["name", "age", "email"];

function MyGrid({ data }: { data: readonly { name: string; age: number; email: string }[] }) {
  const rowModel = useClientRowModel(data);

  return (
    <Grid
      rowCount={rowModel.rowCount}
      colCount={columns.length}
      headerRowCount={1}
      style={{ height: 400 }}
      renderCell={(cell) => {
        // Header row
        if (cell.rowIndex === 0) {
          return <div style={{ fontWeight: 600, padding: 8 }}>{columns[cell.colIndex]}</div>;
        }
        // Body row
        const row = rowModel.getRow(cell.rowIndex - 1);
        const key = columns[cell.colIndex] as keyof typeof row;
        return <div style={{ padding: 8 }}>{String(row[key])}</div>;
      }}
    />
  );
}

Features

Data Pipeline

import { useClientRowModel } from "@hobom-grid/react";

const sort = useMemo(() => [{ key: "name" as const, direction: "asc" as const }], []);
const filter = useCallback((row: Employee) => row.active, []);
const rowModel = useClientRowModel(data, { sort, filter, getId: (r) => r.id });

Cell Editing

import { useEditing, useClipboard } from "@hobom-grid/react";

const editing = useEditing({
  getValue: (row, col) => /* ... */,
  isEditable: (row, col) => row > 0,
  onCommit: ({ row, col, newValue }) => /* ... */,
}, interactionState);

const clipboard = useClipboard({
  getValue,
  onPaste: (changes) => /* ... */,
}, interactionState);

Column Features

import { useColumnResize, useColumnReorder, useColumnVisibility } from "@hobom-grid/react";

const colResize = useColumnResize(initialWidths);
const colReorder = useColumnReorder(onReorder);
const colVis = useColumnVisibility(columnCount);

Row Features

import { useRowSelection, useAggregateRow } from "@hobom-grid/react";

const selection = useRowSelection({ rowCount, getId: (i) => data[i].id });
const aggregates = useAggregateRow(data, columnDefs);

Ecosystem

import { useContextMenu, ContextMenu, useCsvExport } from "@hobom-grid/react";

const contextMenu = useContextMenu();
const csvExport = useCsvExport({ columns: csvColumnDefs });

API Overview

| Export | Type | Description | | --------------------- | --------- | ---------------------------------------------- | | Grid | Component | Main grid component with virtualized rendering | | useGridKernel | Hook | Low-level viewport state + scroll management | | useInteraction | Hook | Selection, focus, keyboard/pointer handling | | useClientRowModel | Hook | Client-side sort/filter/ID mapping | | useEditing | Hook | Cell editing state machine | | useClipboard | Hook | Copy/paste with TSV support | | useColumnResize | Hook | Live column resize via pointer drag | | useColumnReorder | Hook | Drag-and-drop column reorder | | useColumnVisibility | Hook | Show/hide columns | | useRowSelection | Hook | Checkbox-style row selection | | useAggregateRow | Hook | Sum/avg/min/max/count footer row | | useContextMenu | Hook | Right-click context menu state | | ContextMenu | Component | Portal-rendered context menu | | useCsvExport | Hook | Export data to CSV file |

License

MIT