Super-lightweight SVG identicon (avatar) generator

I just ported Minidenticons to Elm: minidenticons-elm 1.0.1

This package allows you to generate SVG identicons (pixelated avatars) on the client from usernames instead of fetching images from a server:

You can set the saturation and lightness to adapt to your color theme.

It is super lightweight. On my app using the Minidenticons Elm module added only around 250 bytes to the final minified + compressed output (gzip as well as brotli).

The hash function used is exposed as a bonus. Always useful because big integers manipulation in Elm is a bit quirky…

It is my first Elm package, so feel free to tell me what you think :slightly_smiling_face:

Cheers,
Laurent

28 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.