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-icon-generator

v0.1.3

Published

Generate a complete set of web icon assets (favicon, PWA icons, apple-touch-icon, webmanifest) from a single emoji, rendered with your machine's native emoji font.

Readme

emoji-icon-generator

Generate a complete set of web icon assets from a single emoji:

npx emoji-icon-generator 🚀

That one command writes a favicon, PWA icons, an apple-touch-icon, and a web manifest into your project's static assets directory, then prints the <head> tags to paste into your app.

Your emoji, exactly as you see it

The emoji is rasterized with your machine's native emoji font — Apple Color Emoji on macOS, Segoe UI Emoji on Windows, Noto Color Emoji on Linux. The icons look exactly like the emoji you picked, on every visitor's device, because the artwork is baked into the assets at generation time (even favicon.svg embeds the rendered image).

The flip side: run it on your dev machine, not in CI. A machine with no color emoji font installed (most CI containers) renders a placeholder glyph. These are static assets — generate once, commit them.

Generated assets

| File | Purpose | | --- | --- | | favicon.svg | Modern favicon (embeds a 512px render of your emoji) | | favicon.ico | Legacy/fallback favicon, 16+32+48px | | apple-touch-icon.png | 180px iOS home-screen icon (solid background) | | icon-192.png, icon-512.png | PWA icons | | icon-maskable-192.png, icon-maskable-512.png | PWA maskable icons (safe-zone padding) | | manifest.webmanifest | Web app manifest wired to the icons above | | emoji-icons.html | The <head> tags below, saved so you can grab them anytime |

Where the files go

The output directory is auto-detected from your project's package.json:

| Framework | Output | | --- | --- | | SvelteKit | static/ | | Vite / React / Next.js / Astro / CRA | public/ | | Anything else | current directory |

Override it with -o/--out:

npx emoji-icon-generator 🚀 -o assets/icons

Wiring it up

After generating, the CLI prints the tags to paste — into src/app.html for SvelteKit, index.html for Vite/React, your root layout for Next.js:

<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<meta name="theme-color" content="#ffffff" />

The same block is saved next to the assets as emoji-icons.html.

Options

-o, --out <dir>        Output directory (default: auto-detected)
    --bg <color>       Background for apple-touch-icon and maskable icons
                       (default: #ffffff)
    --theme-color <c>  theme_color for manifest and meta tag (default: --bg)
    --name <name>      App name for the manifest (default: package.json name)
    --base <path>      Public base path assets are served from (default: /)
    --dry-run          Preview without writing
-h, --help             Help
-v, --version          Version

Example with a dark background and brand color:

npx emoji-icon-generator 🔥 --bg "#1e293b" --theme-color "#f97316"

Requirements

Node.js ≥ 18. Rendering uses @napi-rs/canvas (prebuilt binaries — nothing to install system-wide).

Releasing (maintainers)

Every merge to main publishes to npm automatically (via trusted publishing). The patch version is bumped for you; to ship a minor or major release instead, set the new version in package.json in your PR. The workflow tags the release and syncs the version back to main.

License

MIT