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/vue

v2.7.0

Published

Vue 3 adapter for blobatar — deterministic geometric avatars.

Readme

@blobatar/vue

Vue 3 adapter for blobatar — deterministic geometric avatars generated from any string.

bun add @blobatar/vue blobatar

blobatar is a peer dependency: the adapter carries no renderer of its own.

<script setup lang="ts">
import { Blobatar } from "@blobatar/vue";
</script>

<template>
  <Blobatar :name="user.email" :size="48" />
</template>

Animated blobatars need the stylesheet, and render as inline SVG rather than an <img>:hover never fires inside an <img>, so the two modes cannot be combined:

<script setup lang="ts">
import "blobatar/motion.css";
</script>

<template>
  <Blobatar :name="user.email" animate="hover" />
</template>

Full option reference lives in the main README.

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:

<script setup lang="ts">
import { ref } from "vue";
import { Blobatar } from "@blobatar/vue";
import { useGaze } from "@blobatar/vue/gaze";
import "blobatar/motion.css";
import "blobatar/gaze.css"; // required — the eyes hold still without it

const blob = ref();
useGaze(blob, { travel: 3, target: "pointer" });
</script>

<template>
  <Blobatar ref="blob" :name="user.email" animate="always" :size="200" />
</template>

It takes the ref rather than handing one back, because in Vue you already own it. What the ref holds is the component instance rather than an element, and the composable reads $el off it — so the same call works if you put the ref on an <svg> of your own instead.

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, when the element arrives. Aiming that changes is lookAt, in a watcher of your own:

const { lookAt } = useGaze(blob, { travel: 3 });
watchEffect(() => lookAt(watching.value ? "pointer" : "rest"));

Both take the same things: a point in client coordinates, an element, "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.

Versioning

Every package in the set publishes the same version, and the major names the generation — the frozen seed-to-look mapping. @blobatar/vue@2 renders gen2, exactly as blobatar@2 does. Upgrading a major is the opt-in to your users' avatars changing, so the peer range on blobatar is an exact major rather than ^: a mixed pair is not a version skew, it is the wrong picture.

Coming from blobatar/vue

blobatar/vue still exists and still works. This package re-exports it, so the two are the same component rather than two copies and cannot drift. That subpath is deprecated and is removed in v3 — there is no hurry, and no risk in waiting.

bunx blobatar-codemod .
bun add @blobatar/vue

The codemod rewrites every blobatar/vue specifier it finds, in imports, require, dynamic import() and prose, and is safe to run twice. It does not install anything; that command is yours.