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

emojis-categorised

v1.2.0

Published

All emojis grouped by category with human-readable labels. Full Unicode 17.0 set, zero dependencies, TypeScript types, ESM + CommonJS.

Readme

emojis-categorised

npm version types included zero dependencies license

All emojis, grouped by category, with human-readable labels. A tiny, zero-dependency dataset for building emoji pickers, autocompletes, and anywhere you need emojis organised into categories.

  • 🗂️ Ready-to-use categories — emojis come grouped under readable names like "Smileys & People" and "Food & Drink". No numeric Unicode group IDs to map yourself.
  • 📇 Human-readable labels — every emoji has a title-cased name ("Grinning Face"), handy for search and accessibility.
  • 🌐 Complete & current — the full Unicode 17.0 base set (1916 emojis), generated straight from the official Unicode data.
  • 📦 Zero dependencies, TypeScript types included, ships ESM + CommonJS.
  • 🔎 Built-in search(), a flat list, and per-category helpers.

Install

npm install emojis-categorised

Quick start

// ESM
import { emojis } from 'emojis-categorised';

// CommonJS
const { emojis } = require('emojis-categorised');

emojis['Smileys & People'][0]; // { text: '😀', label: 'Grinning Face' }
Object.keys(emojis);           // ['Smileys & People', 'Animals & Nature', ...]

That's it — the emojis are already categorised. Compare that with generic Unicode datasets, where you have to map numeric group IDs to category names before you can render anything.

API

import { emojis, categories, list, getCategory, search } from 'emojis-categorised';

| Export | Type | Description | | --------------------- | --------------------------------- | -------------------------------------------------------------- | | emojis | Record<Category, Emoji[]> | Every emoji grouped by category. | | categories | Category[] | The category names, in display order. | | list | CategorizedEmoji[] | Flat list of all emojis, each tagged with its category. | | getCategory(name) | (string) => Emoji[] | All emojis in a category ([] if unknown). | | search(query) | (string) => CategorizedEmoji[] | Case-insensitive match over labels. |

search('heart').slice(0, 3);
// [ { category: 'Smileys & People', text: '❤️', label: 'Red Heart' }, ... ]

getCategory('Food & Drink').length; // 131
list.length;                        // 1916

Where Emoji is { text: string; label: string }.

Data structure

{
  "Smileys & People": [
    { "text": "😀", "label": "Grinning Face" },
    { "text": "😃", "label": "Grinning Face with Big Eyes" }
  ],
  "Animals & Nature": [ /* … */ ],
  "Food & Drink":     [ /* … */ ],
  "Activity":         [ /* … */ ],
  "Travel & Places":  [ /* … */ ],
  "Objects":          [ /* … */ ],
  "Symbols":          [ /* … */ ],
  "Flags":            [ /* … */ ]
}

You can also import the raw JSON directly:

import emojis from 'emojis-categorised/emojis.json';

Categories

| Category | Count | | ----------------- | ----- | | Smileys & People | 559 | | Animals & Nature | 160 | | Food & Drink | 131 | | Activity | 85 | | Travel & Places | 219 | | Objects | 266 | | Symbols | 224 | | Flags | 272 |

Skin-tone and hair-colour variants are intentionally excluded, so the list is one clean entry per distinct emoji.

Example: a category-tabbed picker

import { categories, emojis } from 'emojis-categorised';

function EmojiPicker({ onPick }) {
  return categories.map((category) => (
    <section key={category}>
      <h3>{category}</h3>
      {emojis[category].map((e) => (
        <button key={e.text} title={e.label} onClick={() => onPick(e.text)}>
          {e.text}
        </button>
      ))}
    </section>
  ));
}

Regenerating the data

The dataset is generated from emoji-test.txt (bundled from unicode.org):

npm run build   # regenerates emojis.json, index.js and index.mjs
npm test        # validates structure, exports, and checks for duplicates

To move to a newer Unicode version, replace emoji-test.txt with the latest from https://unicode.org/Public/emoji/latest/emoji-test.txt and re-run the build. Existing labels are preserved; only new emojis get an auto-generated, title-cased label.

License

ISC © Maksym Dolynchuk