Fallback Avatar
Renders a gradient avatar based on a name string. It generates unique colors and visual patterns using hash calculations. The avatar is displayed as a canvas element. Use it when a user's profile picture is unavailable.
Loading preview
Installation
terminal
npx layro-cli add @xxtomm/fallback-avatar
npx layro-cli add @xxtomm/fallback-avatar
bunx layro-cli add @xxtomm/fallback-avatar
New project? Start with init. Writes third-party code and installs packages with scripts off.
Code
Sign in to see the code
Free, with GitHub, Google or email. The install command above works without an account.
Sign inVersions
1.0.0 · current
Nov 7, 2026
First release.







