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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mui-tantable

v0.1.0

Published

A lightweight MUI-styled TanStack table with list-view, filters and virtualization.

Readme

🚀 Mui TanTable

GitHub stars GitHub forks GitHub issues GitHub pull requests License Build (GitHub Actions)

Un componente de tabla basado en TanStack Table y Material‑UI (MUI) pensado para listas y tablas ricas en funcionalidades, rendimiento y accesibilidad. ✨

Estado: 🛠️ desarrollo — funcionalidad principal implementada (virtualización, selección de celdas, atajos de teclado, vista lista, búsqueda expandible).

Repositorio: 🔗 https://github.com/testx1011/mui-tantable

Instalación rápida (clonar desde GitHub)

git clone https://github.com/testx1011/mui-tantable.git
cd mui-tantable
npm install

🎯 Objetivo

  • Proveer una tabla altamente personalizable y eficiente para aplicaciones React con estilo MUI.
  • Ofrecer características tipo Data Grid (filtrado, ordenación, paginación, selección, virtualización y vista lista).

✨ Características principales

  • ⚙️ Renderizado flexible: columnas definidas con ColumnDef y renderers personalizados.
  • ⚡️ Virtualización: soporta @tanstack/react-virtual para miles de filas.
  • 📋 Vista Lista: enableListView + renderListViewItem para presentar datos en un solo columna estilo list view (inspirado en MUI X List View).
  • 🔘 Selección de celdas y filas: selección visual de celdas y selección multi-fila.
  • ⌨️ Atajos del teclado: Ctrl+C copia el contenido de la celda/filas en formato tabular compatible con Excel/Sheets.
  • 🔎 Búsqueda expandible: UI de búsqueda con animación al estilo MUI Data Grid quick filter.
  • ✍️ Edición in-cell / in-row: soporte para modos de edición por celda o por fila (configurable).
  • 🧭 Toolbar: búsqueda, visibilidad de columnas, exportación (CSV/Excel/JSON), opciones de densidad y conmutador de vista (grid/list).

📁 Estructura del proyecto (resumen)

  • src/components/TanTable.tsx — componente principal.
  • src/components/TableToolbar.tsx — barra de herramientas (search, export, density, view switcher).
  • src/components/ExpandableSearch.tsx — búsqueda expandible.
  • src/components/cells/* — renderers de celdas (texto, número, fecha, avatar...).
  • src/components/filters/* — filtros integrados.
  • src/utils/* — exportadores, formateadores y utilidades.
  • stories/TanTable.stories.tsx — historias de Storybook con ejemplos (incluye ListView, Virtualization).

Requisitos

  • Node.js 18+ (recomendado).
  • Dependencias gestionadas en package.json.

🧰 Instalación (desarrollo local)

# clona el repo
git clone https://github.com/testx1011/mui-tantable.git
cd mui-tantable

# instala dependencias
npm install

# levantar storybook (si está configurado)
npm run storybook

# o construir el paquete
npm run build

⚡ Uso básico Ejemplo mínimo con TanTable:

import React from 'react';
import { TanTable } from './src/components/TanTable';

const columns = [
  { accessorKey: 'id', header: 'ID' },
  { accessorKey: 'name', header: 'Name', cellType: 'text' },
  { accessorKey: 'email', header: 'Email', cellType: 'link' },
];

const data = [
  { id: 1, name: 'Alice', email: '[email protected]' },
  { id: 2, name: 'Bob', email: '[email protected]' },
];

export default function App() {
  return (
    <TanTable
      data={data}
      columns={columns}
      enableVirtualization={true}
      enableRowSelection={true}
      toolbarConfig={{ title: 'Mi Tabla' }}
    />
  );
}

Activar vista Lista

<TanTable
  data={data}
  columns={columns}
  enableListView={true}
  renderListViewItem={(row) => (
    <div style={{ padding: 12, display: 'flex', alignItems: 'center' }}>
      <img src={row.original.avatar} alt="avatar" style={{ width: 40, height: 40, borderRadius: 20 }} />
      <div style={{ marginLeft: 12 }}>
        <div>{row.original.name}</div>
        <div style={{ color: '#666' }}>{row.original.email}</div>
      </div>
    </div>
  )}
/>

🛠️ Comandos útiles

  • npm run build — compila la librería (usa tsup).
  • npm run dev — (si está definido) desarrolla localmente.
  • npm run storybook — abre Storybook con ejemplos interactivos.

Desarrollo y pruebas

  • Mantén typescript y eslint limpios (si están configurados).
  • Ejecuta npm run build después de cambios de tipos o exports.

🙌 Guía rápida de contribuciones

  • Abre un issue para discutir cambios grandes.
  • Crea PRs pequeños y enfocados; incluye el objetivo y demos en Storybook cuando sea posible.

🔮 Siguientes pasos sugeridos

  • Añadir badges (build, coverage, npm) al README.md.
  • Documentar la API de ColumnDef y los cellType en detalle.
  • Añadir ejemplos de integración (Next.js, CRA, Vite).