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

@codefish24/react-flexi-table

v0.1.5

Published

A powerful, customizable React table component with sorting, filtering, global search, and dual framework support

Downloads

723

Readme

react-flexi-table

A modern, lightweight React data table with sorting, global search, typed column filters, pagination, footer summaries, and support for both Tailwind CSS and Bootstrap.

npm license


Features

  • Sorting — click any column header to sort asc / desc / clear
  • Global search — instant full-table search across all columns
  • Typed column filters — text, select, number, date, date range, boolean — opt-in per column
  • Pagination — built-in page navigation with page-size selector
  • Footer summaries — computed over all filtered rows (not just current page)
  • Custom cell rendering — full control via col.render
  • Per-column stylesalign, width, minWidth, cellClassName, headerClassName
  • Dual framework — Tailwind CSS or Bootstrap out of the box

Installation

npm install @codefish24/react-flexi-table

Import the stylesheet once in your app entry:

import '@codefish24/react-flexi-table/dist/index.css';

Quick Start

import { AdvancedTable } from '@codefish24/react-flexi-table';
import '@codefish24/react-flexi-table/dist/index.css';

const columns = [
  { key: 'name',  title: 'Name',  sortable: true },
  { key: 'age',   title: 'Age',   sortable: true },
  { key: 'email', title: 'Email', sortable: true },
];

const data = [
  { id: 1, name: 'Alice',  age: 28, email: '[email protected]' },
  { id: 2, name: 'Bob',    age: 34, email: '[email protected]'   },
  { id: 3, name: 'Carol',  age: 22, email: '[email protected]' },
];

export default function App() {
  return <AdvancedTable data={data} columns={columns} />;
}

Props

<AdvancedTable />

| Prop | Type | Default | Description | |---|---|---|---| | data | array | [] | Row data | | columns | array | [] | Column definitions (see below) | | enableSorting | boolean | true | Sort on column header click | | enableFiltering | boolean | false | Show per-column filter inputs (opt-in per column via col.filterable) | | enableGlobalSearch | boolean | true | Show global search bar | | enablePagination | boolean | true | Show pagination bar | | defaultPageSize | number | 10 | Rows shown per page | | pageSizeOptions | number[] | [10, 25, 50, 100] | Page size dropdown options | | enableFooter | boolean | false | Show footer row | | footerSummaryConfig | object | { enabled: false, showColumnSummaries: true } | Footer options | | uiFramework | string | 'tailwind' | 'tailwind' or 'bootstrap' | | fontFamily | string | 'font-inter' | CSS class applied to the container | | getRowKey | function | — | (row, index) => key — custom row key resolver | | globalSearchPlaceholder | string | 'Search...' | Placeholder for the search input |

Column definition

| Property | Type | Default | Description | |---|---|---|---| | key | string | required | Maps to a field in your data object | | title | string | required | Column header label | | sortable | boolean | true | Allow sorting on this column | | filterable | boolean | false | Show a filter input (requires enableFiltering={true}) | | filterType | string | 'text' | Filter input type — see table below | | filterOptions | string[] | — | Options for 'select' filter type | | render | function | — | (value, row) => ReactNode — custom cell renderer | | footerSummary | function | — | (allFilteredRows) => ReactNode\|string — footer cell content | | align | string | — | 'left' | 'center' | 'right' | | width | number\|string | — | Fixed column width e.g. 120 or '10%' | | minWidth | number\|string | — | Minimum column width | | headerClassName | string | — | Extra CSS class on the <th> | | cellClassName | string | — | Extra CSS class on every <td> in this column |

Filter types (filterType)

| Value | UI rendered | Match behaviour | |---|---|---| | 'text' (default) | Text input | Case-insensitive substring match | | 'select' | Dropdown | Exact string match — provide filterOptions: [] | | 'number' | Number input | Exact numeric equality | | 'boolean' | Yes / No / All dropdown | Boolean / truthy equality | | 'date' | Date picker | Matches rows whose value starts with the selected date string | | 'daterange' | Two date pickers (From / To) | Inclusive date range |


Examples

Pagination

<AdvancedTable
  data={data}
  columns={columns}
  enablePagination={true}
  defaultPageSize={25}
  pageSizeOptions={[25, 50, 100]}
/>

Global search + column filters

const columns = [
  { key: 'name',  title: 'Name',  filterable: true },           // text (default)
  { key: 'email', title: 'Email', filterable: true },           // text (default)
  { key: 'age',   title: 'Age' },                               // no filter
];

<AdvancedTable
  data={data}
  columns={columns}
  enableGlobalSearch={true}
  enableFiltering={true}
/>

Typed column filters

const columns = [
  // Free-text search
  { key: 'name', title: 'Name', filterable: true, filterType: 'text' },

  // Dropdown — pick from a fixed list
  {
    key: 'department',
    title: 'Department',
    filterable: true,
    filterType: 'select',
    filterOptions: ['Engineering', 'Design', 'Marketing', 'Sales'],
  },

  // Numeric equality
  { key: 'age', title: 'Age', filterable: true, filterType: 'number' },

  // Yes / No toggle
  { key: 'active', title: 'Active', filterable: true, filterType: 'boolean' },

  // Single date picker
  { key: 'created', title: 'Created', filterable: true, filterType: 'date' },

  // From / To date range
  { key: 'joined', title: 'Joined', filterable: true, filterType: 'daterange' },
];

<AdvancedTable
  data={data}
  columns={columns}
  enableFiltering={true}
/>

Custom cell rendering

const columns = [
  {
    key: 'status',
    title: 'Status',
    render: (value) => (
      <span className={value === 'Active' ? 'badge-green' : 'badge-red'}>
        {value}
      </span>
    ),
  },
  {
    key: 'salary',
    title: 'Salary',
    align: 'right',
    render: (value) => `$${value.toLocaleString()}`,
  },
];

Footer summaries

Footer values are computed over all filtered rows, so totals/averages stay correct while paginating.

const columns = [
  {
    key: 'salary',
    title: 'Salary',
    footerSummary: (rows) =>
      `Total: $${rows.reduce((s, r) => s + r.salary, 0).toLocaleString()}`,
  },
  {
    key: 'age',
    title: 'Age',
    footerSummary: (rows) =>
      `Avg: ${Math.round(rows.reduce((s, r) => s + r.age, 0) / rows.length)}`,
  },
];

<AdvancedTable
  data={data}
  columns={columns}
  enableFooter={true}
  footerSummaryConfig={{ enabled: true, showColumnSummaries: true }}
/>

Bootstrap

<AdvancedTable data={data} columns={columns} uiFramework="bootstrap" />

Custom row key

<AdvancedTable data={data} columns={columns} getRowKey={(row) => row.uuid} />

Local Development

# Clone and install
git clone https://github.com/codefish24/react-flexi-table.git
cd react-flexi-table
npm install

# Start the demo in the browser (hot-reload)
npm run dev

# Build the library
npm run build

License

MIT © codefish24