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

flowers-nextjs-table

v2.0.0

Published

A headless, highly customizable, and performant table component for Next.js and React applications.

Downloads

311

Readme

flowers-nextjs-table

npm version Bundle Size TypeScript Tests Security License

A production-ready, headless, performant, and highly customizable table component for React and Next.js. Built with strict TypeScript, designed for scalability, and optimized for millions of users.

  • Truly Headless — Zero built-in styles, complete design freedom
  • High Performance — Optimized for large datasets with server-side pagination support
  • Type Safe — Strict TypeScript, zero any types, full IntelliSense
  • Secure by Default — XSS protection and input sanitization built-in
  • Accessible — WCAG 2.1 AA compliant with full keyboard navigation
  • SSR Compatible — Works with Next.js App Router and Server Components

Quick Start

npm install flowers-nextjs-table
"use client";
import { Table, type ColumnDef } from 'flowers-nextjs-table';
import 'flowers-nextjs-table/styles';

interface User {
  id: number;
  name: string;
  email: string;
  role: 'admin' | 'user';
}

const columns: ColumnDef<User>[] = [
  { accessorKey: 'name', header: 'Name', enableSorting: true },
  { accessorKey: 'email', header: 'Email' },
  { accessorKey: 'role', header: 'Role' },
];

const users: User[] = [
  { id: 1, name: 'Alice Johnson', email: '[email protected]', role: 'admin' },
  { id: 2, name: 'Bob Smith', email: '[email protected]', role: 'user' },
];

export default function UsersTable() {
  return <Table data={users} columns={columns} />;
}

Styling

The library is headless — you control all styling. Two approaches:

Default styles (quick start):

import 'flowers-nextjs-table/styles';
<Table data={data} columns={columns} enableDarkMode={true} />

Custom classes (full control via Tailwind, CSS modules, or any CSS):

<Table
  data={data}
  columns={columns}
  classNames={{
    container: 'bg-white rounded-lg shadow-sm border overflow-hidden',
    table: 'w-full',
    thead: 'bg-gray-50',
    th: 'px-6 py-4 text-left text-xs font-semibold text-gray-600 uppercase',
    tbody: 'divide-y divide-gray-200',
    tr: 'hover:bg-blue-50 transition-colors',
    td: 'px-6 py-4 whitespace-nowrap text-sm text-gray-900',
  }}
/>

See Styling System for the full classNames reference.

Pagination

// Client-side (default) — provide all data, table handles paging
<Table data={allData} columns={columns} itemsPerPage={25} />

// Server-side — you control page state
<Table
  data={currentPageData}
  columns={columns}
  paginationMode="manual"
  disableInternalProcessing={true}
  page={page}
  totalPages={totalPages}
  onPageChange={setPage}
/>

See Pagination System for full examples with flow diagrams.

Performance

| Metric | Value | |--------|-------| | Bundle Size (gzipped) | < 20kB | | Tree Shaking | Full ESM support | | TypeScript Coverage | 100% | | Test Coverage | > 90% |

For large datasets, use paginationMode="manual" with disableInternalProcessing={true}, or implement virtual scrolling via the renderBody prop. See Performance Optimization.

Compatibility

| Dependency | Supported Versions | |---|---| | React | 18.x, 19.x | | Next.js | 13.x — 16.x | | TypeScript | 5.0+ | | Node.js | 20+, 22+, 24+ | | Tailwind CSS | 3.x, 4.x (optional) |

Documentation

| Document | Purpose | |----------|---------| | API Reference | Complete props, types, hooks, components, utilities, patterns, and troubleshooting | | Migration Guide | Migrate from nextjs-reusable-table or other table libraries | | Contributing | Development setup and contribution workflow | | Changelog | Version history |

AI Integration

This library is optimized for AI-assisted development:

  • Cursor AI Skill — Install from .cursor/skills/flowers-table/ for in-editor guidance on props, patterns, and troubleshooting
  • Context7 — Configured via context7.json for automatic doc lookup in MCP-compatible tools
  • LLM Referencellms.txt (concise) and llms-full.txt (complete) for LLM context
  • Agent GuideAGENTS.md provides coding standards and workflow guidance for AI agents

Contributing

git clone https://github.com/ninsau/flowers-nextjs-table.git
cd flowers-nextjs-table
npm install
npm run dev

See Contributing Guide for the full development workflow.

License

ISC © ninsau