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

@jerry-fd/ui

v0.4.0

Published

UI component library based on Ant Design (Client-side only)

Readme

A powerful and flexible data filter component library for React, providing multiple filter types with rich configuration options.

⚠️ Note: This is a client-side only component library. It does not support Server-Side Rendering (SSR) or React Server Components (RSC).

Installation

npm install @jerry-fd/data-filter

# Install peer dependencies
npm install dayjs antd

Features

  • 📦 Multiple filter types (text, number, date, option, multi-option)
  • 🎨 Customizable UI with modern design
  • 🔍 Built-in search functionality
  • 📅 Date picker with single and range modes
  • 🔢 Number filter with single and range modes
  • 🎯 Full TypeScript support
  • ♿ Accessible (ARIA compliant)
  • 🎛️ Controlled component with state management

Quick Start

import React, { useState } from 'react';
import { DataFilter, FilterColumnDef, FiltersState } from '@jerry-fd/data-filter';
import '@jerry-fd/data-filter/styles';
import dayjs from 'dayjs';

function App() {
  const [filters, setFilters] = useState<FiltersState>([]);

  const columns: FilterColumnDef[] = [
    {
      type: 'text',
      columnId: 'name',
      displayName: 'Name',
      icon: Heading1,
    },
  ];

  return (
    <DataFilter
      columns={columns}
      filters={filters}
      onFiltersChange={setFilters}
    />
  );
}

Example

import type { FilterColumnDef, FilterColumnOption, FiltersState } from '@jerry-fd/data-filter';
import { DataFilter } from '@jerry-fd/data-filter';
import dayjs from 'dayjs';

type DataSchema = {
  id: number;
  name: string;
  status: string;
  tags: string[];
  date: Date;
  score: number;
};

const filterColumns: FilterColumnDef<DataSchema>[] = [
  {
    type: 'text',
    columnId: 'name',
    displayName: 'Name',
    icon: Heading1,
  },
];

// Initialize with default filters (optional)
const defaultFilters: FiltersState = [
  {
    columnId: 'name',
    type: 'text',
    values: ['Search'],
  },
];

function App() {
  const [filters, setFilters] = useState<FiltersState>(defaultFilters);

  return (
    <DataFilter
      columns={filterColumns}
      filters={filters}
      onFiltersChange={setFilters}
    />
  );
}

export default App;

API Reference

DataFilter Props

| Prop | Type | Description | |------|------|-------------| | columns | FilterColumnDef[] | Array of filter column definitions | | filters | FiltersState | Current filter state (controlled) | | onFiltersChange | (filters: FiltersState) => void | Callback when filters change |

FilterColumnDef

Base properties for all filter types:

| Property | Type | Required | Description | |----------|------|----------|-------------| | type | 'text' \| 'number' \| 'date' \| 'option' \| 'multiOption' | ✅ | Filter type | | columnId | string | ✅ | Unique identifier for the filter | | displayName | string | ✅ | Display name for the filter | | icon | React.ReactNode | ❌ | Optional |

Number/Date Filter Additional Props

| Property | Type | Required | Description | |----------|------|----------|-------------| | mode | 'single' \| 'range' | ✅ | Single value or range selection | | min | number | ❌ | Minimum value (number only) | | max | number | ❌ | Maximum value (number only) | | showTime | boolean | ❌ | Show time picker (date only) |

Option Filter Additional Props

| Property | Type | Required | Description | |----------|------|----------|-------------| | options | FilterColumnOption[] | ✅ | Array of selectable options |

FilterColumnOption

| Property | Type | Description | |----------|------|-------------| | label | string | Display label | | value | string | Option value | | icon | React.ReactNode | Optional icon or visual indicator |

FiltersState

Array of active filter values:

type FiltersState = Array<{
  columnId: string;
  type: 'text' | 'number' | 'date' | 'option' | 'multiOption';
  values: any[];
}>;

License

MIT