News for hackers. Stuff that matters.
Re:Show HN: Self-hosted service for creating random avatars by remram on Sunday March 13, 2022 @12:06PM (#30662522)
I take your point about complexity, however generating avatars client-side does not degrade gracefully.
Re:Show HN: Self-hosted service for creating random avatars by tomxor on Sunday March 13, 2022 @04:00PM (#30665130)
As I said, it can be done front or back end, you can use the same script I wrote if you want to stick to javascript, or can implement the same in any other language, and then just return the generated image. In fact the algorithm is so simple you can write the raw bytes out as a bitmap without depending on any image libraries if you wanted.

The difference is that it's stateless because it's deterministic. and therefore requires no more than a single small script.