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

void-avatars

v0.1.0

Published

Premium generative SVG avatars — 12 styles, 6 moods, 3 animations. ID-collision-free, framework-agnostic.

Readme

void-avatars

Premium generative SVG avatars. 12 styles, 6 moods, 3 animations — framework-agnostic, ID-collision-free, tree-shakeable.

The avatar library that Boring Avatars never became.

Live Demo →


Install

npm install void-avatars

No dependencies. React is optional.


Quick Start

import { generateAvatar } from 'void-avatars';

const svg = generateAvatar({ seed: 'user-42' });
document.getElementById('avatar').innerHTML = svg;

React

import { VoidAvatar } from 'void-avatars/react';

<VoidAvatar seed="user-42" variant="marble" mood="happy" anim="float" size={48} className="rounded-full" />

API

generateAvatar({
  seed:    string,          // required — same seed = same avatar always
  style?:  AvatarStyle,     // default: auto-selected from seed
  mood?:   Mood,            // default: 'none'
  anim?:   AnimationStyle,  // default: 'none'
  size?:   number,          // default: 40 (px)
  colors?: string[],        // 5 hex strings to override the palette
  radius?: number,          // 0 = square, 0.5 = circle (default: 0.22)
  title?:  string,          // accessibility label
})

Styles

| Style | Description | |---|---| | marble | Concentric gradient rings with liquid displacement | | beam | Intersecting glass-morphism rays | | bauhaus | Geometric shapes — circles, triangles, squares | | pixel | 8×8 symmetric retro sprite | | ring | Concentric arc segments | | glitch | 16×16 neon pixel grid + chromatic aberration | | constellation | Sparse node graph on void-purple | | emoticon | Abstract face with morphable mouth | | nebula | Deep-space particle cloud | | wireframe | 3D mesh projection | | halftone | Risograph dot-grid print | | isometric | Stacked isometric blocks |

Moods

none · happy · sad · angry · calm · chaotic

Each mood changes filter parameters and adds a style-specific expression overlay.

Animations

| Value | Effect | |---|---| | float | CSS sine-wave translateY hover | | morph | SMIL animate on feTurbulence (liquid swirl) | | glimmer | animateTransform gradient sweep (light reflection) |

All animations are self-contained in the SVG — they work when the SVG is copied.


Tree-shaking

Import individual styles to keep your bundle small:

import { renderMarble } from 'void-avatars/styles/marble';
import { buildPalette } from 'void-avatars'; // shared utils still available

Each style entry is ~6–8KB vs ~42KB for the full bundle.


Data URI (for <img src>)

import { generateAvatarDataUri } from 'void-avatars';

const src = generateAvatarDataUri({ seed: 'user-42', style: 'glitch' });
// → "data:image/svg+xml;charset=utf-8,..."

Why not Boring Avatars?

  • Boring Avatars has a known SVG mask ID collision bug when multiple avatars render on the same page
  • Only 5 styles, no moods, no animations
  • void-avatars scopes all IDs to a uid derived from seed + style + mood — zero collisions guaranteed

Commercial License

The npm package is MIT — free for personal and open-source use.

For commercial use (SaaS, client projects, closed-source apps), a one-time commercial license is available.

Get a commercial license →


License

MIT © ayotunde obasa