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

react-autocomplete-pro

v1.0.8

Published

Advanced React autocomplete component with fuzzy search, rich results, multi-select, and TypeScript support. Features intelligent suggestions, category grouping, and async data loading.

Readme

React Autocomplete Pro Component

Full Documentation

A feature-rich, highly customizable React autocomplete component with advanced search capabilities and rich user experiences.

Features

  • Advanced Search Algorithms: Fuzzy, exact, semantic, and hybrid matching
  • Rich Visual Interface: Images, descriptions, categories, and trending indicators
  • Performance Optimized: Debounced search, memoized calculations, efficient rendering
  • Multi-Select Support: Elegant tag management with custom renderers
  • Async Data Loading: Built-in support for remote data fetching
  • Fully Customizable: Custom option/tag renderers, flexible styling
  • TypeScript Support: Complete type safety and IntelliSense
  • Keyboard Navigation: Full accessibility with arrow keys, enter, escape

Installation

npm install react-autocomplete-pro
# or
yarn add react-autocomplete-pro

Quick Start

Basic Usage

import React, { useState } from 'react';
import { AutocompletePro, AutocompleteOption } from 'react-autocomplete-pro';

const options: AutocompleteOption[] = [
  { id: '1', label: 'iPhone 15 Pro', value: 'iphone-15-pro' },
  { id: '2', label: 'Samsung Galaxy S24', value: 'samsung-s24' },
  { id: '3', label: 'MacBook Pro M3', value: 'macbook-pro-m3' }
];

function App() {
  const [selected, setSelected] = useState<AutocompleteOption | undefined>();

  return (
    <AutocompletePro
      options={options}
      value={selected}
      onChange={setSelected}
      placeholder="Search products..."
    />
  );
}

Multi-Select with Categories

<AutocompletePro
  options={options}
  value={selectedItems}
  onChange={setSelectedItems}
  multiple={true}
  showCategories={true}
  showTrending={true}
  groupBy={(option) => option.category}
  placeholder="Select multiple products..."
/>

Fuzzy Search with Typo Tolerance

<AutocompletePro
  options={options}
  searchConfig={{
    algorithm: 'fuzzy',
    fuzzyThreshold: 0.5
  }}
  placeholder="Try typos: 'macbok', 'ipone'..."
/>

Async Search

const handleAsyncSearch = async (query: string): Promise<AutocompleteOption[]> => {
  const response = await fetch(`/api/search?q=${query}`);
  return response.json();
};

<AutocompletePro
  options={[]}
  onSearch={handleAsyncSearch}
  searchConfig={{
    debounceMs: 300,
    minQueryLength: 2
  }}
  placeholder="Type to search..."
/>

Key Props

| Prop | Type | Description | |------|------|-------------| | options | AutocompleteOption[] | Static options array | | value | AutocompleteOption \| AutocompleteOption[] | Selected value(s) | | onChange | (selected) => void | Selection change handler | | onSearch | (query: string) => Promise<AutocompleteOption[]> | Async search function | | multiple | boolean | Enable multi-select mode | | searchConfig | SearchConfig | Search algorithm configuration | | renderOption | (option, isHighlighted) => ReactNode | Custom option renderer | | showCategories | boolean | Show category grouping | | showTrending | boolean | Show trending indicators |

Search Algorithms

  • exact: Traditional substring matching
  • fuzzy: Levenshtein distance-based matching for typos
  • semantic: Word-based matching across multiple fields
  • hybrid: Combines exact and fuzzy for optimal results

Browser Support

  • Chrome 60+
  • Firefox 60+
  • Safari 12+
  • Edge 79+

License

MIT License