Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @dicebear/avatars-male-sprites with all npm packages installed. Try it out:

require("@dicebear/avatars/package.json"); // @dicebear/avatars is a peer dependency. var avatarsMaleSprites = require("@dicebear/avatars-male-sprites")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@dicebear/avatars-male-sprites v2.0.6

Pixel art male sprite collection for DiceBear Avatars

DiceBear Avatars - Male Sprite Collection

license npm


HTTP-API (recommended)

Our free HTTP-API is the easiest way to use this sprite collection. Just use the following URL as image source.

The value of :seed can be anything you like - but don't use any sensitive or personal data here! The GET parameter option can be used to pass options.




Install the Avatars and this sprite collection with the following command.

npm install --save @dicebear/avatars @dicebear/avatars-male-sprites

Now you are ready to create your first Avatar.

import Avatars from '@dicebear/avatars';
import sprites from '@dicebear/avatars-male-sprites';

let options = {};
let avatars = new Avatars(sprites(options));
let svg = avatars.create('custom-seed');


moodarray of strings['happy', 'sad', 'surprised']Possible values: sad, happy, surprised

Further information

You can find the DiceBear Avatars documentation at

Inspired by 8biticon (Copyright 2012 Plastic Jam - MIT Licensed)

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free