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

@stolostron/react-data-view

v3.9.0

Published

[![GitHub package.json version](https://img.shields.io/github/package-json/v/stolostron/react-data-view)](https://www.npmjs.com/package/@stolostron/react-data-view)

Readme

@stolostron/react-data-view

GitHub package.json version

A reusable React component library for rendering data as sortable, filterable tables or catalog card views. Built on PatternFly 6 with virtualized table rendering, fuzzy search via Fuse.js, and automatic URL query string persistence for search and filter state.

Used by stolostron/console, the UI for Red Hat Advanced Cluster Management (ACM) and MultiCluster Engine (MCE).

DEMO

Installation

npm i @stolostron/react-data-view

Peer Dependencies

This library requires the following peer dependencies:

| Package | Version | | --- | --- | | @patternfly/react-core | ^6 | | @patternfly/react-table | ^6 | | @patternfly/react-drag-drop | ^6 | | @patternfly/react-icons | ^6 | | react | >=17 | | react-dom | >=17 | | react-router-dom-v5-compat | ^6 |

Exported Components

| Export | Description | | --- | --- | | ItemView | Dual-mode container switching between table and catalog views with search and filtering | | ItemTable | Virtualized table with sorting, selection, row actions, and pagination | | TableColumn | Interface defining table column structure (header, cell renderer, type, sort) | | Catalog | Grid-based catalog view displaying filterable items with selection and actions | | CatalogCard | Card component displaying item details with selection checkbox and context menu | | Toolbar | Toolbar with search, filters, view toggle, bulk actions, and overflow menu | | useItemFilter | Hook for building filter configuration with label, options, and filter predicates | | BulkSelector | Dropdown control for selecting none, page, or all items in bulk | | PageHeader | Header with breadcrumbs, title, description, and optional actions | | Theme | Provider managing light/dark theme state with localStorage persistence | | useBreakPoint | Hook providing responsive breakpoint detection and window size queries | | StringContext | Context providing localized strings for UI labels across the library |

Goals

The following features are planned but not yet implemented:

  • Persist column configuration to localStorage
  • Save and switch between multiple column configurations
  • Virtualized catalog rendering for large datasets

Development

Prerequisites

Getting Started

npm ci                # Install dependencies
npm start             # Start the demo dev server (opens browser)
npm run build         # Build the library to lib/

Quality Checks

npm test              # Run all checks (tsc, eslint, prettier, pages build)
npm run tsc           # Type checking only
npm run eslint        # Linting only
npm run prettier      # Formatting check
npm run prettier:fix  # Auto-fix formatting

Available Scripts

| Script | Description | | --- | --- | | build | Build library to lib/ (cleans, compiles, copies assets) | | start | Start demo dev server with hot reload | | start:quiet | Start demo dev server without opening browser | | pages | Build demo for GitHub Pages deployment | | test | Run tsc, eslint, prettier, and pages concurrently | | tsc | TypeScript type checking (no emit) | | eslint | Lint src/ and demo/ | | prettier | Check formatting in src/ and demo/ | | prettier:fix | Auto-fix formatting in src/ and demo/ | | upgrade | Upgrade dependencies (minor versions, with doctor mode) |

Project Structure

react-data-view/
├── src/           # Library source code (published to npm via lib/)
├── demo/          # Development demo app (not published)
├── lib/           # Build output (generated by npm run build)
└── assets/        # Static assets

Tech Stack

  • TypeScript 4.9
  • PatternFly 6 (React components, table, drag-and-drop, icons)
  • Fuse.js — fuzzy search
  • Luxon — date/time formatting
  • Webpack 5 — demo bundling and GitHub Pages build

License

Apache-2.0