Wrote a small library for text based avatar generation in SVGs.

utkarshdubey profile image Utkarsh Dubey ・1 min read

Wrote a dead-simple, small library in Javascript for generating text-based avatars(eg. Gmail pfp's with initials) in the SVG format. You could either save it in your database and directly include the svg code, or generate random avatars each time you reload.

Check it out with the documentation here: https://github.com/utkarshdubey/silhouette/

A live example has been hosted here:


Editor guide