Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

pixitoons

Latest version: v1.9.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: hosternix
0 Stars
0 Forks
11 Versions
1.4K Downloads
JavaScript Repo language

Scan summary

pixitoons was last scanned on 27 Nov 2026 at version 1.9.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 11 versions; the latest 5 were published within 4 days (24–27 Nov 2026).
  • Findings: No rules fired in version 1.9.0.
  • Downloads: 1,375 downloads.

Versions

11 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.9.0 LATEST 27 Nov 2026 No rules fired
1.8.0 26 Nov 2026 No rules fired
1.7.0 26 Nov 2026 No rules fired
1.6.0 25 Nov 2026 Not shown
1.4.0 24 Nov 2026 Not shown

No rules fired in 1.9.0

Findings

Findings for v1.9.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.9.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Pixitoons

3D avatar library: a seed (any text, such as a user id or a name) gives the same avatar every time. The avatar is composed in the browser from layered images, so there is no server to run and nothing to sign up for.

  • 2 templates (feminine and masculine), 6 face shapes each, 13 expressions, 10 skin tones, 3 eye colours.
  • 16 and 15 hairstyles and bald, in 5 hair colours; up to 11 beards; 3 glasses; 3 kinds of headwear per template; 3 garments in 5 colours; 8 background colours, any colour, or transparent.
  • Any choice can be fixed and the rest still comes from the seed. Six of the skin tones, light brown hair and one beard are chosen by name only: seeds do not draw them (see "Versions").

Quick start, no build step

<img id="me" width="128" height="128" alt="">
<script type="module">
  import { createAvatars } from 'https://cdn.jsdelivr.net/npm/pixitoons@1.9.0/src/index.js';

  const avatars = await createAvatars();
  document.getElementById('me').src = await avatars.toURL('dana', { size: 256 });
</script>

Install in a project

npm install pixitoons

Or straight from a GitHub release: npm install github:pixitoons/pixitoons#v1.9.0.

import { createAvatars } from 'pixitoons';

const avatars = await createAvatars();                                   // in the browser
img.src = await avatars.toURL('dana', { size: 256 });                   // the avatar of the seed "dana"
const sel = avatars.select('dana', { hair_color: 'ginger' });            // the same avatar with ginger hair
const blob = await avatars.toBlob(sel, { size: 512, background: 'transparent' });

The package can be imported anywhere, server rendering included; createAvatars() itself runs in the browser.

React and Next.js
'use client';

import { useEffect, useState } from 'react';
import { createAvatars } from 'pixitoons';

let loading = null; // one loader for the whole page

export default function Avatar({ seed, size = 96, alt = '' }) {
  const [src, setSrc] = useState(null);
  useEffect(() => {
    let url = null;
    let live = true;
    loading ??= createAvatars().catch((e) => { loading = null; throw e; });
    loading
      .then((avatars) => avatars.toURL(seed, { size: Math.min(1024, size * 2) })) // sharp on dense screens
      .then((u) => { if (live) setSrc((url = u)); else URL.revokeObjectURL(u); });
    return () => { live = false; if (url) URL.revokeObjectURL(url); };
  }, [seed, size]);
  return src
    ? <img src={src} width={size} height={size} alt={alt} />
    : <span style={{ display: 'inline-block', width: size, height: size }} />;
}
The custom element
const avatars = await createAvatars();
avatars.define(); // registers <pixitoons-avatar>
<pixitoons-avatar seed="dana" size="96"></pixitoons-avatar>
<pixitoons-avatar seed="dana" size="96" hair_color="ginger" background="transparent" alt="Dana"></pixitoons-avatar>

size is in CSS pixels; the element draws at the screen's pixel density. Any field of the selection can be fixed with an attribute of the same name.

API

  • createAvatars({ base, imageBytes, colorBytes }) loads the manifest and returns the avatar API. base is the folder of the avatar files (default: CDN_BASE); imageBytes and colorBytes bound the engine's caches (default 192 MB and 128 MB).
  • avatars.select(seed, overrides) gives the selection of a seed: { t, face, expr, tone, eye, hair, hair_color, beard, glasses, hat, cloth, cloth_color, bg }. overrides fixes any of these; the other choices do not change.
  • avatars.options(t, face) lists the values each field can take for a template ('tF' or 'tM') and a face.
  • avatars.render(seedOrSelection, { size, background, overrides, frame, parts }) gives { width, height, data } (RGBA). size is the output edge in pixels, up to 1024: at 512 and below the avatar is composed at 512 from the half-size files, above that at 1024. background is '#rrggbb' or 'transparent'. parts keeps parts apart in the same render: see "Parts of an avatar".
  • avatars.toCanvas(...), avatars.toBlob(..., { type, quality }) and avatars.toURL(...) take the same arguments. Call URL.revokeObjectURL on a URL from toURL when the image is no longer shown.
  • avatars.files(seedOrSelection, { overrides, size }) gives the addresses of the files a render of it at that size fetches, and avatars.preload(seedsOrSelections, { overrides, size }) fetches and decodes them ahead: see "Many avatars on one page".
  • avatars.define(name = 'pixitoons-avatar') registers the custom element.
  • toCanvas and define need a page; everything else also runs in a Web Worker.
  • VERSION, BUILD (the build of the avatar files), CDN_BASE, BACKGROUNDS, SELECTION_VERSION, PARTS.

