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

@zeroxsolutions/fluent-emoji

v0.1.1

Published

Self-hosted Microsoft **Fluent Emoji** — a committed Unicode CLDR catalog plus the artwork in five styles (four static + animated), resolved by codepoint. No third-party CDN.

Readme

@zeroxsolutions/fluent-emoji

Self-hosted Microsoft Fluent Emoji — a committed Unicode CLDR catalog plus the artwork in five styles (four static + animated), resolved by codepoint. No third-party CDN.

import { FluentEmoji, EMOJI_CATEGORIES } from '@zeroxsolutions/fluent-emoji';

<FluentEmoji glyph="🤯" name="exploding head" />;
{
  /* 3D (default) */
}
<FluentEmoji glyph="🤯" name="exploding head" variant="flat" />;

Styles

Five styles are available, each in its own assets/<style>/ subfolder. Pick one per call with variant (component) / style (fluentEmojiUrl), or set a default with setFluentEmojiStyle. (Four ship in the npm tarball; anim is self-hosted separately — see below.)

| variant | source style | format | | --------- | -------------------- | --------------- | | 3d | Fluent 3D (default) | webp | | flat | Fluent Flat | svg | | modern | Fluent Color (2D) | svg | | mono | Fluent High Contrast | svg | | anim | Fluent Animated | webp (animated) |

<FluentEmoji glyph="🎉" name="party popper" variant="anim" />

The animated (anim) artwork is the heaviest set — animated webp run hundreds of KB/glyph (~280 MB total) — so it is excluded from the npm tarball to keep a plain npm install small (~28 MB) for consumers that only need the static styles. It is still committed in the repo, and the house CDN serves it alongside the other four (see Serving every style from one base below). Without an anim base configured, animated glyphs fall back to the native glyph (as do any glyphs with no upstream artwork, by design).

Serving the artwork

The four static styles ship under dist/assets/<style>/ (keyed by codepoint, e.g. 3d/1f92f.webp, flat/1f92f.svg; anim is the exception — see below). fluentEmojiUrl(glyph, { style }) / <FluentEmoji> resolve <base>/<style>/<codepoint>.<ext>. Because Vite library mode force-inlines bundled assets, the artwork is shipped as raw files instead — the consuming app serves them and points the resolver at the base:

import { setFluentEmojiBase } from '@zeroxsolutions/fluent-emoji';

// e.g. after copying `@zeroxsolutions/fluent-emoji/dist/assets` to `public/fluent-emoji`
// (recursively — keep the style subfolders), or pointing at a CDN:
setFluentEmojiBase('/fluent-emoji');

A glyph with no committed artwork for the resolved style (tracked in the generated manifest, see Artwork provenance) resolves to undefined with no request made; one whose file 404s or fails to load despite the manifest falls back the same way, after the attempt. Either way the native glyph renders, so nothing is ever blank. base only says where to fetch the artwork from: it cannot make a glyph the manifest has no file for resolve, because the manifest is this package's own, not a property of wherever base points.

Serving every style from one base

anim is not in the tarball, so a consumer that wants animated glyphs needs a host for it. Hosting the whole assets/ tree is what removes the second base entirely: the resolver appends /<style>/<codepoint>.<ext> to one root, so one base covers all five styles and setFluentEmojiStyleBase becomes unnecessary.

Inside ZeroXSolutions that host is https://fluent-emoji.zeroxsolutions.com, an R2 bucket this repo publishes to (nx rclone:sync fluent-emoji).

import { setFluentEmojiBase } from '@zeroxsolutions/fluent-emoji';

setFluentEmojiBase('https://fluent-emoji.zeroxsolutions.com');
// <FluentEmoji glyph="🎉" variant="anim" /> ->
//   https://fluent-emoji.zeroxsolutions.com/anim/1f389.webp

A different host per style is still available where you want one - anim remote and the static styles from your own public directory, say:

setFluentEmojiBase('/fluent-emoji'); // 3d/flat/modern/mono
setFluentEmojiStyleBase('anim', 'https://cdn.example.com/fluent-emoji'); // anim only

A per-call base still wins over both, and setFluentEmojiStyleBase('anim', undefined) clears the override.

Artwork provenance

The artwork under assets/<style>/ is pre-generated and committed, and there is no in-repo regeneration tooling for it. It is keyed by codepoint and sourced from LobeHub's repackages of Microsoft Fluent Emoji — the static @lobehub/fluent-emoji-{3d,flat,modern,mono} and animated @lobehub/fluent-emoji-anim-1…-anim-4 packages — plus a few gap-fills from microsoft/fluentui-emoji. Microsoft only animated a subset of the catalog, so in the anim set most faces/objects carry real animation frames while many symbols, keycaps, and flags are static; glyphs with no upstream artwork fall back to the native glyph, by design.

The manifest of which keys have artwork in which style, src/lib/emoji-manifest.ts, is generated, from assets/ itself. Regenerate it after adding or removing a file under assets/<style>/:

nx emoji-manifest fluent-emoji

emoji-manifest.spec.ts fails if the committed file and assets/ disagree, as a reminder to run it.