New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@avatune/api-client

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@avatune/api-client

Typed API client for Avatune REST API

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
2
Created
Source

@avatune/api-client

npm version npm bundle size

Typed API client for Avatune REST API.

Installation

npm install @avatune/api-client

Usage

import { createClient } from '@avatune/api-client'

const client = createClient({
  apiKey: 'your-api-key',
})

// Generate avatar URL
const url = client.getAvatarUrl('kyute', {
  seed: 'user@example.com',
  hair: 'short',
  hairColor: '#ff6b6b',
})

// Or generate avatar as base64
const base64 = await client.getAvatarBase64('kyute', {
  seed: 'user@example.com',
})

API

createClient(config)

Creates an API client instance.

const client = createClient({
  apiKey: string      // Your Avatune API key
  baseUrl?: string    // Custom API base URL (optional)
})

client.getAvatarUrl(theme, params)

Returns a URL string for the avatar image.

client.getAvatarBase64(theme, params)

Returns the avatar as a base64-encoded string.

Supported Themes

  • kyute
  • nevmstas
  • micah
  • miniavs
  • pacovqzz
  • yanliu
  • fatin-verse

License

MIT

Keywords

avatune

FAQs

Package last updated on 11 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts