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

edit-table-pro

v0.1.0

Published

High-performance editable table for React — virtual scroll, validation, undo/redo, fill handle, zero runtime dependencies

Readme

edit-table-pro

A high-performance editable table for React. Built for datasets with thousands of rows — virtual scroll, per-column validation, side effects, undo/redo, and fill handle, with zero runtime dependencies.

<EditableTable
  columns={columns}
  initialData={data}
  getRowId={(row) => row.id}
  height={600}
/>

Install

npm install edit-table-pro

Peer dependencies: React ≥ 18, React DOM ≥ 18

Then import the stylesheet once in your app entry point:

import 'edit-table-pro/style.css'

Quick Start

import { EditableTable } from 'edit-table-pro'
import type { ColDef } from 'edit-table-pro'
import 'edit-table-pro/style.css'

type Product = {
  id: string
  name: string
  price: string
  stock: string
}

const columns: ColDef<Product>[] = [
  { key: 'name',  type: 'text',   header: 'Name',  width: 200 },
  { key: 'price', type: 'number', header: 'Price', width: 100,
    validate: (v) => Number(v) >= 0 ? { ok: true } : { ok: false, error: 'Must be ≥ 0' } },
  { key: 'stock', type: 'number', header: 'Stock', width: 100 },
]

const data: Product[] = [
  { id: '1', name: 'Widget A', price: '9.99',  stock: '100' },
  { id: '2', name: 'Widget B', price: '14.99', stock: '50'  },
]

export default function App() {
  return (
    <EditableTable
      columns={columns}
      initialData={data}
      getRowId={(row) => row.id}
      height={400}
    />
  )
}

Note: All row values must be string. Numbers, dates, and booleans are stored as strings and formatted/validated per column.

Features

| Feature | Description | |---------|-------------| | Virtual scroll | Renders only visible rows — handles 50,000+ rows smoothly | | Inline validation | Sync validation per cell with tooltip error display | | Side effects | Async callbacks on change/blur — auto-save, dependent field updates | | Undo / Redo | Ctrl+Z / Ctrl+Y, including multi-cell fill operations | | Fill Handle | Drag to fill down/up, smart series detection (numeric, date, copy) | | Multi-cell selection | Click+drag or Shift+click to select a range, then fill all at once | | Paste from Excel/Sheets | Tab-separated paste maps to the correct columns automatically | | Row selection | Checkbox column with onSelectionChange callback | | Column resize | Drag column header edge to resize | | CSV export | One-call export, BOM-prefixed for Excel UTF-8 compatibility | | Theming | CSS token overrides — colors, font, border radius | | Zero runtime deps | No lodash, no axios, no date library — just React |

Keyboard Shortcuts

| Key | Action | |-----|--------| | Tab / Enter | Move to next cell | | Shift+Tab | Move to previous cell | | Arrow keys | Navigate between cells | | Escape | Cancel edit, restore committed value | | Ctrl+Z | Undo | | Ctrl+Y / Ctrl+Shift+Z | Redo | | Ctrl+D | Fill active cell down one row | | Ctrl+R | Fill active cell right one column |

Documentation

| Guide | Contents | |-------|----------| | Getting Started | Step-by-step setup, first working table | | ColDef Reference | Every column definition field explained | | Validation | Sync validation, cross-column rules, error display | | Side Effects | Auto-save, dependent fields, abort & debounce | | Fill & Selection | Fill handle, multi-cell select, paste | | Row Management | Add rows, row selection, batch append | | Export & Submit | CSV export, collecting dirty rows, submit flow | | Custom Render | Buttons, badges, and custom cell content | | Performance Guide | Benchmarks, sweet spots, pitfalls | | Limitations | What it does not support and when to use alternatives |

Theming

Override CSS variables anywhere in your stylesheet:

.et-root {
  --et-color-primary:    #52c41a;   /* green accent */
  --et-color-bg-header:  #f6ffed;
  --et-color-row-hover:  rgba(82,196,26,0.04);
  --et-font-size:        13px;
  --et-border-radius:    4px;
}

Or pass a theme prop:

<EditableTable
  theme={{ colorPrimary: '#52c41a', colorBgHeader: '#f6ffed' }}
  ...
/>

Requirements

  • React 18 or later
  • TypeScript recommended (the library ships full type definitions)
  • Row type must satisfy Record<string, string> — all cell values are strings

License

MIT