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

@guozhi5658/srp-table

v1.1.4

Published

High-performance React table component library

Readme

srp-table

NPM version node version npm download npm license

srp-table is a high-performance table component library for React applications. It is designed for data-intensive UIs and supports two integration styles:

  • direct prop-based usage with BaseTable
  • composable enhancement through pipeline and feature plugins

The library also exposes customizable component injection points and feature slots so teams can adapt rendering, interaction, and business behaviors without rewriting the rendering core.

Project Status

This project is forked from alibaba/ali-react-table.

The fork keeps the original MIT licensing model. Please retain the upstream attribution and license terms when redistributing or modifying the codebase.

Highlights

  • high-performance rendering for large datasets
  • sticky header and sticky footer support
  • left and right locked columns
  • horizontal and vertical virtualization
  • tree data, row detail, sorting, and other pipeline-driven features
  • pluggable renderers and component slots for customization
  • pivot table entry for cross-table and cross-tree-table scenarios

Installation

npm install @guozhi5658/srp-table

Quick Start

BaseTable

import { BaseTable } from '@guozhi5658/srp-table'

const columns = [
  { code: 'name', name: 'Name', width: 180 },
  { code: 'status', name: 'Status', width: 120 },
]

const dataSource = [
  { id: '1', name: 'Alpha', status: 'Ready' },
  { id: '2', name: 'Beta', status: 'Running' },
]

export function DemoTable() {
  return (
    <BaseTable
      primaryKey="id"
      columns={columns}
      dataSource={dataSource}
      isStickyHeader
    />
  )
}

Pipeline

import { BaseTable, features, useTablePipeline } from '@guozhi5658/srp-table'

export function PipelineDemo({ columns, dataSource }) {
  const pipeline = useTablePipeline()

  const tableProps = pipeline
    .input({ columns, dataSource })
    .primaryKey('id')
    .use(
      features.sort({
        mode: 'multiple',
      }),
    )
    .getProps()

  return <BaseTable {...tableProps} />
}

Fill Remaining Width

Use features.fillRemainingWidth() when you want fixed-width columns to keep their original widths as the container grows. Instead of stretching existing columns proportionally, the table appends a blank column on the right to absorb the remaining space.

import { BaseTable, features, useTablePipeline } from '@guozhi5658/srp-table'

export function FixedWidthDemo({ columns, dataSource }) {
  const pipeline = useTablePipeline()

  const tableProps = pipeline
    .input({ columns, dataSource })
    .primaryKey('id')
    .use(features.fillRemainingWidth())
    .getProps()

  return (
    <BaseTable
      {...tableProps}
      defaultColumnWidth={140}
      isStickyHeader
    />
  )
}

This feature is designed for the pipeline path and works with defaultColumnWidth, locked columns, and the table's built-in virtualization logic.

Playground

Run the local playground to develop and validate new features against the built-in flat, tree, and row-detail mock datasets:

npm install
npm run playground

The playground is intended for iterative feature work in a real React runtime and is the fastest way to verify layout, interaction, sticky behavior, and virtualization changes.

Build

npm run build

Build artifacts are emitted to dist/, including:

  • dist/srp-table.js
  • dist/srp-table.esm.js
  • dist/srp-table.d.ts
  • dist/srp-table-pivot.js
  • dist/srp-table-pivot.esm.js
  • dist/srp-table-pivot.d.ts

License

MIT. This fork is based on alibaba/ali-react-table, and the upstream attribution should be preserved.