Types are in index.d.ts.

Many avatars on one page

A render asks for all of its files at once (4 to 13 of them, 8 for a typical avatar), so it waits about one round trip for them rather than one per file, and each file is fetched once per instance. To have them ready before the avatars are drawn:

await avatars.preload(['dana', 'kofi', 'seed3'], { size: 512 }); // fetched and decoded together, for renders at 512
const urls = avatars.files('dana', { size: 512 });              // or their addresses, for a service worker

Give them the size the avatars will be rendered at: at 512 and below a render uses the half-size files, a quarter of the pixels of the full-size ones.

In Web Workers

createAvatars, render, toBlob, toURL, files and preload work in a module Web Worker as they do on a page, so several workers can render side by side. In a worker a relative base is read against the worker's script, and toBlob encodes with OffscreenCanvas.

// avatar-worker.js, started with new Worker(new URL('./avatar-worker.js', import.meta.url), { type: 'module' })
import { createAvatars } from 'pixitoons';

const loading = createAvatars({ imageBytes: 64e6, colorBytes: 32e6 });

self.onmessage = async ({ data: { id, seed, size } }) => {
  const avatars = await loading;
  const blob = await avatars.toBlob(seed, { size, background: 'transparent' });
  self.postMessage({ id, blob });
};

Each createAvatars(), so each worker, has its own caches, up to imageBytes for decoded files (default 192 MB) and colorBytes for recoloured layers (default 128 MB), for each of the two sizes of files it renders from; at full size one instance fills them after about 8 avatars, at 512 after about 30. With several workers give each a smaller share: in bench/results.md, 32 avatars in a row took 518 ms each with the defaults, 544 ms with 64 MB and 32 MB, and 560 ms with 32 MB and 16 MB.

Parts of an avatar

render(seed, { parts }) keeps parts apart in the same render, whose picture does not change. parts lists names from PARTS: 'cloth', 'hair', 'beard', 'glasses' and 'hat'. For each one the result has parts[name]:

  • cover: size × size bytes, how much of each pixel the part makes up in the picture, after everything drawn over it (0 to 255);
  • without: the picture with the part cut out and its shadows undone, as { width, height, data }. What the part covers is not drawn again, so it is transparent there (or the background). With 'cloth': the head without its garment, for a body that wears it;
  • tones: { mean, dark, light }, the colours of the part as it shows ('#rrggbb'), or null when nothing of it shows: no such part, or stubble, which is only a shade of the skin.
const r = await avatars.render('dana', { size: 512, background: 'transparent', parts: ['cloth'] });
const head = r.parts.cloth.without;                  // the head and neck without the hoodie
const { mean, dark, light } = r.parts.cloth.tones;   // to dress a body in the same colours

At 512 px the garment adds about 20 ms to a render, where a second render in another garment colour takes about 70 ms. To see what lies under a beard, glasses or a hat, render again with it set to 'none' in overrides.

Where the avatar files come from

By default from jsDelivr, from the npm package of the installed version: https://cdn.jsdelivr.net/npm/pixitoons@1.9.0/assets/ (up to 1.3.0, from the GitHub release: https://cdn.jsdelivr.net/gh/pixitoons/pixitoons@v<version>/assets/; with both sizes of files the repository is more than jsDelivr serves from a GitHub tag). A published version cannot change, so the code and the images of a version always belong together, and a site sees a new look only when it moves to a new version itself.

The layer files come in two sizes: l/ for renders above 512 px, and half/l/ (with half/manifest.json) for 512 and below. A page that shows only small avatars loads only the half-size files.

To serve the files from your own site:

npx pixitoons copy-assets public/pixitoons     # copies them to public/pixitoons/1.9.0/ and checks every file
const avatars = await createAvatars({ base: '/pixitoons/1.9.0/' });

