A comprehensive utility API server with powerful avatar generation, supporting REST and GraphQL
Generate beautiful avatars with multiple strategies: third-party services, local algorithms, or smart auto-selection with fallbacks.
/api/avatar?seed=demo-user&strategy=auto&size=128&colors=brightUpdates automatically as you change settings
Smart fallback system that tries services → local → algorithms for best results.
High-quality avatars from Gravatar, RoboHash, DiceBear, Boring Avatars & UI Avatars.
Four local generation methods: Static files, Enhanced templates, AI personas, and Database collections.
Fast, consistent avatars generated locally: Identicon, Blockies, and Gradient styles.
# Basic usage GET /api/avatar?seed=user@example.com # With specific strategy and options GET /api/avatar?seed=john.doe&strategy=algorithm&type=identicon&size=128&colors=bright # Using service provider GET /api/avatar?seed=alice&strategy=service&serviceType=uiavatars&size=64 # Using local generation types GET /api/avatar?seed=persona&strategy=local&localType=ai&size=128
POST /api/avatar
Content-Type: application/json
{
"seed": "user@example.com",
"strategy": "local",
"localType": "ai",
"cat": "professional",
"colorScheme": "pastel",
"size": 128,
"format": "svg"
}// Simple image element
const avatarUrl = '/api/avatar?seed=' + encodeURIComponent(userEmail);
const img = document.createElement('img');
img.src = avatarUrl;
img.alt = 'User Avatar';
// React component
function UserAvatar({ email, size = 64 }) {
const avatarUrl = `/api/avatar?seed=${encodeURIComponent(email)}&size=${size}`;
return <img src={avatarUrl} alt="Avatar" width={size} height={size} />;
}Calculate text statistics, word counts, character analysis
/api/utils/text-lengthParse URLs, extract components, validate domains
/api/utils/url-parseFormat dates, timezone conversion, relative time
/api/utils/date-formatOptimized for performance with smart caching
Automatic fallback between strategies
5+ avatar providers, 4 local types, and 3 algorithms
Extensive customization options
Support for multiple API paradigms
Full TypeScript support and validation