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

excelike-table

v1.0.1

Published

A powerful React table library with Excel-like filtering, column pinning, and dynamic sizing capabilities

Readme

ExceLike Table

npm version License: MIT

A powerful, feature-rich React table library with Excel-like filtering, column pinning, and dynamic sizing capabilities.

✨ Features

  • 🔍 Excel-like Filtering: Hierarchical date filters, range sliders, checkbox selections
  • 📌 Column Pinning: Pin columns to the left with sticky positioning
  • 📏 Dynamic Sizing: Responsive height adjustment based on available space
  • 🎯 Smart Positioning: Intelligent dropdown positioning to prevent cutoff
  • 🔄 Column Management: Show/hide columns with real-time preview
  • 📊 Advanced Sorting: Multi-type data sorting (text, numbers, dates)
  • 📱 Responsive Design: Works seamlessly across different screen sizes
  • 🎨 Customizable: Flexible styling and theming options
  • 📦 Zero Dependencies: No external UI library dependencies
  • 🔷 TypeScript: Full TypeScript support with comprehensive type definitions

🚀 Quick Start

Installation

npm install excelike-table
# or
yarn add excelike-table

Basic Usage

import React from 'react';
import { EnhancedTable, TableColumn } from 'excelike-table';
import 'excelike-table/dist/lib/styles.css'; // Import CSS styles

interface Employee {
  id: number;
  name: string;
  department: string;
  salary: number;
  joinDate: string;
}

const columns: TableColumn<Employee>[] = [
  {
    key: 'name',
    title: '名前',
    dataIndex: 'name',
    sortable: true,
    filterable: true,
  },
  {
    key: 'department',
    title: '部署',
    dataIndex: 'department',
    sortable: true,
    filterable: true,
  },
  {
    key: 'salary',
    title: '給与',
    dataIndex: 'salary',
    sortable: true,
    filterable: true,
    render: (value) => `¥${value.toLocaleString()}`,
  },
  {
    key: 'joinDate',
    title: '入社日',
    dataIndex: 'joinDate',
    sortable: true,
    filterable: true,
    filterType: 'date-hierarchy',
  },
];

const data: Employee[] = [
  {
    id: 1,
    name: '田中太郎',
    department: '営業部',
    salary: 5000000,
    joinDate: '2021-04-01',
  },
  // ... more data
];

function App() {
  return (
    <EnhancedTable
      data={data}
      columns={columns}
      rowKey="id"
      pagination={{
        pageSize: 20,
        showSizeChanger: true,
        showTotal: (total, range) => 
          `${range[0]}-${range[1]} of ${total} items`,
      }}
    />
  );
}

📖 API Reference

EnhancedTable Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | data | T[] | - | Table data array | | columns | TableColumn<T>[] | - | Column configuration | | rowKey | keyof T | - | Unique key for each row | | pagination | PaginationConfig | - | Pagination settings | | loading | boolean | false | Loading state | | size | 'small' \| 'middle' \| 'large' | 'middle' | Table size | | bordered | boolean | true | Show borders | | className | string | - | Custom CSS class | | style | CSSProperties | - | Custom styles |

TableColumn Properties

| Property | Type | Description | |----------|------|-------------| | key | string | Unique column identifier | | title | string | Column header title | | dataIndex | keyof T | Data field key | | width | number | Column width in pixels | | sortable | boolean | Enable sorting | | filterable | boolean | Enable filtering | | filterType | 'text' \| 'select' \| 'date-hierarchy' | Filter type | | render | (value, record, index) => ReactNode | Custom cell renderer |

🎨 Advanced Features

Column Pinning

Pin important columns to the left for easy access during horizontal scrolling:

// Access column settings through the table menu (⚙️ icon)
// Check the 📌 pin checkbox for desired columns

Date Hierarchy Filtering

Perfect for time-series data with year/month/day breakdown:

{
  key: 'date',
  title: 'Date',
  dataIndex: 'date',
  filterType: 'date-hierarchy', // Enables hierarchical date filtering
  filterable: true,
}

Range Filtering

Numeric columns automatically get range sliders:

{
  key: 'salary',
  title: 'Salary',
  dataIndex: 'salary',
  filterable: true, // Auto-detects numeric data and adds range slider
}

Custom Rendering

{
  key: 'status',
  title: 'Status',
  dataIndex: 'status',
  render: (value) => (
    <span className={`status-${value}`}>
      {value.toUpperCase()}
    </span>
  ),
}

🎯 Features in Detail

🔍 Intelligent Filtering

  • Text Filters: Search with real-time filtering
  • Checkbox Filters: Multi-select with "select all" functionality
  • Range Filters: Dual sliders for numeric data
  • Date Hierarchy: Year > Month > Day structure
  • Empty Value Handling: Special handling for null/empty values

📌 Column Management

  • Dynamic Pinning: Pin/unpin columns via settings modal
  • Real-time Preview: See changes before applying
  • Automatic Positioning: Pinned columns stay on the left
  • Width Preservation: Maintains custom column widths

📱 Responsive Design

  • Dynamic Heights: Adapts to available screen space
  • Smart Positioning: Prevents dropdown cutoff
  • Touch Friendly: Works well on mobile devices
  • Flexible Layout: Adjusts to container constraints

🔧 Development

Local Development

# Clone the repository
git clone https://github.com/your-username/excelike-table.git
cd excelike-table

# Install dependencies
npm install

# Start development server
npm start

# Build library
npm run build:lib

# Run tests
npm test

Build for Production

npm run build:lib

This generates optimized bundles in the dist/ directory.

📄 License

MIT © [Your Name]

🤝 Contributing

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

📞 Support

If you encounter any issues or have questions, please create an issue on GitHub.