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

glowmoji

v1.2.0

Published

Glowing emoji-style avatar generator — deterministic, SVG-based, zero dependencies

Readme

glowmoji

why use a plain grey circle when you can have a glowing little guy?

deterministic SVG avatars. same name, same face, every time. zero dependencies.

→ live demo & docs

npm install glowmoji

or via CDN (no build step needed):

<script src="https://unpkg.com/glowmoji/dist/glowmoji.global.js"></script>
<body>
  <div id="avatar"></div>
  <script>
    glowmoji.mount(document.getElementById('avatar'), { name: 'Alice' });
  </script>
</body>

usage

vanilla / any framework

import { mount } from 'glowmoji';

// sets innerHTML, auto-blinks, click-to-blink — all wired up
const stop = mount(document.getElementById('avatar'), { name: 'Alice' });

// choose a click animation
const stop = mount(el, { name: 'Bob' }, { onClickAnimation: 'hurt' });

// or manually if you need more control
import { glowmoji, autoBlink, blink } from 'glowmoji';
const { svg } = glowmoji({ name: 'Alice' });
el.innerHTML = svg;
el.addEventListener('click', () => blink(el));
const stop = autoBlink(el);

react

import { Glowmoji } from 'glowmoji/react';

<Glowmoji name="Alice" />
<Glowmoji name="Alice" size={48} shape="circle" color="#a78bfa" />

// with click animation
<Glowmoji name="Alice" onClickAnimation="kiss" />

// disable auto-blink
<Glowmoji name="Alice" blink={false} />

Requires React 17+. Works with whatever version your project already has.


options

| prop | type | default | description | |---|---|---|---| | name | string | — | seed for the avatar. same name = same result | | size | number | 64 | width & height in px | | shape | Shape | rounded | square · rounded · circle | | color | string | — | hex color override, e.g. #ff6b6b | | transparent | boolean | false | skip the dark bg — use on light pages |

the color prop replaces the auto palette. glow is derived automatically.


click animations

mount() accepts a third argument { onClickAnimation } to control what happens when you click the avatar. the React component takes it as a prop.

| animation | what it does | |---|---| | blink | default — a quick blink | | hurt | X eyes, round open mouth, slight squish — the classic "ow" face | | kiss | one eye winks, mouth puckers into a ε shape, a heart floats up |

// vanilla
mount(el, { name: 'Alice' }, { onClickAnimation: 'hurt' });

// react
<Glowmoji name="Alice" onClickAnimation="kiss" />

you can also call the animations directly:

import { blink, hurt, kiss } from 'glowmoji';

hurt(container);  // trigger the hurt animation
kiss(container);  // trigger the kiss animation

blink

the result includes blink utilities you can wire up yourself:

const { svg, blink, autoBlink } = glowmoji({ name: 'Alice' });
el.innerHTML = svg;

// click to blink
el.addEventListener('click', () => blink(el));

// or start auto-blinking (returns a stop function)
const stop = autoBlink(el);

types

type Shape = 'square' | 'rounded' | 'circle';
type ClickAnimation = 'blink' | 'hurt' | 'kiss';

interface GlowmojiOptions {
  name: string;
  size?: number;
  shape?: Shape;
  color?: string;
  transparent?: boolean;
}

interface GlowmojiResult {
  svg: string;
  dataUri: string;
  palette: Palette;
  blink: (container: Element) => void;
  autoBlink: (container: Element) => () => void;
}

license

MIT


if this made your app look cooler → ko-fi.com/igarren