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

@animated-waffle/avatar

v0.2.2

Published

VRM avatar renderer and renderer-neutral performance coordination for Narya Animated Waffle talking Agents.

Downloads

1,151

Readme

@animated-waffle/avatar

VRM avatar renderer plus renderer-neutral performance coordination for Narya Animated Waffle talking Agents.

This is the low-level package. If you only want to embed a published Agent with its avatar, use @animated-waffle/react — it wraps this package in a single useWaffle hook. Reach for @animated-waffle/avatar directly when the application picks its own model, drives the stage, or authors expression contracts.

npm install @animated-waffle/avatar three @pixiv/three-vrm

three and @pixiv/three-vrm are peer dependencies so the application owns one three.js instance.

Two layers, one package

Performance coordination is renderer-neutral and pulls in no three.js. It owns signal timing and face ownership, not rendering:

  • live microphone, tab, WebRTC, or file audio drives the avatar without ASR;
  • semantic emotion and vocal-action cues share the audio playout clock;
  • out-of-order and stale streams are rejected;
  • the local HeadAudio viseme classifier is the mouth fallback;
  • the face coordinator assigns one owner to articulation, mouth affect, brows, lids, gaze, blink, cheeks/nose and authored effects.
import { createAvatarPerformanceCoordinator } from "@animated-waffle/avatar";

const coordinator = createAvatarPerformanceCoordinator({
  timing: "live-input",
  // Override these URLs if the host serves HeadAudio assets elsewhere.
  // audioFallbackFactory: createBrowserHeadAudioFallback({ modelUrl, workletUrl }),
});
coordinator.setStage(stage);
coordinator.setAudioTrack(sourceTrack); // immediate local mouth + VAD

Managed-runtime emotion and vocal-action cues arrive through handleEvent. handleAgentStartedSpeaking / handleAgentStoppedSpeaking anchor the cue timeline for managed Agent playback.

The VRM renderer implements the AvatarStageController boundary the coordinator consumes. three.js enters the module graph only through the dynamic import inside createStageController, so a coordination-only consumer never pays for the renderer chunk:

import { createStageController, MODELS, resolvePresentationFraming }
  from "@animated-waffle/avatar";

const stage = await createStageController(container);
stage.setFraming(resolvePresentationFraming(MODELS.reina));
await stage.loadModel(MODELS.reina);
coordinator.setStage(stage);

The package also exports the authored expression contracts each built-in character resolves against, the 55-tag performance vocabulary, and transcript tag segmentation.

Avatar sources

Source inspection validates the upload shell (name, size, MIME, URL) and normalizes metadata. It does not parse VRM binary contents — the application injects an AvatarLoader backed by its renderer to do that. After loading, pass the runtime expression manager to inspectVrmRigCapabilities to verify actual rig expression support.

HeadAudio assets

The local viseme fallback loads its worklet and model at runtime from DEFAULT_HEAD_AUDIO_WORKLET_URL and DEFAULT_HEAD_AUDIO_MODEL_URL (/vendor/headaudio/… by default). Serve those files from your app, or pass your own URLs to createBrowserHeadAudioFallback.