Skip to content

👤 A simple API built with Bun.js to generate SVG avatars based on initials and background color.

Notifications You must be signed in to change notification settings

maciekt07/InitialsAvatarApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

initials-avatar

usage

  • URL Parameters:

    • i=[string] (optional) - Initials to generate the avatar. If not provided, it will be derived from the name parameter.
    • name=[string] (optional) - Name to generate initials for the avatar.
    • clr=[string] (optional) - Background color of the avatar in hexadecimal format (default: 595959).

example usage

<img src="{URL}/?name=John+Doe&clr=854BFF" />

preview

To install dependencies:

bun install

To run:

bun run index.ts

This project was created using bun init in bun v1.1.0. Bun is a fast all-in-one JavaScript runtime.

About

👤 A simple API built with Bun.js to generate SVG avatars based on initials and background color.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published