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

@alihesari/emoji-picker

v0.1.2

Published

A fast, lightweight, zero-dependency emoji picker for React. Virtual scrolling, keyboard navigation, skin tones, search, and full accessibility — all under 30KB gzipped.

Readme

@alihesari/emoji-picker

A fast, lightweight, zero-dependency emoji picker for React.

  • Virtual scrolling — renders only visible rows for buttery-smooth performance
  • Skin tone support — per-emoji skin tone modifiers
  • Search — instant filtering across names and keywords
  • Recent emojis — localStorage-backed recently-used list
  • Full accessibility — ARIA roles, keyboard navigation, focus management
  • Themeable — light / dark / auto via CSS custom properties
  • Tiny — zero runtime dependencies, tree-shakeable ESM + CJS
  • TypeScript — complete type definitions included

Installation

# npm
npm install @alihesari/emoji-picker

# pnpm
pnpm add @alihesari/emoji-picker

# yarn
yarn add @alihesari/emoji-picker

Peer dependencies: react >=18 and react-dom >=18.

Quick Start

import { EmojiPicker } from "@alihesari/emoji-picker";
import "@alihesari/emoji-picker/styles.css";

function App() {
  return (
    <EmojiPicker
      onEmojiClick={(emoji) => {
        console.log(emoji.emoji); // 😎
        console.log(emoji.name);  // "smiling face with sunglasses"
      }}
    />
  );
}

Props

| Prop | Type | Default | Description | | --- | --- | --- | --- | | onEmojiClick | (emoji: EmojiData) => void | required | Called when an emoji is clicked | | width | number | 350 | Width in pixels | | height | number | 450 | Height in pixels | | theme | "light" \| "dark" \| "auto" | "auto" | Color theme (auto follows system) | | categories | CategoryId[] | all categories | Which categories to display | | searchPlaceholder | string | "Search emojis…" | Placeholder for the search input | | searchDisabled | boolean | false | Hide the search bar | | skinTonesDisabled | boolean | false | Hide the skin tone selector | | defaultSkinTone | SkinTone | "neutral" | Default skin tone | | recentEnabled | boolean | true | Enable the Recent category | | maxRecent | number | 30 | Max number of recent emojis to store | | autoFocusSearch | boolean | false | Auto-focus search on mount | | previewConfig | PreviewConfig | { enabled: true, showName: true } | Configure the preview bar | | columns | number | 8 | Number of columns in the grid | | emojiSize | number | 40 | Size of each emoji button (px) | | className | string | — | Extra CSS class on root | | style | CSSProperties | — | Inline styles on root |

Types

interface EmojiData {
  emoji: string;        // The rendered emoji (with skin tone applied)
  name: string;         // Human-readable name
  originalEmoji: string; // Emoji without skin tone
  skinTone: SkinTone;   // Which skin tone was applied
}

type SkinTone = "neutral" | "light" | "medium-light" | "medium" | "medium-dark" | "dark";

type CategoryId =
  | "recent" | "smileys" | "people" | "animals" | "food"
  | "travel" | "activities" | "objects" | "symbols" | "flags";

Theming

All colours use CSS custom properties. Override them on .ep-root or a parent:

.my-picker {
  --ep-bg: #1a1a2e;
  --ep-border: #16213e;
  --ep-text: #eaeaea;
  --ep-text-secondary: #888;
  --ep-hover-bg: #16213e;
  --ep-active-bg: #0f3460;
  --ep-input-bg: #0a0a1a;
  --ep-input-border: #16213e;
  --ep-radius: 12px;
}
<EmojiPicker className="my-picker" onEmojiClick={handleClick} />

Available custom properties

| Property | Description | | --- | --- | | --ep-bg | Background colour | | --ep-border | Border & divider colour | | --ep-text | Primary text colour | | --ep-text-secondary | Secondary/muted text | | --ep-hover-bg | Hover background | | --ep-active-bg | Active/selected background | | --ep-input-bg | Search input background | | --ep-input-border | Search input border | | --ep-radius | Root border radius | | --ep-font-family | Font family |

Keyboard Navigation

  • Escape — clears the search query
  • Tab — navigates between search, categories, and the grid
  • Standard focus management with :focus-visible outlines

Comparison with emoji-picker-react

| Feature | @alihesari/emoji-picker | emoji-picker-react | | --- | --- | --- | | Runtime dependencies | 0 | 5+ | | Virtual scrolling | Built-in | No | | Bundle size (gzipped) | ~25KB | ~90KB | | CSS-in-JS | No (CSS custom props) | Yes | | SSR safe | Yes | Partial | | TypeScript | Full | Full | | Tree-shakeable | Yes | Partial |

Development

# Install dependencies
pnpm install

# Build
pnpm build

# Dev (watch mode)
pnpm dev

# Type check
pnpm typecheck

License

MIT © Ali Hesari