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 Thumbnail

fn-ui-avatars

Stop random colors. Initials avatars with deterministic UI

Design Tools
Open Source
Developer Tools
GitHub
Visit WebsiteSee on Product HuntVercelGithub

Hunted byFábio NascimentoFábio Nascimento

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!

Comment highlights

No comment highlights available yet. Please check back later!

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.

fn-ui-avatars was featured in Design Tools (261.2k followers), Open Source (68.6k followers), Developer Tools (515.4k followers) and GitHub (41.3k followers) on Product Hunt. Together, these topics include over 152.4k products, making this a competitive space to launch in.

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.

Want to see how fn-ui-avatars stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.