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

@rentnerkev/table

v1.4.2

Published

Accessible, typed React tables with TanStack Table and shared RentnerKev styling.

Readme

Accessible, typed React tables built with TanStack Table 9 and shared RentnerKev styling. Define your columns once and reuse search, filters, selection, pagination and actions across your projects.

Installation

Requires React 19, React DOM 19, and Tailwind CSS 4. Components use the existing RentnerKev input, select, menu and calendar packages.

npm install @rentnerkev/table
# or with Bun
bun add @rentnerkev/table

The package contains compiled ESM, declarations, styles and usage documentation.

Import the package styles after Tailwind in your app stylesheet:

@import 'tailwindcss';
@import '@rentnerkev/table/tailwind.css';

The stylesheet includes the styles of the controls used by the table.

Quick start

'use client'

import { DataTable, createTableColumnHelper } from '@rentnerkev/table'

type Member = {
    id: string
    name: string
    role: string
    joined: string
}

const column = createTableColumnHelper<Member>()
const columns = column.columns([
    column.accessor('name', {
        header: 'Member',
        meta: { filter: { type: 'text' } },
    }),
    column.accessor('role', {
        header: 'Role',
        meta: {
            filter: {
                type: 'select',
                options: [
                    { value: 'Developer', label: 'Developer' },
                    { value: 'Designer', label: 'Designer' },
                ],
            },
        },
    }),
    column.accessor('joined', {
        header: 'Joined',
        meta: { filter: { type: 'dateRange' } },
    }),
])

export function TeamTable({ members }: { members: readonly Member[] }) {
    return (
        <DataTable
            data={members}
            columns={columns}
            getRowId={(member) => member.id}
            getRowLabel={(member) => member.name}
            title="Team overview"
            description="Manage your team and roles."
            locale="en"
            selectable
        />
    )
}

Keep column definitions and input data stable between unrelated renders. Use real record IDs for selection and expanded details.

Screenshots

| Dark theme | Light theme, filters and selection | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Dark team table | Light team table with filters and selection |

Screenshots come from the local playground with example data.

Full API & usage · Local playground · Repository automation · MIT license

Features

  • Typed accessor, display and grouped columns through createTableColumnHelper.
  • Global search and spacious, responsive text/select/date-range filters with custom renderers.
  • Keyboard sorting, Shift multi-sort, column visibility and configurable page sizes.
  • Optional column layout dialog with draft order, visibility and widths, Apply, Cancel and Reset.
  • Stable row selection across pages, selectable-row predicates and bulk actions.
  • Row action menus, expandable details and custom cell renderers.
  • Optional column resizing bounded by the available viewport, with mouse, touch and keyboard controls.
  • Optional row reordering with bounded previews, keyboard support and controlled data callbacks.
  • Typed row/cell click, double-click and context-menu callbacks for application actions.
  • Loading, refreshing, error/retry, empty and no-results states with readable search/filter context.
  • Optional versioned preferences in local/session storage or an asynchronous database adapter, including internal row order.
  • German and English messages with per-message overrides.
  • Shared --rentner-* theme tokens, scoped popup containers, three densities and striped rows.
  • Native table semantics, SSR, headless composition and controlled server pagination/filtering/sorting.
  • Paginated rendering and query preparation before row filtering. Calendar controls load on demand.

Table provides the minimal sortable table without a toolbar or pagination. DataTable adds the reusable management interface; useDataTableLogic and TableSurface support custom composition.

Enable columnSettings on DataTable for the complete layout dialog and resizableColumns for editable widths. The dialog uses existing controlled table callbacks and optional preference storage. See the column layout guide.

Local Node.js and Bun tooling can read installed guides and public declarations through @rentnerkev/table/ai without loading React UI.

Development

Requires Bun 1.4.4 with native bun fmt support.

bun install --frozen-lockfile
bun run playground:install
bun run playground:dev

Open http://127.0.0.1:4179. Try resizing, row reordering, status editing, context menus, filters, bulk actions, row details, themes and loading/error/empty states. Enable Remember settings and reload to restore the table's preferences and internal row order.

bunx playwright install chromium firefox webkit
bun run verify

Verification includes typechecks, lint, formatting, tests, package build, an isolated installed consumer, production playground build, and Chromium/Firefox/WebKit tests with accessibility scans. CI also checks React 19.0.0 and 19.3.1.

Library components, hooks and types live under src/shared/Table, UI-free helpers under src/lib, and tests mirror these owners in src/tests. Playground source and marketing images stay outside the published package.

Releases and maintenance

Dependabot checks both Bun packages and GitHub Actions daily. Verified minor/patch updates receive automatic approval and guarded squash auto-merge after the protected branch's checks pass. Major updates require maintainer review.

Publishing a stable GitHub release named vMAJOR.MINOR.PATCH triggers exact-tag verification, tag-derived package versioning and npm publication with provenance. A separate workflow generates release notes and uploads the project banner. Pushing commits or tags alone does not publish a package.

The npm Trusted Publisher authorizes GitHub owner RentnerKev, repository RentnerTable and workflow filename npm-publish.yml. Future releases use OIDC rather than a stored npm token. See automation setup for the repository settings, update policy and release procedure.

License

MIT © RentnerKev

Community

See Contributing, the Code of Conduct, Support, and the Security Policy.

Whole-row expansion is opt-in with expandOnRowClick. See the styling and interaction guide for provider defaults, visual slots, header dividers and typed double-click callbacks.