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

datarix

v1.0.4

Published

A high-performance, feature-rich React DataGrid component with virtualization, tree view, sorting, filtering, and more.

Downloads

586

Readme

Datarix

A high-performance, feature-rich React DataGrid component with virtualization, tree view, sorting, filtering, and more.

Features

Virtualized Rendering - Handles millions of rows smoothly
Column Features - Sorting, resizing, freezing/pinning
Tree View - Hierarchical data with expand/collapse
Search - Fast global search across all columns
Row Selection - Checkbox selection with select all
Pagination - Built-in pagination with customizable page sizes
Density Control - Compact, comfortable, standard row heights
Custom Rendering - Custom cell renderers
Theming - Beautiful default theme with MUI integration

Installation

npm install datarix

Quick Start

import { DataGrid } from 'datarix';

const columns = [
  { id: 'name', label: 'Name', width: 200 },
  { id: 'email', label: 'Email', width: 250 },
  { id: 'status', label: 'Status', width: 120 },
];

const data = [
  { id: 1, name: 'John Doe', email: '[email protected]', status: 'Active' },
  { id: 2, name: 'Jane Smith', email: '[email protected]', status: 'Pending' },
  // ... more data
];

function App() {
  return (
    <DataGrid
      data={data}
      columns={columns}
      height="600px"
    />
  );
}

TreeDataGrid

For hierarchical data:

import { TreeDataGrid } from 'datarix';

const treeData = [
  {
    id: 1,
    name: 'Parent 1',
    children: [
      { id: 11, name: 'Child 1.1' },
      { id: 12, name: 'Child 1.2' },
    ],
  },
  // ... more data
];

function App() {
  return (
    <TreeDataGrid
      data={treeData}
      columns={columns}
      initialExpanded={[1]}
    />
  );
}

Props

DataGrid Props

| Prop | Type | Default | Description | |------|------|---------|-------------| | data | Array | [] | Array of data objects | | columns | Array | [] | Column definitions | | height | string | '600px' | Grid height | | showToolbar | boolean | true | Show search and density toolbar | | showPagination | boolean | true | Show pagination controls | | density | string | 'comfortable' | Row density: 'compact', 'comfortable', 'standard' |

Column Definition

interface Column {
  id: string;          // Unique identifier
  label: string;       // Display label
  width: number;       // Column width in pixels
  frozen?: boolean;    // Freeze column to left
  renderCell?: (value, column, row) => ReactNode;  // Custom renderer
}

TreeDataGrid Props

Same as DataGrid, plus:

| Prop | Type | Default | Description | |------|------|---------|-------------| | initialExpanded | Array | [] | Array of IDs to expand initially |

Custom Cell Rendering

const columns = [
  {
    id: 'status',
    label: 'Status',
    width: 120,
    renderCell: (value) => (
      <Chip
        label={value}
        color={value === 'Active' ? 'success' : 'default'}
        size="small"
      />
    ),
  },
];

Advanced Usage

Using Hooks

import { useDataGridState, useScrollSync } from 'datarix';

function CustomGrid({ data, columns }) {
  const {
    visibleColumns,
    sortedData,
    handleSort,
    handleResize,
    // ... other state and handlers
  } = useDataGridState(data, columns);

  // Build your custom grid UI
}

License

MIT