Skip to content

informagico/avataaars

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Avataaars server-side rendering

This is a fork of gkoberger/avataaars, heavily simplified and without the AWS storage, a little bit of cleanup and the use of localstorage for caching (and of course, a little bit of magic 🧙‍♂️).

Usage

You can receive an SVG by calling directly the endpoint root:

/?hairColor=BrownDark&clotheType=Hoodie&avatarStyle=Circle

Or you can also receive a PNG file making a call to /png/{width} (width is optional):

/png?hairColor=BrownDark&clotheType=Hoodie&avatarStyle=Circle

/png/256?hairColor=BrownDark&clotheType=Hoodie&avatarStyle=Circle

Configuration

You can build your query strings here:

https://getavataaars.com/

Build

$ npm install
$ npm start

Most of the good stuff is in app.js!

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%