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

@blobatar/solid

v2.7.0

Published

Solid adapter for blobatar — deterministic geometric avatars.

Readme

@blobatar/solid

Solid adapter for blobatar — deterministic geometric avatars.

Installation

bun add @blobatar/solid blobatar

Usage

import { Blobatar } from "@blobatar/solid";

function App() {
  return <Blobatar name="username" />;
}

Following the pointer

The eyes can track the cursor. That layer is the one part of the motion system that needs JavaScript, so it is a separate subpath and costs nothing unless you import it:

import { Blobatar } from "@blobatar/solid";
import { createGaze } from "@blobatar/solid/gaze";
import "blobatar/motion.css";
import "blobatar/gaze.css"; // required — the eyes hold still without it

const eyes = createGaze({ travel: 3, target: "pointer" });
<Blobatar ref={eyes} name={user.email} animate="always" size={200} />;

The whole binding is the ref: a function with the driver's seams hung off it, which a function can carry because it is an object. Solid does not re-render, so there is no callback ref to keep and no dependency array to key on — the component body runs once and so does this.

travel is the excursion, and it is what opts a blobatar into the layer: --mo-track-travel starts at 0px, so a page with the stylesheet loaded and the excursion set nowhere has a driver running and no eyes moving. It is in viewBox units — the blobatar is 100 across, so 3 is 3% of the face — and about 1.5 to 4 reads well. Leave it out and the stylesheet owns it instead, which is the better route for a whole field of blobatars, since the property inherits, or for anything responsive:

.hero .mo-eyes { --mo-track-travel: 3px; }

Pick one, not both. A rule like that one wins over travel, since the option is written inline on the <svg> and reaches the eyes by inheritance.

Everything in the options is read once. Aiming that changes is lookAt, in an effect of your own:

const eyes = createGaze({ travel: 3 });
createEffect(() => eyes.lookAt(watching() ? "pointer" : "rest"));

Both take the same things: a point in client coordinates, an element (eyes.lookAt(button)), "pointer" for the cursor, "rest" to park the eyes in the middle without resuming the idle glance, or null for nothing, which hands it back. The last thing asked for wins, whichever asked, and aiming before the blobatar has mounted is remembered rather than dropped — so a caret can be driven straight through lookAt with no re-render per keystroke.

What this package ships

Three builds, picked by your toolchain: JSX source behind the solid condition for anything running vite-plugin-solid, an SSR build under node, and a DOM build by default. Solid compiles differently per target rather than branching at runtime, so a consumer handed the wrong one renders nothing — the conditions are what keep that from happening.

Props

| Prop | Type | Description | |------|------|-------------| | name | string | Required. Who the blobatar is for. | | size | number | Width and height in pixels. | | animate | "always" \| "hover" | Enable animation. | | background | string \| false | Background style. | | palette | string[] | Color palette. | | hue | number | Pin the hue. | | tone | number | Pin the tone. | | normalize | boolean | Normalize the name. | | contrast | boolean | Enable contrast. | | title | string | Accessible title. | | expression | Expression | Expression to render. | | traits | TraitOverrides | Override specific traits. |

License

MIT