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

emoji-to-icons

v1.0.0

Published

Convert emojis to professional SVG icons from Lucide, Heroicons, and Material Icons

Readme

emoji-to-icons 🚀

Convert emojis to professional SVG icons.

emoji-to-icons is a semantic mapping library that converts casual emojis (e.g., 🤖) into professional icon names (e.g., bot for Lucide, FaRobot for Font Awesome).

It is designed for:

  • Developers building documentation tools or CMSs.
  • LLM Workflows where you want to turn AI-generated emoji content into professional UIs.
  • Design Systems needing a bridge between playful user input and formal icon sets.

✨ Features

  • Semantic Mapping: Intelligent conversion (e.g., 🧠 → brain, 🔒 → lock).
  • Framework Agnostic: Returns simple strings (icon names), not React/Vue components.
  • Minimal Dependencies: Lightweight and fast.
  • Typing: Fully typed with TypeScript.

📦 Supported Libraries

We currently support mappings for 11 major icon libraries:

| Library | Key | Emojis Mapped | |---------|-----|---------------| | Lucide | lucide | ~510 | | Heroicons | heroicons | ~470 | | Material Icons | material | ~760 | | Font Awesome 6 | fontawesome | ~870 | | Feather Icons | feather | ~410 | | Remix Icon | remix | ~700 | | Phosphor Icons | phosphor | ~820 | | Tabler Icons | tabler | ~930 | | BoxIcons | boxicons | ~670 | | Noto Color Emoji | noto-color | ~1570 | | Noto Emoji (Mono) | noto-mono | ~1570 |

🛠️ Installation

npm install emoji-to-icons
# or
yarn add emoji-to-icons
# or
pnpm add emoji-to-icons

💻 Usage

Basic Conversion

import { emojiToIcon } from 'emoji-to-icons';

// Simple lookup
const icon = emojiToIcon('🤖', 'lucide'); 
console.log(icon); // Output: 'bot'

const faIcon = emojiToIcon('🤖', 'fontawesome');
console.log(faIcon); // Output: 'FaRobot'

// Returns undefined if not found
const unknown = emojiToIcon('🥴', 'lucide');
console.log(unknown); // Output: undefined

Text Replacement

Perfect for allowing users (or LLMs) to write with emojis, but rendering with icons.

import { convertEmojis } from 'emoji-to-icons';

const text = "Our AI 🤖 uses a complex neural net 🧠 to secure 🔒 your data.";
const processed = convertEmojis(text, 'lucide');

console.log(processed);
// Output: "Our AI <bot> uses a complex neural net <brain> to secure <lock> your data."

// You can then process this string to render actual components
// e.g., replacing <name> with <IconComponent name="name" />

Get Supported Emoji List

Useful for prompt engineering (telling an LLM which emojis it is allowed to use).

import { getSupportedEmojis } from 'emoji-to-icons';

const emojis = getSupportedEmojis('lucide');
console.log(emojis); // ['🤖', '🧠', '🔒', ...]

🔍 Validate Mappings

Use our interactive validator to review and spot-check emoji-to-icon mappings:

Open the Validator →

The validator displays all emoji mappings side-by-side with their corresponding icons, making it easy to identify mismatches or poor mappings.

🤝 Contributing

We welcome contributions! There are two easy ways to help:

Option 1: Use the Validator (No Coding Required!)

  1. Open the Validator: Go to huikku.github.io/emoji-to-icons.
  2. Fix Mappings: Use the arrow keys to find better icons, or click the red X to reject bad matches.
  3. Generate Report: Click the "REPORT" button in the top right corner.
  4. Submit Issue:
    • Click "OPEN GITHUB ISSUE" (this opens a new tab).
    • Back in the Validator, click "COPY TO CLIPBOARD".
    • Paste the report into the GitHub Issue body and submit!

Option 2: Submit a Pull Request

  1. Fork the repo.
  2. Edit src/mappings/<library>.ts.
  3. Submit a Pull Request.

📄 License

MIT © Huikku