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

sillar-data-grid

v0.1.2

Published

Accessible, typed React data grid with sorting, filtering, selection, pagination, and responsive layouts.

Readme

CI npm License: MIT

Why

Sillar Data Grid sits between headless table engines and large enterprise suites. It provides polished defaults, semantic table markup, keyboard navigation, responsive layouts, and controlled APIs while remaining independent from a component runtime.

Install

npm install sillar-data-grid

Import the stylesheet once:

import 'sillar-data-grid/styles.css';

Quick start

import { useState } from 'react';
import { DataGrid, type DataGridColumn } from 'sillar-data-grid';

type Customer = { id: number; name: string; country: string; balance: number };

const columns: DataGridColumn<Customer>[] = [
  { key: 'name', header: 'Customer', accessor: 'name', sortable: true },
  { key: 'country', header: 'Country', accessor: 'country', sortable: true },
  {
    key: 'balance',
    header: 'Balance',
    accessor: 'balance',
    sortable: true,
    align: 'end',
    cell: (value) => new Intl.NumberFormat('en', { style: 'currency', currency: 'USD' }).format(Number(value)),
  },
];

export function CustomerGrid({ customers }: { customers: Customer[] }) {
  const [filter, setFilter] = useState('');
  const [page, setPage] = useState(0);

  return (
    <DataGrid
      aria-label="Customers"
      rows={customers}
      columns={columns}
      getRowId={(customer) => customer.id}
      filter={filter}
      onFilterChange={setFilter}
      filterPlaceholder="Search customers"
      selectable
      pagination={{ page, pageSize: 25 }}
      onPageChange={setPage}
    />
  );
}

Accessibility contract

  • Uses a native table, headings, rows, and cells.
  • Exposes aria-sort on the active sortable column.
  • Supports arrow-key navigation between header and body cells.
  • Preserves native checkbox semantics for selection.
  • Announces filter result counts and loading state.
  • Keeps visible focus in light and dark themes.
  • Respects prefers-reduced-motion.

Automated checks improve coverage but do not replace testing with screen readers and disabled users.

Production readiness

  • CI runs TypeScript, build output generation, accessibility-focused tests, and npm package previews.
  • Releases publish from version tags with npm provenance.
  • Public security, contribution, and code of conduct policies are included in the repository and npm package.
  • The grid is SSR-friendly and uses peer React dependencies instead of bundling React.

Controlled and server-side usage

Pass sort with onSortChange, selectedRows with onSelectedRowsChange, or pagination with onPageChange to control state. Set serverSide when rows already represent the current server response; totalRows then controls the page count.

Theming

Override semantic tokens on :root, .dark, [data-theme="dark"], or a product wrapper:

.my-product {
  --sdg-brand: #2563eb;
  --sdg-radius: 1rem;
  --sdg-bg: #ffffff;
  --sdg-border: #dbe3ee;
}

Roadmap

  • Column visibility, resizing, ordering, and pinning
  • Virtualized rows and columns
  • Grouping, aggregation, and expandable rows
  • CSV/JSON export
  • Editable cells with validation
  • Framework adapters and documentation site

License

MIT

Supply-chain verification and runtime permissions

Runtime: React data-grid rendering and local filtering/sorting/pagination. Application code owns data fetching, authorization and server-side filtering. The package is not a data-access security boundary.

Install the exact version required by your application and commit your lockfile. Releases request npm provenance from GitHub Actions, and CI checks the dependency graph and package contents before publication. The artifact guard rejects recognized credential patterns, private/environment files, unsafe paths, missing attribution/metadata and unexpected consumer install hooks. It is a focused release check, not proof that every secret or malicious behavior is detectable.

npm install --save-exact [email protected]
npm audit
npm audit signatures

When the installed graph has no registry dependencies, npm may report that there are no dependency signatures to verify.

Inspect the exact-version Socket report and the npm provenance link. A successful CI check is not the same as a package score of 100. Socket also weighs dependency counts and real adoption; no score, download history or security guarantee is fabricated. Report suspected issues through SECURITY.md.