Menu

I built Opaline: seeded SVG avatars that render identically on server and client (React, Vue, Angular, Svelte, Web Components; MIT)

#angular#redditangular#opaline#avatar#morph
Reading 0:00
15s threshold

Hi all. I built Opaline , a small library that turns any string (user ID, email, username) into an avatar. The same seed always gives the same SVG.

The problem. Every app needs an avatar before users upload a photo. Grey silhouettes all look the same, and most generated-avatar libraries either target one framework or cause hydration mismatches when rendered on the server.

What Opaline does

Seed in, SVG string out. Core has zero dependencies .

Byte-identical output on server and client, across every 1.x release, enforced by a checksum test. Safe to cache, store or email.

4 styles ( Aura, Morph, Gradient, Clay ) and 3 finishes ( flat , soft , gloss )

Components for React (RSC-safe), Vue 3 , Angular (standalone, zoneless), Svelte 5 , plus an <opaline-avatar> Web Component

Pass src and it shows the user's photo, falling back to the generated avatar

Theme with CSS variables.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.