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

esseal-data-table

v1.1.1

Published

A high-performance, feature-rich Data Grid for React applications. Built with performance and flexibility in mind, EssealTable handles large datasets effortlessly via virtualization and gives developers total control over state persistence through an "Inv

Readme

EssealTable

A high-performance, feature-rich Data Grid for React applications. Built with performance and flexibility in mind, EssealTable handles large datasets effortlessly via virtualization and gives developers total control over state persistence through an "Inversion of Control" architecture.

🚀 Key Features

  • Virtualization: Efficiently renders thousands of rows by only drawing what is currently visible in the viewport.
  • Flexible Persistence: Save and restore table states (sorting, filtering, pinning, column visibility, density) to any storage backend (LocalStorage, Database, or URL).
  • Interactive Column Management:
    • User-Controlled Pinning: Users can pin columns to the Left or Right via a header menu.
    • Visibility Picker: Toggle columns on/off via a built-in toolbar menu.
    • Resizing: Robust drag-and-drop column width adjustment.
  • Grouping & Aggregation: Hierarchical data grouping with collapsible sections and persistence.
  • Sticky Headers & Columns: Keep context while scrolling through large datasets.
  • Built-in Action System: Support for row-level actions with an automated overflow menu.
  • Pagination & Selection: Standardized checkbox selection and footer-based pagination.

📦 Installation

Include the EssealTable.tsx component in your project. It is self-contained with embedded CSS for maximum portability.

💾 State Persistence (Advanced)

EssealTable allows you to handle persistence however you like by passing a function to onStateChange.

Example: LocalStorage Integration

import { EssealTable, TableState } from "./EssealTable";

export const MyPersistentTable = () => {
  // 1. Load saved state from your storage of choice
  const savedState = JSON.parse(localStorage.getItem("table-prefs") || "{}");

  // 2. Define how to save the state when it changes
  const handleStateChange = (newState: TableState) => {
    localStorage.setItem("table-prefs", JSON.stringify(newState));
    console.log("State saved:", newState);
  };

  return (
    <EssealTable
      rows={myRows}
      columns={myColumns}
      initialState={savedState} // Rehydrate state
      onStateChange={handleStateChange} // Save on updates
      pagination={true}
    />
  );
};

⚙️ API Reference

DataGridProps

| Prop | Type | Description | | :------------------ | :---------------------------- | :------------------------------------------------------ | | rows | T[] | The data to be displayed (requires an id field). | | columns | GridColDef[] | Column definitions. | | height | number | Total height of the table container (px). Default: 600. | | rowHeight | number | Default height of each row (px). Default: 40. | | loading | boolean | Displays a loading overlay. | | initialState | Partial<TableState> | The state to apply on first load. | | onStateChange | (state: TableState) => void | Fired on sort, filter, pin, or page change. | | rowActions | (row: T) => GridAction[] | Returns an array of actions for each row. | | groupBy | (keyof T)[] | Default array of keys to group data by. | | checkboxSelection | boolean | Enable/disable row selection checkboxes. |

TableState Object

The state object provided to onStateChange (and accepted by initialState) includes:

  • page: Current page number.
  • sortModel: Current active sort (field and direction).
  • filterModel: Active filter strings per column.
  • expandedGroups: Map of which group IDs are toggled open.
  • groupBy: Current grouping configuration.
  • rowHeight: The user's selected density/height.
  • columnVisibility: Map of hidden/visible columns.
  • pinnedColumns: Map of column pinning (left/right/false).

🎨 Theming

The table uses CSS variables. Override these in your global stylesheet to match your brand:

:root {
  --dg-primary: #0ea5e9;
  --dg-surface: #ffffff;
  --dg-border: #e2e8f0;
  --dg-text-primary: #0f172a;
}