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

@samuelbines/emojis

v0.0.1

Published

A small, fast, browser-friendly emoji search library built from Unicode codepoints.

Readme

Emoji Search

A small, fast, browser-friendly emoji search library built from Unicode codepoints.

  • 🔍 Keyword + hex search
  • 🎨 Correct handling of emoji sequences (skin tones, modifiers)
  • 🌐 Works in browser, Node, and Bun
  • 📦 Zero runtime dependencies
  • 🧠 No DOM coupling — bring your own UI

Why this exists

Most emoji libraries are either:

  • Huge datasets you don’t need
  • UI-opinionated pickers
  • Hard to extend or inspect

This library focuses on data + search only:

  • You control rendering
  • You control UX
  • You get predictable results

Installation

npm install @samuelbines/emojis

or

bun add @samuelbines/emojis

Basic Usage

import { search } from '@samuelbines/emojis';

const { items: results } = search('waving hand');

results.forEach((e) => {
  console.log(e.icon, e.desc);
});

Search

Keyword search

search('hand');
search('skin tone');
search('thumbs up');

Hex / Unicode search

search('1F44B'); // waving hand
search('U+1F3FC'); // medium-light skin tone

Limit results

search('hand', { limit: 20 });

Emoji Helpers

Convert hex → emoji

import { emojiFromHex } from '@samuelbines/emojis';

emojiFromHex(['1F91A', '1F3FC']); // 🤚🏼

Convert emoji → hex

import { hexFromEmoji } from '@sam/emoji-search';

hexFromEmoji('🤚🏼'); // ["1F91A", "1F3FC"]

Get emoji by ID

import { getById } from '@sam/emoji-search';

const emoji = getById(42);
console.log(emoji.icon);

EmojiEntry shape

type EmojiEntry = {
  id: number;
  icon: string; // "👋🏻"
  desc: string; // "waving hand: light skin tone"
  keywords: string[];
  cps: string[]; // ["1F44B","1F3FB"]
};

Browser example

<input id="emojiSearch" placeholder="Search emoji…" />
<div id="results"></div>

<script type="module">
  import { search } from '@sam/emoji-search';

  const input = document.getElementById('emojiSearch');
  const results = document.getElementById('results');

  input.addEventListener('input', () => {
    results.innerHTML = '';
    const { items, next, total } = search(input.value, { limit: 50 });
    for (const e of items) {
      const btn = document.createElement('button');
      btn.textContent = `${e.icon} ${e.desc}`;
      results.appendChild(btn);
    }
  });
</script>

Build / Development

The emoji index is generated at build time from emoji.array.json.

bun run build

or

npm run build

This keeps runtime code small and fast.

Design decisions

  • No fuzzy matching (simple includes is predictable)
  • No DOM (UI belongs to you)
  • No auto skin-tone generation (explicit > magic)
  • Precomputed search strings for speed
  • No external dev dependancies

When not to use this

You need a full emoji picker UI

You need locale-aware emoji names

You want fuzzy / AI-style matching

This library is intentionally simple.