Skip to content

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.

bytomfrom Spell

Loading preview

Installation

terminal
pnpm dlx layro-cli add @xxtomm/fallback-avatar

New project? Start with init. Writes third-party code and installs packages with scripts off.

Code

Demo

Sign in to see the code

Free, with GitHub, Google or email. The install command above works without an account.

Sign in

Versions

  1. 1.0.0 · current

    Nov 7, 2026

    First release.

Similar components