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

@aora-bot/engine

v0.2.0

Published

Procedural character engine: shape generators, face fitting, pose projection, spring state machine, belts, particles, emotion protocol

Readme

@aora-bot/engine

The character engine behind Aora Bot — pick a character in its console: shapes and a named cast, animation states, three faces, vector, pixel and kaomoji style series, face fitting, pose projection, a damped-spring state machine, effects and belts, HUD dials, particles, and a numeric emotion protocol. No React and, on the /static and /agent entries, no DOM.

Most applications want @aora-bot/react instead, which wraps this engine in components. Install the engine directly when you need the geometry or animation without React.

Install

pnpm add @aora-bot/engine

Animate a character

import { createCharacter } from '@aora-bot/engine';

const host = document.querySelector('#avatar')!;
const character = createCharacter(host, { shape: 'mochi', state: 'thinking' });

character.update({ state: 'happy' });
character.update({ face: 'line', lineWeight: 1.1 }); // stroked nose and mouth
character.update({ hud: { kind: 'progress', value: 0.4 } }); // a dial in the ring
character.update({ followTarget: { x: 320, y: 180 } }); // eyes track a viewport point
character.spin(2);
character.destroy();

createCharacter mounts one SVG into the host and drives it from a single requestAnimationFrame loop shared by every character on the page. Ink colour is a CSS custom property, --aora-fg, so the same running character can be tinted per instance; ink overrides it with any paint. The HUD is drawn by evaluateHud, a pure function of the spec, time and stroke weight, so hosts can also draw the dials themselves.

Render without a DOM

import { renderStaticSvg, renderAvatarDataUrl, autoShapeForKey } from '@aora-bot/engine/static';

const svg = renderStaticSvg({ shape: 'hex', color: 'green', state: 'happy' });
const url = renderAvatarDataUrl('[email protected]');
const shape = autoShapeForKey('[email protected]'); // deterministic: 'hex'

Everything exported from @aora-bot/engine/static is safe to call on a server, in a worker, or during static generation.

The ink follows the operating system's light/dark setting, which is right for <img>, data URLs and files. When you inline the markup into a page that has its own theme switch, pass colorScheme: 'page' so it follows the page's color-scheme instead.

Simulate without drawing

import { createSimulation, getStyle } from '@aora-bot/engine';

const sim = createSimulation({ shape: 'flower', state: 'thinking', seed: 'ada' });
sim.step(1 / 60);
const frame = sim.snapshot(); // points and numbers, no markup

const style = getStyle('vector');
const markup = style.renderStatic(frame, { color: 'blue', uid: 'a', styleOptions: {} });

createSimulation holds everything that decides what a character is doing and touches no DOM, so it runs in Node and gives the same frames for the same seed. A style series turns a FrameSnapshot into pixels: createCharacter pairs the simulation with the series' live renderer, and renderStaticSvg with its static one. Pick a series with style and tune it with styleOptions; defineStyle registers another.

Drive a character from an agent

import { createArbiter, normalizeLine } from '@aora-bot/engine/agent';

const arbiter = createArbiter({
  onApply: (result) => character.update({ state: result.state }),
});

arbiter.update({ sessionId: 'main', emotionId: '32', tips: 'Editing…' });

/agent is the same surface with no animation runtime: protocol ids, the arbiter, adapters, the state channel, and sprite-manifest helpers.

Documentation

License

Aora Bot License: free for individuals, education, non-profits, open-source projects and teams of up to 3 people, commercial use included; a publicly released product must credit Aora Bot with a link to the repository. Larger companies need a commercial license.