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

@limeade-labs/sparkui-icons

v1.0.0

Published

Emoji → Lucide SVG icon replacement for SparkUI. 208 mapped emojis, single-pass regex, <2ms for typical pages.

Readme

sparkui-icons

Emoji → Lucide icon replacement library for SparkUI. Replaces 208 emoji characters with inline Lucide SVG icons in a single regex pass.

Installation

npm install @limeade-labs/sparkui-icons

Usage

const { replace, lookup, has } = require('@limeade-labs/sparkui-icons');

// Replace emojis in HTML strings
const html = '<h1>⚡ Dashboard</h1><p>📊 Stats and 🔥 Performance</p>';
const result = replace(html);
// Emojis are replaced with inline Lucide SVGs

// Look up a single emoji
const entry = lookup('⚡');
// { name: 'zap', svg: '<svg class="lucide lucide-zap" ...' }

// Check if an emoji is mapped
has('⚡');  // true
has('🦄');  // false

API

replace(html, options?)

Replace mapped emojis with inline SVGs.

Options: | Option | Default | Description | |--------|---------|-------------| | size | 20 | Icon size in pixels | | class | 'sparkui-icon' | CSS class for icons | | preserveEmoji | true | Keep emoji as aria-label for accessibility | | strokeWidth | 2 | SVG stroke width | | variant | 'outline' | Rendering style: 'outline', 'filled', or 'duotone' | | color | — | Color for filled variant | | fillColor | — | Fill color for duotone variant | | strokeColor | — | Stroke color for duotone variant | | fillOpacity | 0.35 | Fill opacity for duotone variant | | colorMap | — | Per-emoji color overrides (import from colors.js) |

Protected regions: Content inside <code>, <pre>, <textarea>, and elements with data-sparkui-no-replace is never modified.

Skin tones: Automatically stripped before lookup (👍🏻 → 👍).

lookup(emoji){ name, svg } | undefined

has(emoji)boolean

entries()Iterator<[emoji, { name, svg }]>

size()number

Performance

  • < 2ms for realistic 50KB pages (~100 emojis)
  • Pre-compiled regex and pre-built replacement strings
  • Zero runtime file I/O
  • Protected region detection via fast pre-check

Colored Circles

Circle emojis (🔴 🟢 🟡 🔵 ⚪ 🟠) are mapped to the Lucide circle icon with color-specific CSS classes:

.sparkui-icon.sparkui-red    { color: #ef4444; }
.sparkui-icon.sparkui-green  { color: #22c55e; }
.sparkui-icon.sparkui-yellow { color: #eab308; }
.sparkui-icon.sparkui-blue   { color: #3b82f6; }
.sparkui-icon.sparkui-white  { color: #e5e7eb; }
.sparkui-icon.sparkui-orange { color: #f97316; }

Icon Mapping

208 emojis mapped across categories: Navigation, Sections, Actions, Status, Health, Food, Finance, Travel, Education, Entertainment, Weather, Communication, and Misc.

Build Notes

  • 🪣 → paint-bucket (lucide-static doesn't have bucket)
  • ✅/❌ map to circle-check/circle-x (status versions, not check-circle/x-circle)
  • Some emojis share icon names (🌮/🍴 → utensils, 🔧/🛠️ → wrench, etc.)

License

MIT