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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aesclo/table

v0.2.1

Published

A feature-rich data table library built on TanStack Table with React and TypeScript

Readme

@aesclo/table

A feature-rich, enterprise-ready data table library built on TanStack Table with React and TypeScript.

npm version License: MIT

✨ Features

Core Features

  • 🎯 Sorting - Multi-column sorting with customizable comparators
  • 🔍 Filtering - Global search and per-column filters (text, number, select, date)
  • 📄 Pagination - Client-side and server-side pagination support
  • 👁️ Column Visibility - Show/hide columns dynamically
  • 📏 Column Resizing - Drag to resize columns
  • 📌 Column Pinning - Pin columns to left or right
  • 🎨 Row Selection - Single and multi-row selection
  • 🔄 Row Reordering - Drag-and-drop rows to reorder

Premium Features

  • Virtual Scrolling - Handle thousands of rows efficiently
  • ✏️ Inline Editing - Edit cells directly in the table
  • 📤 Export - Export to CSV, Excel, PDF
  • 📋 Copy/Paste - Copy table data to clipboard
  • 🎯 Context Menu - Right-click actions on rows
  • 📊 Master-Detail - Expandable row details
  • 🔢 Footer Aggregations - Sum, average, count, min, max
  • 🌳 Nested Tables - Tables within tables

Enterprise Features

  • 🏗️ Column Grouping - Group related columns under headers
  • 💾 State Persistence - Save table state to localStorage
  • 🌐 Server-Side Operations - Connect to your API
  • Accessibility - WCAG compliant with ARIA attributes and keyboard navigation

📦 Installation

npm install @aesclo/table

Peer Dependencies

npm install react react-dom

🚀 Quick Start

1. Import Styles

import '@aesclo/table/styles.css';

2. Basic Usage

import { DataTable } from '@aesclo/table';

function App() {
  const data = [
    { id: 1, name: 'John Doe', age: 28, email: '[email protected]' },
    { id: 2, name: 'Jane Smith', age: 32, email: '[email protected]' },
  ];

  const columns = [
    { accessorKey: 'name', header: 'Name' },
    { accessorKey: 'age', header: 'Age' },
    { accessorKey: 'email', header: 'Email' },
  ];

  return (
    <DataTable
      data={data}
      columns={columns}
      enableSorting
      enableFiltering
      enablePagination
    />
  );
}

📖 Common Use Cases

Sortable & Filterable Table

<DataTable
  data={data}
  columns={columns}
  enableSorting
  enableFiltering
  enableGlobalFilter
  striped
  bordered
/>

Server-Side Table

<DataTable
  data={data}
  columns={columns}
  manualPagination
  manualSorting
  manualFiltering
  onPaginationChange={handlePaginationChange}
  onSortingChange={handleSortingChange}
  onFilteringChange={handleFilteringChange}
  rowCount={totalRows}
/>

Editable Table

const columns = [
  {
    accessorKey: 'name',
    header: 'Name',
    editable: true,
  },
];

<DataTable
  data={data}
  columns={columns}
  updateData={(rowIndex, columnId, value) => {
    // Update your data
  }}
/>

Table with Row Selection & Export

<DataTable
  data={data}
  columns={columns}
  enableRowSelection
  enableExport
  onRowSelectionChange={(selectedRows) => {
    console.log('Selected:', selectedRows);
  }}
/>

Grouped Columns

const columns = [
  {
    header: 'Personal Info',
    columns: [
      { accessorKey: 'firstName', header: 'First Name' },
      { accessorKey: 'lastName', header: 'Last Name' },
    ],
  },
  {
    header: 'Contact',
    columns: [
      { accessorKey: 'email', header: 'Email' },
      { accessorKey: 'phone', header: 'Phone' },
    ],
  },
];

State Persistence

<DataTable
  data={data}
  columns={columns}
  persistState="my-table-key"
  // Table state is automatically saved and restored
/>

🎨 Theming

The table uses CSS variables for easy theming. You can override them in your CSS:

:root {
  --table-border-color: #e5e7eb;
  --table-header-bg: #f9fafb;
  --table-row-hover-bg: #f3f4f6;
  --table-selected-bg: #dbeafe;
}

📚 API Reference

TableProps

| Prop | Type | Default | Description | |------|------|---------|-------------| | data | TData[] | required | Array of data objects | | columns | TableColumn<TData>[] | required | Column definitions | | enableSorting | boolean | true | Enable column sorting | | enableFiltering | boolean | true | Enable column filters | | enableGlobalFilter | boolean | true | Enable global search | | enablePagination | boolean | true | Enable pagination | | enableRowSelection | boolean | false | Enable row selection | | enableColumnPinning | boolean | false | Enable column pinning | | enableExpanding | boolean | false | Enable row expansion | | enableVirtualization | boolean | false | Enable virtual scrolling | | enableExport | boolean | false | Enable export buttons | | pageSize | number | 10 | Rows per page | | striped | boolean | false | Striped row styling | | bordered | boolean | false | Add borders | | hoverable | boolean | true | Highlight on hover | | compact | boolean | false | Compact row spacing | | persistState | string | - | Key for localStorage persistence |

See full API documentation for all props and column options.

🛠️ Built With

📄 License

MIT © Aesclo

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

🐛 Issues

Found a bug? Please file an issue on GitHub.

📞 Support

For questions and support, please open an issue on GitHub.