Skip to content

aryan02420/identicon-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Identicon API

This project is forked from aarohmankad/identicon-api which stemmed from the need to include dynamic, default identicons for new users of UNUM. It was inspired by the amazing work of jdenticon, a javascript module that allowed the generating of identicons.

This project is a serverless implementation of the original identicon-api, and is hosted on Deno Deploy.

Usage

<img src="https://identicon.02420.dev/[username]/[size]?format=(svg|png)&config=">
  • username: This doesn't have to be a username, just any string. Hashing is done server-side using SHA-256.
  • size: This is the size of the image you would like returned. For now, the API only returns squares, so size is any natural number.
  • format: This is the format you would like the image returned in, svg or png. (Default: svg)
  • config: This is the same config hash generated by Jdenticon Icon Designer for generating custom icons.

Contributing

If you would like to contribute to this project, please feel free to fork this repository and submit a pull request, or open an issue.

Links