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

@dawood97/data-table

v1.0.6

Published

A feature-rich React data table built with TanStack Table - no Tailwind required

Downloads

128

Readme

@dawood97/data-table

A polished React data table built on TanStack Table with self-contained CSS and no Tailwind dependency.

Install

npm install @dawood97/data-table

Then import the component and bundled stylesheet:

import DataTable from '@dawood97/data-table'
import '@dawood97/data-table/style.css'

Quick Setup

  1. Install the package:
npm install @dawood97/data-table 
  1. Import the component and styles:
import DataTable from '@dawood97/data-table'
import '@dawood97/data-table/style.css'
  1. Render it with data and columns:
const columns = [
  { accessorKey: 'id', header: 'ID' },
  { accessorKey: 'name', header: 'Name' },
  { accessorKey: 'email', header: 'Email' },
]

const data = [
  { id: 1, name: 'Ava Johnson', email: '[email protected]' },
  { id: 2, name: 'Noah Lee', email: '[email protected]' },
]

<DataTable
  data={data}
  columns={columns}
  enableSearch
  enableSorting
  enablePagination
/>

Quick Start

import { useMemo, useState } from 'react'
import DataTable from '@dawood97/data-table'
import '@dawood97/data-table/style.css'

const columns = [
  { accessorKey: 'id', header: 'ID', size: 64 },
  { accessorKey: 'name', header: 'Name' },
  { accessorKey: 'email', header: 'Email' },
]

export default function UsersTable() {
  const data = useMemo(
    () => [
      { id: 1, name: 'Ava Johnson', email: '[email protected]' },
      { id: 2, name: 'Noah Lee', email: '[email protected]' },
    ],
    [],
  )
  const [selectedRows, setSelectedRows] = useState([])

  return (
    <DataTable
      data={data}
      columns={columns}
      enableSearch
      enableSorting
      enablePagination
      enableRowSelection
      onSelectedRowsChange={setSelectedRows}
      searchPlaceholder="Search users..."
    />
  )
}

Highlights

  • Search, sorting, pagination, column filters, column visibility, and row selection.
  • Clean default UI with responsive layout and accessible controls.
  • Controlled or uncontrolled state support for search, sorting, filters, visibility, and selection.
  • Self-contained CSS that works out of the box in consumer apps.

Props

Core

  • data: row array.
  • columns: TanStack column definitions.
  • className: extra wrapper class names.
  • toolbar: custom content rendered in the toolbar.
  • emptyState: custom empty-state node.
  • noResultsMessage: custom message when filters/search return nothing.
  • noDataMessage: custom message when the dataset is empty.
  • striped: alternate row backgrounds.
  • getRowId: optional TanStack getRowId callback. Recommended for stable selection.

Feature Toggles

  • enableSearch
  • enableSorting
  • enablePagination
  • enableColumnFilters
  • enableColumnVisibility
  • enableRowSelection

Pagination

  • initialPageSize
  • pageSizeOptions

Search

  • searchPlaceholder
  • globalFilter
  • onGlobalFilterChange

Controlled Table State

  • sorting
  • onSortingChange
  • columnFilters
  • onColumnFiltersChange
  • columnVisibility
  • onColumnVisibilityChange
  • rowSelection
  • onRowSelectionChange
  • onSelectedRowsChange

Notes

  • onRowSelectionChange returns the TanStack-style selection state object.
  • onSelectedRowsChange returns the selected row records, which is usually the easiest API for app code.
  • If you publish or consume this package in npm, keep react, react-dom, and `` installed in the app because they are peer dependencies.