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

@blobz/avatar-core

v0.1.2

Published

Deterministic, framework-free SVG blob avatars.

Downloads

1,400

Readme

@blobz/avatar-core

The framework-free, deterministic SVG engine behind Blobz. The same normalized name and palette always produce the same avatar in Node.js, Bun, and the browser.

Usage

import { createAvatar } from "@blobz/avatar-core";

const avatar = createAvatar({
  name: "Janaki",
  palette: ["#f2f1f4", "#7c6cf2"],
  frame: "rounded",
});

avatar.svg; // Complete 80×80 accessible SVG markup
avatar.choices; // Numeric choices that can be saved or edited
avatar.features; // Human-readable choices for a UI

For compatibility with the original index.html generator, makeAvatar keeps the same positional API:

import { makeAvatar } from "@blobz/avatar-core";

const avatar = makeAvatar(
  "Janaki",
  ["#f2f1f4", "#7c6cf2"],
  "circle"
);

Build a face manually

createCustomAvatar renders semantic choices directly. It does not use a name or a name-derived hash to select missing features, and it validates every choice at runtime.

import { createCustomAvatar } from "@blobz/avatar-core";

const avatar = createCustomAvatar({
  palette: ["#ffffff", "#12b76a"],
  frame: "circle",
  choices: {
    shape: "leaf",
    eyes: "distorted",
    look: "centre",
    eyeSpacing: "medium",
    mouth: "wide smile",
    brows: "quizzical",
    mirrored: false,
    faceAngle: 2,
    bodyTilt: -4,
    facePosition: { x: 1, y: 0 },
  },
});

toCustomAvatarChoices converts a generated result into the semantic format, which lets an editor use a generated face as its custom starting point. The legacy choices option on createAvatar remains available for partial numeric overrides.

The current feature space contains 5,159,700,000 combinations before palette variation. It includes 21 silhouettes, 14 eye styles, 13 mouths, eight brow styles, and 25 face angles. Bodies use a soft gradient and rim lighting with highlights fitted to each silhouette.

The Faceprint v2 update adds uwu and angry mouths and removes the tilted brow style. The generator draw order stays stable, but the updated option counts change the generated mouth and brows for some names. Saved numeric brow index 7 now selects unibrow; index 8 is no longer valid. Semantic custom choices continue to use their named styles, except for the removed tilted option.