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

avatarverse

v1.0.5

Published

**Avatarverse** is a library that allows you to generate a wide variety of unique user avatars from text (such as a name or email address), in SVG or image format.

Readme

Avatarverse

Avatarverse is a library that allows you to generate a wide variety of unique user avatars from text (such as a name or email address), in SVG or image format.

Installation

npm install avatarverse

Usage

🧩 JavaScript (ESM)

import { generateAvatar } from "avatarverse";

const avatar = generateAvatar({
  name: "John Doe",
  variant: "beam",
  size: 60,
  rounded: true,
});

document.body.appendChild(avatar);

🌐 Web Component (HTML)

<script src="https://cdn.jsdelivr.net/npm/avatarverse/dist/avatarverse-webcomponent.js"></script>

<avatar-verse
  name="John Doe"
  variant="beam"
  size="80"
  rounded
>
</avatar-verse>

Alternatively, you can use:

import "avatarverse/webcomponent";
<avatar-verse
  name="John Doe"
  variant="beam"
  size="80"
  rounded
>
</avatar-verse>

Props

| Prop | Type | Default Value | | --------- | ------------------------------------------------------------------ | --------------------------------------------------------- | | name | string | "John Doe" | | colors | array | ['#0a0310', '#49007e', '#ff005b', '#ff7d10', '#ffb238'] | | variant | "beam", "marble", "pixel", "sunset", "ring", "bauhaus" | "beam" | | rounded | boolean | false | | size | number | 40 | | title | string | same as name | | format | "svg" or "image" | "svg" |


🔤 name

Text used as a seed to generate the avatar. It can be a name, email, or any other string. Avatars generated with the same name will always be identical.

🎨 colors

Array of hex color values used as the base palette for the avatar shapes. You can customize this to match your brand or interface.

🧩 variant

Visual style of the avatar. Each variant creates a distinct pattern. Available options are: beam, marble, pixel, sunset, ring, and bauhaus.

🔵 rounded

If set to true, the avatar is rendered with rounded edges (circular). If false, it remains square.

📏 size

Size of the avatar in pixels. This controls both the height and width of the SVG or image container.

🏷️ title

Alternative text used as the title or alt attribute (depending on the format). Useful for accessibility.

🖼️ format

Specifies the output type:

  • "svg": Returns an embedded SVG node.
  • "image": Returns an <img> element with the avatar rendered as a PNG data URI.

API service

Coming soon...


Licensing

This project is licensed under the MIT License.

Some avatar styles ("beam", "marble", "pixel", "sunset", "ring", "bauhaus") are adapted or inspired by Boring Avatars by Pablo Stanley, and are included under the original MIT terms.

Other avatar styles and logic are original creations and are © 2025 Frederick Guzman Salas.