This product was not featured by Product Hunt yet.
It will not be visible on their landing page and won't be ranked (cannot win product of the day regardless of upvotes).

Product upvotes vs the next 3

Waiting for data. Loading

Product comments vs the next 3

Waiting for data. Loading

Product upvote speed vs the next 3

Waiting for data. Loading

Product upvotes and comments

Waiting for data. Loading

Product vs the next 3

Loading

fn-ui-avatars

Stop random colors. Initials avatars with deterministic UI

A lightweight, zero-dependency library and React wrapper to generate consistent, colorful initials avatars with Smart Contrast using the UI-Avatars API.

Top comment

Hello! I'm Fábio, and I've been a software engineer for over 10 years, mostly focused on the backend and .NET ecosystem. Recently, I’ve been exploring frontend development and decided to tackle a small but real UI frustration I noticed in many web applications. The Problem: When building user lists, many developers rely on initials avatar APIs using `background=random`. The result? A chaotic UI where the same user gets a totally different color on every single render or device. If you avoid randomness, everyone gets a boring gray background. To top it off, text color contrast is rarely accessible. The Solution: I built fn-ui-avatars — a lightweight, zero-dependency ecosystem (Vanilla JS core + React wrapper component). By using a quick djb2 hashing algorithm, it guarantees: Absolute consistency: The same name always yields the exact same background color across devices. Smart Contrast: It automatically calculates background YIQ luminance to flip the text between black and white for perfect WCAG accessibility. Zero overhead: No state or database required. I’ve deployed a live interactive playground so you can see it in action! I would absolutely love to get your feedback on the API design, code, or any features you think are missing. It’s fully open-source and ready for contributors. Thank you for checking it out!

About fn-ui-avatars on Product Hunt

Stop random colors. Initials avatars with deterministic UI

fn-ui-avatars was submitted on Product Hunt and earned 5 upvotes and 1 comments, placing #160 on the daily leaderboard. A lightweight, zero-dependency library and React wrapper to generate consistent, colorful initials avatars with Smart Contrast using the UI-Avatars API.

On the analytics side, fn-ui-avatars competes within Design Tools, Open Source, Developer Tools and GitHub — topics that collectively have 886.5k followers on Product Hunt. The dashboard above tracks how fn-ui-avatars performed against the three products that launched closest to it on the same day.

Who hunted fn-ui-avatars?

fn-ui-avatars was hunted by Fábio Nascimento. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

For a complete overview of fn-ui-avatars including community comment highlights and product details, visit the product overview.