Hashvatar

By Médhy Chabour

Deterministic avatars from any string—wallet, username, or hash—with gradient and dither modes, zero dependencies, plus React and vanilla JS APIs.

Hashvatar turns a stable input into a recognizable mark: radial gradient blends or Bayer halftone dithering, optional animation, and palette restrictions via hex, OKLCH, or CSS color names. The demo site shows the library in action; the npm package ships TypeScript with no runtime deps, useful for Web3 profiles, comment threads, or anywhere Gravatar-style identity needs a lighter, brandable twist.

Tags

AvatarsGenerativeTypeScriptReactCanvasOpen source