All Projects → gabrieledarrigo → monsterid

gabrieledarrigo / monsterid

Licence: MIT license
Node.js porting of the original PHP library

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to monsterid

monsterID
The original MonsterID implementation
Stars: ✭ 56 (+273.33%)
Mutual labels:  avatar, avatar-generator, monsterid
monsterid
MonsterID adaptation for Composer and modern PHP versions
Stars: ✭ 20 (+33.33%)
Mutual labels:  avatar, avatar-generator, monsterid
minidenticons
Super lightweight SVG identicon (icon avatar) generator
Stars: ✭ 89 (+493.33%)
Mutual labels:  avatar, avatar-generator
github-avatar-generator
Generate github-style avatar with java awt
Stars: ✭ 37 (+146.67%)
Mutual labels:  avatar, avatar-generator
react-nice-avatar
react library for generating avatar
Stars: ✭ 700 (+4566.67%)
Mutual labels:  avatar, avatar-generator
identicon-api
A simple API to retrieve SVG identicons
Stars: ✭ 15 (+0%)
Mutual labels:  avatar, avatar-generator
avatar-gen
pillow 生成头像,中英文首字母或者随机像素化。Using pillow for generate avatars, first letter of string in Chinese and English or random pixel like avatars.
Stars: ✭ 31 (+106.67%)
Mutual labels:  avatar, avatar-generator
AvatarGAN
Generate Cartoon Images using Generative Adversarial Network
Stars: ✭ 24 (+60%)
Mutual labels:  avatar, avatar-generator
Gravatar
👤 Gravatar Helper & Generator (Laravel supported)
Stars: ✭ 19 (+26.67%)
Mutual labels:  avatar, monsterid
boring-avatars
Boring avatars is a tiny JavaScript React library that generates custom, SVG-based avatars from any username and color palette.
Stars: ✭ 3,582 (+23780%)
Mutual labels:  avatar, avatar-generator
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (+33.33%)
Mutual labels:  avatar, avatar-generator
Avataaars Generator
Simple generator React app for avataaars
Stars: ✭ 2,078 (+13753.33%)
Mutual labels:  avatar, avatar-generator
avatarcropper
Simple quick avatar cropper!
Stars: ✭ 45 (+200%)
Mutual labels:  avatar, avatar-generator
Letteravatarkit
📦 An extension that generates letter-based avatars/placeholders
Stars: ✭ 180 (+1100%)
Mutual labels:  avatar
Metaverse
The Metaverse individual chain service ETP coin and immutable data space for Hyperspace.
Stars: ✭ 227 (+1413.33%)
Mutual labels:  avatar
Knead proj
游戏中捏脸的实现
Stars: ✭ 169 (+1026.67%)
Mutual labels:  avatar
Facemoji Kit
Face tracker with blend shapes coefficients, 3D head pose and dense mesh in real-time on iOS, Android, Mac, PC and Linux.
Stars: ✭ 158 (+953.33%)
Mutual labels:  avatar
ts3admin.class
The ts3admin.class is a powerful api for communication with Teamspeak 3 Servers from your website! Your creativity knows no bounds!
Stars: ✭ 107 (+613.33%)
Mutual labels:  avatar
Neteasecloudmusic
仿网易云音乐安卓客户端V6.0
Stars: ✭ 213 (+1320%)
Mutual labels:  avatar
Makehuman Js
A library to build 3D human characters in the browser
Stars: ✭ 147 (+880%)
Mutual labels:  avatar

Node.js monsterId

image

GitHub Workflow Status npm

monsterId is the Node.js implementation of monsterId PHP library. It creates a unique avatar starting from a string, typically a username, used to generate a unique seed number.

Installation

This library depends on node-gd so, in order to use monsterId, you need to have libgd installed on your system. You can follow node-gd installastion's instructions here.

To install monsterId just type the following command:

$ npm install monsterid

How to use

The usage is actually simple; Import the library an call monsterId function with a username to have back a binary object which represents your unique avatar 👾.

const http = require('http');
const monsterId = require('monsterId');

http.createServer(async (req, res) => {
  const username = 'username';
  const avatar = await monsterId(username);

  res.writeHead(200, { 'Content-type': 'image/png' });
  res.end(avatar, 'binary');
}).listen('8080');

monsterId function accepts an optional configuration object that can be used to specify the desired size of the avatar:

const monsterId = require('monsterId');

const avatar = monsterId('username', {
	size: 200,
});

Contributing

monsterId is authored in ES6, transpiled with Babel, and exported as a CommonJS module. To transpile the src files run this command:

$ npm run build

To launch unit tests suite (with Jest) run this command:

$ npm run test

Credits

Thanks to Andreas Gohr for his job on the original library.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].