facehash

Generates beautiful minimalist avatars from any string in React and Next.js. Use when the user wants to add avatars, user icons, or profile pictures to their React or Next.js application using the FaceHash library.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "facehash" with this command: npx skills add berkay-digital/skills/berkay-digital-skills-facehash

FaceHash

FaceHash is a library for generating deterministic, beautiful, minimalist avatars from any string. It features zero dependencies, pure CSS 3D effects, and is fully typed.

Installation

npm i facehash
# or
yarn add facehash
# or
pnpm add facehash
# or
bun add facehash

Usage

Basic Component

import { Facehash } from "facehash";

// Basic usage
<Facehash name="username" />

Props

PropTypeDefaultDescription
namestring(Required)The string to generate the hash from.
sizenumber64Size of the avatar in pixels.
colorsstring[]randomArray of hex color codes (e.g., ["#264653", "#2a9d8f"]).
intensity3d'none' | 'subtle' | 'medium' | 'dramatic''medium'Intensity of the 3D effect.
variant'gradient' | 'solid''gradient'Visual style variant.
enableBlinkbooleanfalseEnables a blinking animation.
showInitialbooleanfalseOverlay the first letter of the name.
onRenderMouth() => ReactNodeundefinedCustom component for the mouth area.
classNamestringundefinedCustom CSS class.

Examples

// With size and custom colors
<Facehash
  name="alice"
  size={128}
  colors={["#264653", "#2a9d8f", "#e9c46a"]}
/>

// With blinking animation and subtle 3D effect
<Facehash
  name="bob"
  enableBlink
  intensity3d="subtle"
/>

// Solid variant with initial
<Facehash
  name="charlie"
  variant="solid"
  showInitial
/>

Next.js Route Handler

To serve avatars as images (PNG) via a Next.js App Router route handler:

// app/api/avatar/route.ts
import { toFacehashHandler } from "facehash/next";

export const { GET } = toFacehashHandler();

Usage: /api/avatar?name=someName

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Find Skills for ClawHub

Search for and discover OpenClaw skills from ClawHub (the official skill registry). Activate when user asks about finding skills, installing skills, or wants...

Registry SourceRecently Updated
2771Profile unavailable
General

Skill Listing Polisher

Improve a skill's public listing before publish. Use when tightening title, description, tags, changelog, and scan-friendly packaging so the listing looks cl...

Registry SourceRecently Updated
1130Profile unavailable
General

Skill Priority Setup

Scans installed skills, suggests L0-L3 priority tiers, and auto-configures skill injection policy. Use when: setting up skill priorities, optimizing token bu...

Registry SourceRecently Updated
2500Profile unavailable
General

Skill Quick Index

Build a wide-trigger, precise-match index for local OpenClaw skills (L1-L3), then quickly route by intent/category/keywords.

Registry SourceRecently Updated
2380Profile unavailable