This is a really simple avatar generator I created for my last project. It's been incredibly helpful for all my new projects too so I decided to tidy it up a bit and make it available for anyone to use.
You create images with - avatar.windsor.io/{anything}.
{anything} can be anything, like an email address, user id, full name, url, ssn, etc.
For a given path, you'll always get back the same image, which is what makes this a great default avatar to use on your site.
I often use avatar.windsor.io/{user.email} as a default for most of my apps so the avatar for that user is consistent across any product of mine they use (and now your products too)!
- Clone repo
pip install -r requirements.txt./build-robohash.sh
- Change the assets in
robohash-src/robohash/sets ./build-robohash.sh
- Modify the alias field in
now.jsonto wherever you want to deploy it to vercel --prod
- Simulate the vercel behaviour with
rewritesin now.json and loading/serving the api routes inapi. You can do this with writing your own server, or using AWS API Gateway or cloudflare workers or anything else you'd like :) - Deploy, both the server code above, and the static resources (index.html and robots.txt)