An api for generating user profile avatars based on the name specified with more customization build using Node.js
Give as a Star 🌟
API requires Node.js v14+ to run.
Clone, Install the dependencies and start.
git clone https://github.com/Ysn4Irix/oneAvatar.git
cd oneAvatar
npm install
npm start or npm run dev
GET /api/v1/?size=256&background=random&bold=yes&rounded=yes&fullname=ysn4irix
Replacing Query Parameters
- size : The size of the avatar either 256 or 512
- background : Background color of the avatar either a hex code or your can put random to get random color
- bold : text can bold (yes) or not (no)
- rounded : avatar can be a circle (yes) or a rectangle (no)
- fullname : fullname of user if there is a space we subtracts first letter of the first word and the last word otherwise we subtracts the first & second letter
MIT