This is a simple API for generating pseudo-random avatars for users without one. You give it a unique ID for each user – this could be their username, a UUID, or anything else that isn't likely to be shared by other users. It will return a randomly generated image, but as long as you use the same ID, you'll receive the same image each time.
API requests take the following form: https://core.soxfox.me/no-face/[style]/[size]/[id][ext]
For example: https://core.soxfox.me/no-face/smile/240/MarkScout.png
style
must be one of the supported styles shown below.size
determines the size of the image in pixels. It must be less than or equal to none.id
is the unique ID you want to generate an avatar for.ext
can be .svg
or .png
to select the image format. It can also be omitted, defaulting to SVG.No-Face is open source! Check out the source code at github.com/soxfox42/no-face. PRs welcome, especially if they come with new styles 😄