Scan your whole stack
From OX Research Newsroom
Are you using pixitoons?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.9.0
pixitoons was last scanned on 27 Nov 2026 at version 1.9.0. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 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 |
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.
The publisher’s own README, as collected from the registry.
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.
<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>
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.
'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 }} />;
}
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.
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.
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.
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.
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.
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.
Every release is a git tag vX.Y.Z with a GitHub release that cannot change after it is published.
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.
CHANGELOG.md for what changed.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.node scripts/import-build.mjs <build_dir> (add --prune when files
were removed; on Windows they go to the Recycle Bin).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.## <new version> section to CHANGELOG.md, and commit everything (git add -A, git commit).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.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.The Release workflow publishes every release to npm as well, with npm's trusted publishing (no token). It was set up once, like this:
npm login, then
npm publish pixitoons-<version>.tgz --access public, in a terminal window (npm asks for the second factor only
there).pixitoons,
repository pixitoons, workflow release.yml, allowed to publish.NPM_PUBLISH = true.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.assets/) and every avatar composed from them: CC0 1.0, see LICENSE-ASSETS. No
credit is needed, commercial use included.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.
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).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.