Home

Awesome

<p align="center"> <a href="https://avatar.microvoid.io/"> <img width="20%" src="https://avatar.microvoid.io/api/avatar/retro-avatar?t=gravatar" alt="retro-avatar" /> <img width="20%" src="https://avatar.microvoid.io/api/avatar/retro-avatar?t=window" alt="retro-avatar" /> <img width="20%" src="https://avatar.microvoid.io/api/avatar/retro-avatar?t=github" alt="retro-avatar" /> <h1 align="center">retro-avatar</h1> </a> </p> <p align="center"> Create <em>indenticon-like</em> like Github and Gravatar (retro) avatars.<br><br> <a href="https://www.npmjs.com/package/retro-avatar"> <img src="https://img.shields.io/npm/dm/retro-avatar.svg?style=flat-round" alt="npm downloads"> </a> <a href="https://www.npmjs.com/package/retro-avatar"> <img alt="NPM Version" src="https://badgen.net/npm/v/retro-avatar" /> </a> <a href="https://github.com/microvoid/retro-avatar/blob/main/LICENSE"> <img src="https://img.shields.io/npm/l/retro-avatar?style=flat" alt="License"> </a> </p>

Features

Documentation

For full documentation, visit website

Quick Start

You don't need to install any dependencies!

Just replace the ID_HERE placeholder with any text.

<img src="https://avatar.microvoid.io/api/avatar/ID_HERE" />

for example:

Options

Themes

themeusagedemo
githubhttps://avatar.microvoid.io/api/avatar/retro-avatar?t=githubretro-avatar
gravatarhttps://avatar.microvoid.io/api/avatar/retro-avatar?t=gravatarretro-avatar
monohttps://avatar.microvoid.io/api/avatar/retro-avatar?t=monoretro-avatar
minihttps://avatar.microvoid.io/api/avatar/retro-avatar?t=miniretro-avatar
windowhttps://avatar.microvoid.io/api/avatar/retro-avatar?t=windowretro-avatar
mosaichttps://avatar.microvoid.io/api/avatar/retro-avatar?t=mosaicretro-avatar

Size

sizeusagedemo
32https://avatar.microvoid.io/api/avatar/retro-avatar?s=32retro-avatar
64https://avatar.microvoid.io/api/avatar/retro-avatar?s=64retro-avatar

The size must be between 16 and 2048, and default to 256.

Projects

Self host

  1. prerequires

retro-avatar rely on the node-canvas project, so you need to install its dependencies on your server.

for Ubuntu

sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev

for Fedora

sudo yum install gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel

For other environments, please refer to node-cavas.

  1. clone project
git clone https://github.com/microvoid/retro-avatar.git
  1. deploy
sh deploy.sh
  1. environment variables (unnecessary)
# path: retro-avatar/apps/website/.env

# Google Analytics
NEXT_PUBLIC_ANALYTICS_ID=

# Logflare API
LOGFLARE_API_KEY=
LOGFLARE_API_TOKEN=