createAvatars refuses files of another version with a message, so copy them again after an update.

What one avatar costs: at 512 px and below its files are 0.10 to 0.51 MB (about 0.26 MB typical) and composing takes about 0.1 to 0.2 seconds on a desktop; above 512 px, 0.16 to 1.32 MB (about 0.55 MB) and about 0.2 to 0.5 seconds. The files of a render are fetched together. Once per site: manifest.json 378 KB and the code about 135 KB, before compression. bench/ measures it, and bench/results.md keeps the numbers of each change for speed.

Versions

Every release is a git tag vX.Y.Z with a GitHub release that cannot change after it is published.

  • Patch (1.0.0 to 1.0.1): fixes that change no avatar.
  • Minor (1.0.0 to 1.1.0): new features, and sharper or cleaner images. Every seed keeps its selection (the same face, expression, skin tone, hair, clothes and colours), so a person keeps their avatar.
  • Major (1.x to 2.0.0): a seed may get another selection (for example when new hairstyles join the draw), or the API changes.

An option can arrive in a minor version as a choice by name only: options() lists it and an override picks it, but seeds do not draw it, so every seed keeps its selection. A major version can bring it into the draw. Such options now: the beard goatee_mustache (since 1.5.0), the skin tones 1, 3, 5, 6, 8 and 10 and the hair colour lightbrown (since 1.9.0).

This is checked by code. test/identity.txt holds the selection of the seeds seed0 to seed999; a pull request that changes it is marked with a warning, and a release that changes it without raising the first number is refused. test/browser/golden/ holds rendered avatars, so a change of the look shows up in the pull request as an image diff. test/browser/ref/ holds the engine of the last release whose look this one keeps: every face, expression, hairstyle, beard, pair of glasses, hat and garment must render the same at full size, to the pixel.

Updating a project
  1. Read CHANGELOG.md for what changed.
  2. In package.json, change the tag at the end of the dependency to the new version (for example #v1.0.0 to #v1.1.0) and run npm install.
  3. Check your pages, then deploy. Until you deploy, nothing changes for your visitors.

Making a release

  1. Bring in a new build of the avatar files: node scripts/import-build.mjs <build_dir> (add --prune when files were removed; on Windows they go to the Recycle Bin).
  2. npm test, and the browser test: python3 test/browser/render_test.py (needs pip install -r test/browser/requirements.txt and python -m playwright install chromium). When the look changed on purpose, write the new golden images with --update, and copy the engine to test/browser/ref/ with --update-ref. When seeds changed on purpose (a major version), node scripts/identity.mjs --update. A change meant to make renders faster keeps the look: run python3 bench/run.py --lib ../test/browser/ref/avatars.js and python3 bench/run.py for the numbers before and after, and add them to bench/results.md.
  3. Add a ## <new version> section to CHANGELOG.md, and commit everything (git add -A, git commit).
  4. npm version patch (or minor, major): this sets the version in package.json, src/version.js and the addresses in this README, commits, and tags.
  5. git push --follow-tags. The Release workflow runs the tests again, checks the version, the changelog and the seed identities, and publishes the GitHub release with the package file.
Publishing to npm

The Release workflow publishes every release to npm as well, with npm's trusted publishing (no token). It was set up once, like this:

  1. An npm account with two-factor authentication.
  2. The first version by hand, from the package file of the GitHub release: npm login, then npm publish pixitoons-<version>.tgz --access public, in a terminal window (npm asks for the second factor only there).
  3. On npmjs.com, the package's settings: a trusted publisher for GitHub Actions, organization pixitoons, repository pixitoons, workflow release.yml, allowed to publish.
  4. On GitHub, the repository's settings: Secrets and variables, Actions, Variables: NPM_PUBLISH = true.

How the avatars are made

Every part (face, expression, hair, beard, glasses, headwear, clothing) was drawn once by an image model as an edit of a bald template, cut out as a layer, and packed with maps for colours, skin tones and expressions. The engine in src/engine.js puts the layers together for a selection: the face and its expression, clothing, beard, glasses and hair, headwear, and the background, with each part fitted to the face shape.

License

  • Code: MIT, see LICENSE.
  • Avatar files (everything under assets/) and every avatar composed from them: CC0 1.0, see LICENSE-ASSETS. No credit is needed, commercial use included.
  • The images were made with openly licensed models, none of which limits the use of its outputs: Qwen-Image-2512, Qwen-Image-Edit-2511, the lightx2v Lightning LoRAs and Qwen3-VL-8B-Instruct (Apache-2.0), and BiRefNet_HR-matting (MIT).

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm pixitoons

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229