glorpies

cli

Render any name to an image file from the terminal.

The CLI renders with @napi-rs/canvas, so npx needs both packages:

sh
npx -p glorpies -p @napi-rs/canvas glorpies agent-47 --look ink --size 128 --shape circle -o agent.pngnpx -p glorpies -p @napi-rs/canvas glorpies agent-47 --state thinking -f gif

In a project with both installed: npx glorpies agent-47.

options

flagdefault
-l, --lookauto or a lookauto
-s, --sizepixels, 16 to 4096256
-f, --formatpng, webp, jpeg, svg, giffrom --out, else png
--shapecircle, squircle, rounded, squaresquare
--stateidle, thinking, working, waiting, blocked, doneidle
--backgroundfalse for only the face, or a colour to put it on: ffe9a8, '#ffe9a8', tomato
--loopseconds, for a gif3
-o, --outthe file to write, or - for stdout<name>.<format>
--forceoverwrite an existing file
-h, --help

Names starting with - go after --: glorpies -- -weird-name.

in scripts

sh
npx glorpies agent-47 -f webp -o - > avatar.webpfor name in ada grace linus; do npx glorpies "$name" --look sticker; done

Existing files are never overwritten without --force. Errors exit with status 1.