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

@scorpionmanace/tablez

v0.0.5

Published

A modern, highly customizable, and performant React data table library.

Readme

@scorpionmanace/tablez

A modern, highly customizable, and performant React data table library.

Features:

  • 🎨 Theming Support: Fully customizable themes with built-in Light/Dark modes.
  • 📐 Resizable Columns: Drag-to-resize support.
  • Virtual Scrolling: Efficient rendering for large datasets.
  • 🔍 Filtering & Sorting: Built-in column menus with search and sort support.
  • 🌐 Client & Server Side: Support for both local and server-side data processing.
  • ⚛️ TypeScript Ready: Full type support out of the box.

📦 Installation

npm install @scorpionmanace/tablez

🚀 Quick Start (React)

import { Table } from '@scorpionmanace/tablez';

const columns = [
  { key: 'id', title: 'ID', sortable: true },
  { key: 'name', title: 'Name', sortable: true, filterable: true },
];

function App() {
  return (
    <Table
      data={data}
      columns={columns}
      settings={{
        mode: "client",
        virtualized: true,
        containerHeight: 500
      }}
      rowSettings={{
        key: "id",
        onClick: (record) => console.log("Clicked row", record)
      }}
    />
  );
}

🚀 Headless / Multi-Framework Support

Tablez is built on a Headless Engine. All the logic (virtualization math, sorting, filtering) is framework-agnostic.

Vanilla JS / Generic Wrapper

Use the TablezEngine class to manage state in any environment.

import { TablezEngine } from '@scorpionmanace/tablez';

const engine = new TablezEngine({
  data: myData,
  columns: myColumns,
  onUpdate: (state) => {
    // Render your UI using state.visibleData, state.offsetY, etc.
    renderMyTable(state);
  }
});

// Sync scroll
container.onscroll = (e) => engine.setScrollTop(e.target.scrollTop);

Vue 3 (Composition API)

import { ref, computed } from 'vue';
import { calculateVirtualization } from '@scorpionmanace/tablez';

const scrollTop = ref(0);
const virtualization = computed(() => calculateVirtualization({
  scrollTop: scrollTop.value,
  rowHeight: 50,
  containerHeight: 500,
  dataLength: myData.length
}));

Svelte (Stores)

import { writable, derived } from 'svelte/store';
import { calculateVirtualization } from '@scorpionmanace/tablez';

const scrollTop = writable(0);
const virtualization = derived(scrollTop, ($top) => calculateVirtualization({
  scrollTop: $top,
  rowHeight: 50,
  containerHeight: 500,
  dataLength: myData.length
}));

Angular (Signals)

import { signal, computed } from '@angular/core';
import { calculateVirtualization } from '@scorpionmanace/tablez';

const scrollTop = signal(0);
const virtualization = computed(() => calculateVirtualization({
  scrollTop: scrollTop(),
  rowHeight: 50,
  containerHeight: 500,
  dataLength: myData.data.length
}));

React Native

Since the core logic doesn't use the DOM, you can use it to drive a FlatList or custom scroll view in React Native for high-performance tables.


🔄 Migrating to 0.0.5

The API was reorganized in v0.0.5 to support multi-framework usage and better readability.

| Old Prop | New Prop | |----------|----------| | virtualized | settings.virtualized | | rowKey | rowSettings.key | | rowClassName | rowSettings.className | | onRowClick | rowSettings.onClick | | theme | settings.theme | | containerHeight | settings.containerHeight |


📜 API

Table Props (React)

| Prop | Type | Description | |------|------|-------------| | data | T[] (Required) | Array of data records to display | | columns | Column<T>[] (Required) | Column definitions | | settings | TableSettings | Table-wide configurations | | rowSettings| RowSettings | Row-specific configurations | | onSort | (state: TableSortState) => void | Server-mode sort callback | | onFilter | (filters: TableFilters) => void | Server-mode filter callback | | onCellEdit | (record: T, key: string, value: any) => void | Callback when a cell is edited | | components | TableComponents | Override Row, Cell, or Header components |

TableSettings

| Property | Type | Default | Description | |----------|------|---------|-------------| | virtualized | boolean | false | Enable virtual scrolling | | containerHeight | number | 500 | Height of the scroll container | | mode | 'client' \| 'server' | 'client' | Processing mode | | loading | boolean | false | Show loading state | | showColumnBorders| boolean | true | Show vertical separators | | resizable | boolean | false | Global resize enable | | theme | TableTheme | defaultTheme | Theme object |

RowSettings

| Property | Type | Default | Description | |----------|------|---------|-------------| | key | string \| (r: T) => string | undefined | Unique row key | | height | number | 50 | Row height in pixels | | overscan | number | 3 | Rows to render outside viewport | | className | string \| (r: T, i: n) => string | undefined | Custom row CSS class | | onClick | (record: T) => void | undefined | Row click handler |

Column Properties

| Property | Type | Description | |----------|------|-------------| | key | string | Unique key for the column | | title | ReactNode | Column header title | | fixed | 'left' \| 'right' | Pin column to side | | sortable | boolean | Enable sorting for this column | | filterable | boolean | Enable search filter for this column | | editable | boolean \| (record: T) => boolean | Enable cell editing | | width | number | Width in pixels | | align | 'left' \| 'center' \| 'right' | Text alignment | | render | function | Custom cell rendering function |


❄ Features

Column Freezing

Pin columns to the left or right side. Users can also freeze/unfreeze via the column menu.

const columns = [
  { key: 'id', title: 'ID', fixed: 'left', width: 70 },
  { key: 'actions', title: 'Actions', fixed: 'right', width: 120 }
];

Virtualization

Optimized for 100,000+ rows using a headless math engine and throttled rendering.

Custom Rendering

const columns = [{
  key: 'user',
  title: 'User',
  render: (record) => <UserBadge user={record} />
}];

🧪 Testing

npm test

License

MIT