Deterministic text hash to avatar converter.
If you want to generate an avatar based on a user ID or other serializable data, here's an example.
Resources used:
- VueJS v2 as UI framework
- vuejs-avataaars from Or Gordin to render a parameterised avatar
- SubtleCrypto to hash the user input
- avataaars designed by Pablo Stanley
I also found a react version of avataaars.
If you want to run this on your own, clone the repository and step into the project root directory.
npm install
npm run serve
Note: SubtleCrypto is only available on localhost or via https.