# JavaScript table libraries

JavaScript table libraries display rows of data in a grid with sorting, filtering, and pagination. A data grid renders only the rows on screen when a table holds thousands of records. These libraries let admin panels, dashboards, and internal tools show and edit large datasets in the browser.

## Popularity

| Library | Monthly downloads | Stars | Last release | License |
| --- | --- | --- | --- | --- |
| [TanStack Table](#tanstack-table-core) | 145.4M | 28.6K | Oct 2026 | MIT |
| [AG Grid Community](#ag-grid-community) | 20.5M | 15.7K | Nov 2026 | MIT |
| [MUI X Data Grid](#mui-x-data-grid) | 16.3M | 5.9K | Nov 2026 | MIT |
| [DataTables](#datatables) | 3.5M | 815 | Oct 2026 | MIT |
| [react-data-grid](#react-data-grid) | 3.1M | 7.7K | Nov 2026 | MIT |
| [@glideapps/glide-data-grid](#glideapps-glide-data-grid) | 2.6M | 5.4K | Feb 2024 | MIT |
| [Material React Table](#material-react-table) | 1.8M | 1.8K | Mar 2025 | MIT |
| [Handsontable](#handsontable) | 1.5M | 22.1K | Oct 2026 | SEE LICENSE IN LICENSE.txt |

Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

[TanStack Table](#tanstack-table-core) has the most monthly downloads in this comparison, at 145.4M.

## Capabilities

| Library | Cell editing UI | Row virtualization | Column pinning |
| --- | --- | --- | --- |
| [TanStack Table](#tanstack-table-core) | No | Via plugin | Yes |
| [AG Grid Community](#ag-grid-community) | Yes | Yes | Yes |
| [MUI X Data Grid](#mui-x-data-grid) | Yes | Yes | Via plugin |
| [DataTables](#datatables) | Via plugin | Via plugin | Via plugin |
| [react-data-grid](#react-data-grid) | Yes | Yes | Yes |
| [@glideapps/glide-data-grid](#glideapps-glide-data-grid) | Yes | Yes | Yes |
| [Material React Table](#material-react-table) | Yes | Yes | Yes |
| [Handsontable](#handsontable) | Yes | Yes | Yes |

## Libraries

### TanStack Table

[GitHub](https://github.com/TanStack/table) · [npm](https://www.npmjs.com/package/@tanstack/table-core) · [Docs](https://tanstack.com/table/latest)

Provides headless logic for building tables and data grids in TypeScript and JavaScript.

- Downloads / mo: 145.4M
- Stars: 28.6K
- Last release: 9.3.1
- License: MIT
- Capabilities: [From the TanStack Table docs](https://tanstack.com/table/latest)

```sh
npm install @tanstack/table-core
```

**joinmarket-webui/jam** (337 stars)

[joinmarket-webui/jam](https://github.com/joinmarket-webui/jam) 

```tsx
const TxHistoryTableRow = ({ row }: { row: Row<typeof txHistoryTableFeatures, HistoryEntry> }) => {
  return (
    <>
      <TableRow key={row.id}>
        {row.getVisibleCells().map((cell) => {
          const meta = cell.column.columnDef.meta as { align?: string } | undefined
          const alignCenter = meta?.align === 'center'
          const alignRight = meta?.align === 'right'
          return (
            <TableCell
              key={cell.id}
              className={cn({
                'text-center': alignCenter,
                'text-right': alignRight,
              })}
            >
              {flexRender(cell.column.columnDef.cell, cell.getContext())}
            </TableCell>
          )
        })}
      </TableRow>
      {row.getIsExpanded() && (
        <TableRow>
          <TableCell colSpan={row.getAllCells().length} className="p-2">
            <TxHistoryDetails entry={row.original} />
          </TableCell>
        </TableRow>
      )}
    </>
  )
}

```

[src/components/wallet/TxHistoryTable.tsx](https://github.com/joinmarket-webui/jam/blob/01ee124be4faafb8c536e78861f4bf31571e2c02/src/components/wallet/TxHistoryTable.tsx#L67-L97) · [More projects using TanStack Table →](https://dashboard.exa.ai/playground/search?q=%40tanstack/table-core%20GitHub%20projects)

**Quickstart**

```tsx
import { constructTable, tableFeatures } from '@tanstack/table-core'
import { storeReactivityBindings } from '@tanstack/table-core/store-reactivity-bindings'

const features = tableFeatures({
  coreReactivityFeature: storeReactivityBindings(),
})
const table = constructTable({
  features,
  data: [{ firstName: 'tanner' }],
  columns: [{ accessorKey: 'firstName', header: 'First Name' }],
})
console.log(table.getRowModel().rows)

```

From [quick-start.md](https://github.com/TanStack/table/blob/main/docs/framework/vanilla/quick-start.md)

### AG Grid Community

[GitHub](https://github.com/ag-grid/ag-grid) · [npm](https://www.npmjs.com/package/ag-grid-community) · [Docs](https://www.ag-grid.com/javascript-data-grid/)

Builds configurable data grids with sorting, filtering, pagination, and virtualized rendering.

- Downloads / mo: 20.5M
- Stars: 15.7K
- Last release: 36.3.0
- License: MIT
- Capabilities: [From the AG Grid Community docs](https://www.ag-grid.com/javascript-data-grid/)

**Strengths**

- **Virtualizes rows and columns.** Render the visible viewport instead of every loaded cell.
- **Exports CSV through the API.** Export grid data as CSV through an API call.

**Watch out for**

- **Excel export requires Enterprise.** Advanced Excel export belongs to the licensed Enterprise edition.
- **Formula-like CSV values need handling.** Transform formula-like cell values before exporting data for spreadsheet applications.

```sh
npm install ag-grid-community
```

**PablocFonseca/streamlit-aggrid** (1.3K stars)

[PablocFonseca/streamlit-aggrid](https://github.com/PablocFonseca/streamlit-aggrid) 

```typescript
private attachStreamlitRerunToEvents(api: GridApi) {
    const updateEvents = this.props.args.update_on

    updateEvents.forEach((element: any) => {
      if (Array.isArray(element)) {
        // If element is a tuple (eventName, timeout), apply debounce for the timeout duration
        const [eventName, timeout] = element
        api.addEventListener(
          eventName,
          debounce(
            (e: any) => {
              this.returnGridValue(e, eventName)
            },
            timeout,
            {
              leading: false,
              trailing: true,
              maxWait: timeout,
            }
          )
        )
      } else {
        // Attach event listener for non-tuple events
        api.addEventListener(element, (e: any) => {
          this.returnGridValue(e, element)
        })
      }
      if (this.state.debug) {
        console.log(`Attached grid return event: ${element}`)
      }
    })
  }

```

[st_aggrid/frontend/src/AgGrid.tsx](https://github.com/PablocFonseca/streamlit-aggrid/blob/main/st_aggrid/frontend/src/AgGrid.tsx#L146-L177) · [More projects using AG Grid Community →](https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20ag-grid-community&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import { AllCommunityModule, ModuleRegistry, createGrid } from 'ag-grid-community';
ModuleRegistry.registerModules([AllCommunityModule]);
const grid = document.querySelector('#myGrid');
createGrid(grid, {
  columnDefs: [{ field: 'make' }],
  rowData: [{ make: 'Toyota' }],
});

```

From [getting-started.md](https://www.ag-grid.com/javascript-data-grid/getting-started/)

### MUI X Data Grid

[GitHub](https://github.com/mui/mui-x) · [npm](https://www.npmjs.com/package/@mui/x-data-grid) · [Docs](https://mui.com/x/react-data-grid/)

Provides the Community edition of the MUI X Data Grid components.

- Downloads / mo: 16.3M
- Stars: 5.9K
- Last release: 9.18.0
- License: MIT
- Capabilities: [From the MUI X Data Grid docs](https://mui.com/x/react-data-grid/)

```sh
npm install @mui/x-data-grid @mui/material @emotion/react @emotion/styled
```

**mui/material-ui** (99.4K stars)

[mui/material-ui](https://github.com/mui/material-ui) 

```tsx
export default function EmployeeList() {
  const { pathname } = useLocation();
  const [searchParams] = useSearchParams();
  const navigate = useNavigate();

  const dialogs = useDialogs();
  const notifications = useNotifications();

  const [paginationModel, setPaginationModel] = React.useState<GridPaginationModel>({
    page: searchParams.get('page') ? Number(searchParams.get('page')) : 0,
    pageSize: searchParams.get('pageSize')
      ? Number(searchParams.get('pageSize'))
      : INITIAL_PAGE_SIZE,
  });
  const [filterModel, setFilterModel] = React.useState<GridFilterModel>(
    searchParams.get('filter')
      ? JSON.parse(searchParams.get('filter') ?? '')
      : { items: [] },
  );
  const [sortModel, setSortModel] = React.useState<GridSortModel>(
    searchParams.get('sort') ? JSON.parse(searchParams.get('sort') ?? '') : [],
  );

  const [rowsState, setRowsState] = React.useState<{
    rows: Employee[];
    rowCount: number;
  }>({
    rows: [],
    rowCount: 0,
  });

  const [isLoading, setIsLoading] = React.useState(true);
  const [error, setError] = React.useState<Error | null>(null);

  const handlePaginationModelChange = React.useCallback(
    (model: GridPaginationModel) => {
      setPaginationModel(model);

      searchParams.set('page', String(model.page));
      searchParams.set('pageSize', String(model.pageSize));

      const newSearchParamsString = searchParams.toString();

      navigate(
        `${pathname}${newSearchParamsString ? '?' : ''}${newSearchParamsString}`,
      );
    },
    [navigate, pathname, searchParams],
  );

  const handleFilterModelChange = React.useCallback(
    (model: GridFilterModel) => {
      setFilterModel(model);

      if (
        model.items.length > 0 ||
        (model.quickFilterValues && model.quickFilterValues.length > 0)
      ) {
        searchParams.set('filter', JSON.stringify(model));
      } else {
        searchParams.delete('filter');
      }

      const newSearchParamsString = searchParams.toString();

      navigate(
        `${pathname}${newSearchParamsString ? '?' : ''}${newSearchParamsString}`,
      );
    },
    [navigate, pathname, searchParams],
  );

  const handleSortModelChange = React.useCallback(
    (model: GridSortModel) => {
      setSortModel(model);

      if (model.length > 0) {
        searchParams.set('sort', JSON.stringify(model));
      } else {
        searchParams.delete('sort');
      }

      const newSearchParamsString = searchParams.toString();

      navigate(
        `${pathname}${newSearchParamsString ? '?' : ''}${newSearchParamsString}`,
      );
    },
    [navigate, pathname, searchParams],
  );

  const loadData = React.useCallback(async () => {
    setError(null);
    setIsLoading(true);

    try {
      const listData = await getEmployees({
        paginationModel,
        sortModel,
        filterModel,
      });

      setRowsState({
        rows: listData.items,
        rowCount: listData.itemCount,
      });
    } catch (listDataError) {
      setError(listDataError as Error);
    }

    setIsLoading(false);
  }, [paginationModel, sortModel, filterModel]);

  React.useEffect(() => {
    loadData();
  }, [loadData]);

  const handleRefresh = React.useCallback(() => {
    if (!isLoading) {
      loadData();
    }
  }, [isLoading, loadData]);

  const handleRowClick = React.useCallback<GridEventListener<'rowClick'>>(
    ({ row }) => {
      navigate(`/employees/${row.id}`);
    },
    [navigate],
  );

  const handleCreateClick = React.useCallback(() => {
    navigate('/employees/new');
  }, [navigate]);

  const handleRowEdit = React.useCallback(
    (employee: Employee) => () => {
      navigate(`/employees/${employee.id}/edit`);
    },
    [navigate],
  );

  const handleRowDelete = React.useCallback(
    (employee: Employee) => async () => {
      const confirmed = await dialogs.confirm(
        `Do you wish to delete ${employee.name}?`,
        {
          title: `Delete employee?`,
          severity: 'error',
          okText: 'Delete',
          cancelText: 'Cancel',
        },
      );

      if (confirmed) {
        setIsLoading(true);
        try {
          await deleteEmployee(Number(employee.id));

          notifications.show('Employee deleted successfully.', {
            severity: 'success',
            autoHideDuration: 3000,
          });
          loadData();
        } catch (deleteError) {
          notifications.show(
            `Failed to delete employee. Reason:' ${(deleteError as Error).message}`,
            {
              severity: 'error',
              autoHideDuration: 3000,
            },
          );
        }
        setIsLoading(false);
      }
    },
    [dialogs, notifications, loadData],
  );

  const initialState = React.useMemo(
    () => ({
      pagination: { paginationModel: { pageSize: INITIAL_PAGE_SIZE } },
    }),
    [],
  );

  const columns = React.useMemo<GridColDef[]>(
    () => [
      { field: 'id', headerName: 'ID' },
      { field: 'name', headerName: 'Name', width: 140 },
      { field: 'age', headerName: 'Age', type: 'number' },
      {
        field: 'joinDate',
        headerName: 'Join date',
        type: 'date',
        valueGetter: (value) => value && new Date(value),
        width: 140,
      },
      {
        field: 'role',
        headerName: 'Department',
        type: 'singleSelect',
        valueOptions: ['Market', 'Finance', 'Development'],
        width: 160,
      },
      { field: 'isFullTime', headerName: 'Full-time', type: 'boolean' },
      {
        field: 'actions',
        type: 'actions',
        flex: 1,
        align: 'right',
        getActions: ({ row }) => [
          <GridActionsCellItem
            key="edit-item"
            icon={<EditIcon />}
            label="Edit"
            onClick={handleRowEdit(row)}
          />,
          <GridActionsCellItem
            key="delete-item"
            icon={<DeleteIcon />}
            label="Delete"
            onClick={handleRowDelete(row)}
          />,
        ],
      },
    ],
    [handleRowEdit, handleRowDelete],
  );

  const pageTitle = 'Employees';

  return (
    <PageContainer
      title={pageTitle}
      breadcrumbs={[{ title: pageTitle }]}
      actions={
        <Stack direction="row" spacing={1} sx={{ alignItems: 'center' }}>
          <Tooltip title="Reload data" placement="right" enterDelay={1000}>
            <div>
              <IconButton size="small" aria-label="refresh" onClick={handleRefresh}>
                <RefreshIcon />
              </IconButton>
            </div>
          </Tooltip>
          <Button
            variant="contained"
            onClick={handleCreateClick}
            startIcon={<AddIcon />}
          >
            Create
          </Button>
        </Stack>
      }
    >
      <Box sx={{ flex: 1, width: '100%' }}>
        {error ? (
          <Box sx={{ flexGrow: 1 }}>
            <Alert severity="error">{error.message}</Alert>
          </Box>
        ) : (
          <DataGrid
            rows={rowsState.rows}
            rowCount={rowsState.rowCount}
            columns={columns}
            pagination
            sortingMode="server"
            filterMode="server"
            paginationMode="server"
            paginationModel={paginationModel}
            onPaginationModelChange={handlePaginationModelChange}
            sortModel={sortModel}
            onSortModelChange={handleSortModelChange}
            filterModel={filterModel}
            onFilterModelChange={handleFilterModelChange}
            disableRowSelectionOnClick
            onRowClick={handleRowClick}
            loading={isLoading}
            initialState={initialState}
            showToolbar
            pageSizeOptions={[5, INITIAL_PAGE_SIZE, 25]}
            sx={{
              [`& .${gridClasses.columnHeader}, & .${gridClasses.cell}`]: {
                outline: 'transparent',
              },
              [`& .${gridClasses.columnHeader}:focus-within, & .${gridClasses.cell}:focus-within`]:
                {
                  outline: 'none',
                },
              [`& .${gridClasses.row}:hover`]: {
                cursor: 'pointer',
              },
            }}
            slotProps={{
              loadingOverlay: {
                variant: 'circular-progress',
                noRowsVariant: 'circular-progress',
              },
              baseIconButton: {
                size: 'small',
              },
            }}
          />
        )}
      </Box>
    </PageContainer>
  );
}

```

[docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.tsx](https://github.com/mui/material-ui/blob/2271f606888b970f5e92d2204d81984974421121/docs/data/material/getting-started/templates/crud-dashboard/components/EmployeeList.tsx#L32-L338) · [More projects using MUI X Data Grid →](https://dashboard.exa.ai/playground/search?q=%40mui/x-data-grid%20GitHub%20projects)

**Quickstart**

```tsx
import { DataGrid } from '@mui/x-data-grid';
const rows = [{ id: 1, name: 'Ada' }];
const columns = [{ field: 'name', headerName: 'Name', width: 150 }];
export default function App() {
  return <div style={{ height: 300, width: '100%' }}>
    <DataGrid rows={rows} columns={columns} />
  </div>;
}

```

From [quickstart.mdx](https://mui.com/x/react-data-grid/quickstart/)

### DataTables

[GitHub](https://github.com/DataTables/DataTablesSrc) · [npm](https://www.npmjs.com/package/datatables.net) · [Docs](https://datatables.net/)

Adds ordering, search, and pagination to HTML tables.

- Downloads / mo: 3.5M
- Stars: 815
- Last release: 3.1.5
- License: MIT
- Capabilities: [From the DataTables docs](https://datatables.net/)

**Strengths**

- **Enhances existing HTML tables.** Add search, ordering, and pagination to a table by default.
- **Supports server-side processing.** Send paging, ordering, and search requests to a backend.

**Watch out for**

- **Virtual rows need Scroller.** Add the Scroller extension for virtual rendering.
- **Scroller needs equal row heights.** Variable row heights break Scroller virtual row calculations.

```sh
npm install datatables.net
```

**mailcow/mailcow-dockerized** (13.8K stars)

[mailcow/mailcow-dockerized](https://github.com/mailcow/mailcow-dockerized) 

```typescript
function draw_oauth2_clients() {
    // just recalc width if instance already exists
    if ($.fn.DataTable.isDataTable('#oauth2clientstable') ) {
      $('#oauth2clientstable').DataTable().columns.adjust().responsive.recalc();
      return;
    }

    $('#oauth2clientstable').DataTable({
      responsive: true,
      processing: true,
      serverSide: false,
      stateSave: true,
      pageLength: pagination_size,
      dom: "<'row'<'col-sm-12 col-md-6'f><'col-sm-12 col-md-6'l>>" +
           "tr" +
           "<'row'<'col-sm-12 col-md-5'i><'col-sm-12 col-md-7'p>>",
      language: lang_datatables,
      ajax: {
        type: "GET",
        url: "/api/v1/get/oauth2-client/all",
        dataSrc: function(data){
          return process_table_data(data, 'oauth2clientstable');
        }
      },
      columns: [
        {
          // placeholder, so checkbox will not block child row toggle
          title: '',
          data: null,
          searchable: false,
          orderable: false,
          defaultContent: ''
        },
        {
          title: '',
          data: 'chkbox',
          searchable: false,
          orderable: false,
          defaultContent: ''
        },
        {
          title: 'ID',
          data: 'id',
          defaultContent: ''
        },
        {
          title: lang.oauth2_client_id,
          data: 'client_id',
          defaultContent: ''
        },
        {
          title: lang.oauth2_client_secret,
          data: 'client_secret',
          defaultContent: ''
        },
        {
          title: lang.oauth2_redirect_uri,
          data: 'redirect_uri',
          defaultContent: ''
        },
        {
          title: lang.action,
          data: 'action',
          className: 'dt-sm-head-hidden dt-text-right',
          defaultContent: ''
        },
      ]
    });
  }

```

[data/web/js/site/admin.js](https://github.com/mailcow/mailcow-dockerized/blob/84828d95312c40922561fea248ce646251debe41/data/web/js/site/admin.js#L153-L221) · [More projects using DataTables →](https://dashboard.exa.ai/playground/search?q=JavaScript%20projects%20that%20use%20datatables.net&filters=%7B%22type%22%3A%20%22auto%22%2C%20%22numResults%22%3A%2010%2C%20%22includeDomains%22%3A%20%5B%22github.com%22%5D%7D)

**Quickstart**

```typescript
import DataTable from 'datatables.net';

new DataTable('#myTable', {
    // initialisation options
});

```

From [latest.md](https://registry.npmjs.org/datatables.net/latest)

### react-data-grid

[GitHub](https://github.com/Comcast/react-data-grid) · [npm](https://www.npmjs.com/package/react-data-grid) · [Docs](https://comcast.github.io/react-data-grid/)

Provides a customizable data grid component for React.

- Downloads / mo: 3.1M
- Stars: 7.7K
- Last release: 7.0.0-beta.64
- License: MIT
- Capabilities: [From the react-data-grid docs](https://comcast.github.io/react-data-grid/)

```sh
npm install react-data-grid
```

**supabase/supabase** (114.9K stars)

[supabase/supabase](https://github.com/supabase/supabase) 

```tsx
(props: RenderCellProps<SupaRow>) => {
    // [Alaister] formatter is actually a valid React component, so we can use hooks here
    // eslint-disable-next-line react-hooks/rules-of-hooks
    const { isRowSelected, onRowSelectionChange } = useRowSelection()
    return (
      <SelectCellFormatter
        aria-label="Select"
        tabIndex={props.tabIndex}
        value={isRowSelected}
        row={props.row}
        onChange={(checked, isShiftClick) => {
          onRowSelectionChange({ row: props.row, checked, isShiftClick })
        }}
        // Stop propagation to prevent row selection
        onClick={stopPropagation}
      />
    )
  }

```

[apps/studio/components/grid/components/grid/SelectColumn.tsx](https://github.com/supabase/supabase/blob/0c95428678e1dbe66a3379b0bb5a654187497ceb/apps/studio/components/grid/components/grid/SelectColumn.tsx#L44-L61) · [More projects using react-data-grid →](https://dashboard.exa.ai/playground/search?q=react-data-grid%20GitHub%20projects)

**Quickstart**

```tsx
import 'react-data-grid/lib/styles.css';

import { DataGrid, type Column } from 'react-data-grid';

interface Row {
  id: number;
  title: string;
}

const columns: readonly Column<Row>[] = [
  { key: 'id', name: 'ID' },
  { key: 'title', name: 'Title' }
];

const rows: readonly Row[] = [
  { id: 0, title: 'Example' },
  { id: 1, title: 'Demo' }
];

function App() {
  return <DataGrid columns={columns} rows={rows} />;
}

```

From [README.md](https://github.com/Comcast/react-data-grid/blob/882455724c6d10086a8b75744bea9f10746f6b9e/README.md)

### @glideapps/glide-data-grid

[GitHub](https://github.com/glideapps/glide-data-grid) · [npm](https://www.npmjs.com/package/@glideapps/glide-data-grid) · [Docs](https://docs.grid.glideapps.com/)

Displays and edits large amounts of data in a React data grid.

- Downloads / mo: 2.6M
- Stars: 5.4K
- Last release: 6.0.3
- License: MIT
- Capabilities: [From the @glideapps/glide-data-grid docs](https://docs.grid.glideapps.com/)

```sh
npm i @glideapps/glide-data-grid lodash@^4.17.19 marked@^4.0.10 react-responsive-carousel@^3.2.7
```

**marimo-team/marimo** (23.6K stars)

[marimo-team/marimo](https://github.com/marimo-team/marimo) 

```tsx
const handleDeleteRows = () => {
    const rows = selection.rows.toArray();
    onAddEdits(
      rows.map((rowIdx, index) => ({
        rowIdx: rowIdx - index,
        type: BulkEdit.Remove,
      })),
    );

    // Clear selection
    setSelection({
      columns: CompactSelection.empty(),
      rows: CompactSelection.empty(),
    });
  };

```

[frontend/src/plugins/impl/data-editor/glide-data-editor.tsx](https://github.com/marimo-team/marimo/blob/ab84133f46729240b28acf78014c18ef7ce40e58/frontend/src/plugins/impl/data-editor/glide-data-editor.tsx#L340-L354) · [More projects using @glideapps/glide-data-grid →](https://dashboard.exa.ai/playground/search?q=%40glideapps/glide-data-grid%20GitHub%20projects)

**Quickstart**

```tsx
import DataEditor, { GridCellKind } from '@glideapps/glide-data-grid';
import '@glideapps/glide-data-grid/dist/index.css';
const columns = [{ title: 'Name', width: 160 }];
const data = ['Ada', 'Grace'];
export default function App() {
  return <DataEditor columns={columns} rows={data.length}
    getCellContent={([col, row]) => ({ kind: GridCellKind.Text, data: data[row],
      displayData: data[row], allowOverlay: false })} />;
}

```

From [README.md](https://github.com/glideapps/glide-data-grid/blob/0875d78cc41535a39f8b417ff88ce1ebe129c363/packages/core/README.md)

### Material React Table

[GitHub](https://github.com/KevinVandy/material-react-table) · [npm](https://www.npmjs.com/package/material-react-table) · [Docs](https://www.material-react-table.com/)

Implements TanStack React Table with Material UI.

- Downloads / mo: 1.8M
- Stars: 1.8K
- Last release: 3.2.1
- License: MIT
- Capabilities: [From the Material React Table docs](https://www.material-react-table.com/)

```sh
npm install material-react-table @mui/material @mui/x-date-pickers @mui/icons-material @emotion/react @emotion/styled
```

**jellyfin/jellyfin-web** (4.0K stars)

[jellyfin/jellyfin-web](https://github.com/jellyfin/jellyfin-web) 

```tsx
export const Component = () => {
    const { api } = useApi();
    const {
        data,
        isLoading: isDevicesLoading,
        isError: isDevicesError,
        isRefetching
    } = useDevices({});
    const devices = useMemo(() => (
        data?.Items || []
    ), [ data ]);
    const {
        usersById: users,
        names: userNames,
        isLoading: isUsersLoading,
        isError: isUsersError
    } = useUsersDetails();
    const theme = useTheme();

    const [ isDeleteConfirmOpen, setIsDeleteConfirmOpen ] = useState(false);
    const [ isDeleteAllConfirmOpen, setIsDeleteAllConfirmOpen ] = useState(false);
    const [ pendingDeleteDeviceId, setPendingDeleteDeviceId ] = useState<string>();
    const deleteDevice = useDeleteDevice();
    const updateDevice = useUpdateDevice();

    const isLoading = isDevicesLoading || isUsersLoading;

    const onDeleteDevice = useCallback((id: string | null | undefined) => () => {
        if (id) {
            setPendingDeleteDeviceId(id);
            setIsDeleteConfirmOpen(true);
        }
    }, []);

    const onCloseDeleteConfirmDialog = useCallback(() => {
        setPendingDeleteDeviceId(undefined);
        setIsDeleteConfirmOpen(false);
    }, []);

    const onConfirmDelete = useCallback(() => {
        if (pendingDeleteDeviceId) {
            deleteDevice.mutate({
                id: [pendingDeleteDeviceId]
            }, {
                onSettled: onCloseDeleteConfirmDialog
            });
        }
    }, [ deleteDevice, onCloseDeleteConfirmDialog, pendingDeleteDeviceId ]);

    const onDeleteAll = useCallback(() => {
        setIsDeleteAllConfirmOpen(true);
    }, []);

    const onCloseDeleteAllConfirmDialog = useCallback(() => {
        setIsDeleteAllConfirmOpen(false);
    }, []);

    const onConfirmDeleteAll = useCallback(() => {
        if (devices) {
            Promise
                .all(devices.map(item => {
                    const isCurrentDevice = api && item.Id && api.deviceInfo.id === item.Id;
                    if (item.Id && !isCurrentDevice) {
                        return deleteDevice.mutateAsync({ id: [item.Id] });
                    }
                    return Promise.resolve();
                }))
                .catch(err => {
                    console.error('[DevicesPage] failed deleting all devices', err);
                })
                .finally(() => {
                    onCloseDeleteAllConfirmDialog();
                });
        }
    }, [ api, deleteDevice, devices, onCloseDeleteAllConfirmDialog ]);

    const UserCell = getUserCell(users);

    const columns = useMemo<MRT_ColumnDef<DeviceInfoDto>[]>(() => [
        {
            id: 'DateLastActivity',
            accessorFn: row => row.DateLastActivity ? parseISO(row.DateLastActivity) : undefined,
            header: globalize.translate('LastActive'),
            size: 160,
            Cell: DateTimeCell,
            filterVariant: 'datetime-range',
            enableEditing: false
        },
        {
            id: 'Name',
            accessorFn: row => row.CustomName || row.Name,
            header: globalize.translate('LabelDevice'),
            size: 200,
            Cell: DeviceNameCell
        },
        {
            id: 'App',
            accessorFn: row => [row.AppName, row.AppVersion]
                .filter(v => !!v) // filter missing values
                .join(' '),
            header: globalize.translate('LabelAppName'),
            size: 200,
            enableEditing: false
        },
        {
            accessorKey: 'LastUserName',
            header: globalize.translate('LabelUser'),
            size: 120,
            enableEditing: false,
            Cell: UserCell,
            filterVariant: 'multi-select',
            filterSelectOptions: userNames
        }
    ], [ UserCell, userNames ]);

    // NOTE: We need to provide a custom theme due to a MRT bug causing the initial theme to always be used
    // https://github.com/KevinVandy/material-react-table/issues/1429
    const mrtTheme = useMemo<Partial<MRT_Theme>>(() => ({
        baseBackgroundColor: theme.palette.background.paper
    }), [ theme ]);

    const mrTable = useMaterialReactTable({
        ...DEFAULT_TABLE_OPTIONS,
        mrtTheme,

        columns,
        data: devices,

        // State
        initialState: {
            density: 'compact',
            pagination: {
                pageIndex: 0,
                pageSize: 25
            }
        },
        state: {
            isLoading
        },

        // Do not reset the page index when refetching data
        autoResetPageIndex: !isRefetching,

        // Editing device name
        enableEditing: true,
        onEditingRowSave: ({ table, row, values }) => {
            const newName = values.Name?.trim();
            const hasChanged = row.original.CustomName ?
                newName !== row.original.CustomName :
                newName !== row.original.Name;

            // If the name has changed, save it as the custom name
            if (row.original.Id && hasChanged) {
                updateDevice.mutate({
                    id: row.original.Id,
                    deviceOptionsDto: {
                        CustomName: newName || undefined
                    }
                });
            }

            table.setEditingRow(null); //exit editing mode
        },

        // Custom actions
        enableRowActions: true,
        positionActionsColumn: 'last',
        displayColumnDefOptions: {
            'mrt-row-actions': {
                header: '',
                size: 100
            }
        },
        renderRowActions: ({ row, table }) => {
            const isCurrentDevice = api && row.original.Id && api.deviceInfo.id === row.original.Id;
            return (
                <Box
                    sx={{
                        display: 'flex',
                        gap: 1,
                        '&&': {
                            backgroundColor: 'transparent !important'
                        }
                    }}
                >
                    <Tooltip title={globalize.translate('Edit')}>
                        <IconButton
                            onClick={() => table.setEditingRow(row)}
                        >
                            <Edit />
                        </IconButton>
                    </Tooltip>
                    {/* Don't include Tooltip when disabled */}
                    {isCurrentDevice ? (
                        <IconButton
                            color='error'
                            disabled
                        >
                            <Delete />
                        </IconButton>
                    ) : (
                        <Tooltip title={globalize.translate('Delete')}>
                            <IconButton
                                color='error'
                                onClick={onDeleteDevice(row.original.Id)}
                            >
                                <Delete />
                            </IconButton>
                        </Tooltip>
                    )}
                </Box>
            );
        },

        // Custom toolbar contents
        renderTopToolbarCustomActions: () => (
            <Button
                color='error'
                startIcon={<Delete />}
                onClick={onDeleteAll}
            >
                {globalize.translate('DeleteAll')}
            </Button>
        )
    });

    return (
        <TablePage
            id='devicesPage'
            title={globalize.translate('HeaderDevices')}
            className='mainAnimatedPage type-interior'
            table={mrTable}
            isError={isDevicesError || isUsersError}
            errorMessage={globalize.translate('DevicesLoadError')}
        >
            <ConfirmDialog
                open={isDeleteConfirmOpen}
                title={globalize.translate('HeaderDeleteDevice')}
                text={globalize.translate('DeleteDeviceConfirmation')}
                onCancel={onCloseDeleteConfirmDialog}
                onConfirm={onConfirmDelete}
                confirmButtonColor='error'
                confirmButtonText={globalize.translate('Delete')}
            />
            <ConfirmDialog
                open={isDeleteAllConfirmOpen}
                title={globalize.translate('HeaderDeleteDevices')}
                text={globalize.translate('DeleteDevicesConfirmation')}
                onCancel={onCloseDeleteAllConfirmDialog}
                onConfirm={onConfirmDeleteAll}
                confirmButtonColor='error'
                confirmButtonText={globalize.translate('Delete')}
            />
        </TablePage>
    );
};

```

[src/apps/dashboard/routes/devices/index.tsx](https://github.com/jellyfin/jellyfin-web/blob/d90bba74d2dc03e3cab92789b38b956da6dfd1f2/src/apps/dashboard/routes/devices/index.tsx#L38-L293) · [More projects using Material React Table →](https://dashboard.exa.ai/playground/search?q=material-react-table%20GitHub%20projects)

**Quickstart**

```tsx
import { MaterialReactTable, useMaterialReactTable } from 'material-react-table';
const data = [{ name: 'Ada' }];
const columns = [{ accessorKey: 'name', header: 'Name' }];
export default function App() {
  const table = useMaterialReactTable({ columns, data });
  return <MaterialReactTable table={table} />;
}

```

From [usage.mdx](https://www.material-react-table.com/docs/getting-started/usage)

### Handsontable

[GitHub](https://github.com/handsontable/handsontable) · [npm](https://www.npmjs.com/package/handsontable) · [Docs](https://handsontable.com/docs/javascript-data-grid/)

Provides a JavaScript data grid for React, Angular, and Vue.

- Downloads / mo: 1.5M
- Stars: 22.1K
- Last release: 18.1.2
- License: SEE LICENSE IN LICENSE.txt
- Capabilities: [From the Handsontable docs](https://handsontable.com/docs/javascript-data-grid/)

```sh
npm install handsontable
```

**Quickstart**

```tsx
import Handsontable from 'handsontable';
const element = document.getElementById('handsontable-grid');
new Handsontable(element, {
  data: [{company: 'Tagcat'}],
  columns: [{data: 'company', title: 'Company'}],
  rowHeaders: true,
  licenseKey: 'non-commercial-and-evaluation',
});

```

From [README.md](https://raw.githubusercontent.com/handsontable/handsontable/master/README.md) · [Find projects using Handsontable →](https://dashboard.exa.ai/playground/search?q=handsontable%20GitHub%20projects)

## FAQ

### Which JavaScript table library should I use?

[AG Grid Community](#ag-grid-community) suits apps that want a ready grid with built-in editing and virtualization. [TanStack Table](#tanstack-table-core) suits apps that build their own table markup on headless logic. [DataTables](#datatables) suits pages that add search and pagination to an existing HTML table.

### What is TanStack Table?

[TanStack Table](#tanstack-table-core) is a headless library for tables and data grids in TypeScript and JavaScript. It manages table state and logic while the app renders every cell and control.

### What is AG Grid?

[AG Grid Community](#ag-grid-community) builds data grids with sorting, filtering, pagination, and virtualized rendering. Its Community edition includes basic cell editors, and more editors come with the Enterprise edition.

### What is Material React Table?

[Material React Table](#material-react-table) builds a Material UI table on top of TanStack Table. It provides editing modes, virtualization, and column pinning.

### AG Grid vs TanStack Table: which should I use?

[AG Grid Community](#ag-grid-community) ships the grid interface, editors, and virtualization. [TanStack Table](#tanstack-table-core) supplies only the table logic and leaves the markup to the app.

## How this page was built

Data checked Nov 20, 2026.

Reproduce it with the Exa API:

```json
{
  "endpoint": "/search",
  "body": {
    "query": "JavaScript table libraries sorting filtering pagination virtual rows code examples",
    "numResults": 5
  }
}
```

Docs: https://exa.ai/docs/reference/search
