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

@unisane/data-table

v0.1.1

Published

Typed React 19 DataTable for complex product and operational interfaces

Readme

@unisane/data-table

A typed React 19 DataTable with virtualization, grouped configuration, remote-data support, editing, selection, export, accessible interaction support, and package-owned runtime styles. DataTable is a separately versioned runtime companion to the open-code component registry.

Installation

The package is approved for the coordinated next prerelease but is not yet published. After publication, consumers install:

pnpm add @unisane/data-table @unisane/ui react react-dom

Import package styles once at the application boundary:

@import '@unisane/ui/styles.css';
@import '@unisane/data-table/styles.css';

Quick start

import { DataTable, defineColumns } from '@unisane/data-table';

type User = {
  id: string;
  name: string;
  email: string;
};

const columns = defineColumns<User>([
  { key: 'name', header: 'Name' },
  { key: 'email', header: 'Email' },
]);

export function UsersTable({ users }: { users: User[] }) {
  return (
    <DataTable
      data={users}
      columns={columns}
      preset="interactive"
      features={{ selection: true, search: true }}
      pagination={{ mode: 'offset', pageSize: 25 }}
    />
  );
}

Rows require one stable string id. Keep data and columns references stable for large tables.

Configuration

Use one grouped configuration path:

  • features enables selection, search, export, grouping, and other capabilities.
  • layout owns scroll and sticky behavior.
  • virtualization owns row and column virtualization.
  • pagination owns offset, cursor, or unpaginated modes.
  • editing owns inline-edit behavior and validation.
  • styling owns density, variant, and presentation.
  • controlled supplies externally owned table state.
  • callbacks receives state and interaction changes.

Presets (simple, interactive, editable, spreadsheet, server, and dashboard) provide defaults; explicit grouped configuration overrides them.

<DataTable
  data={users}
  columns={columns}
  preset="server"
  controlled={{ searchValue, filters, sortState }}
  callbacks={{
    onSearchChange: setSearchValue,
    onFilterChange: setFilters,
    onSortChange: setSortState,
  }}
  pagination={{ mode: 'cursor', cursor }}
/>

Bulk actions

import { DataTable, defineBulkActions } from '@unisane/data-table';

const bulkActions = defineBulkActions([
  {
    label: 'Archive',
    icon: 'archive',
    onClick: async (ids) => archiveUsers(ids),
  },
]);

<DataTable data={users} columns={columns} bulkActions={bulkActions} />;

Public imports

Use only declared package exports. Do not import src/**, workspace paths, or @unisane/ui internals. The package peers on public @unisane/ui/* subpaths and owns its own tests, build, CSS, and release boundary.

Maintainer checks

pnpm --filter @unisane/data-table lint
pnpm --filter @unisane/data-table check-types
pnpm --filter @unisane/data-table test
pnpm --filter @unisane/data-table build

This package is MIT licensed. The packed archive includes the exact license text.