Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/maciekt07/initialsavatarapi

👤 A simple API built with Bun.js to generate SVG avatars based on initials and background color.
https://github.com/maciekt07/initialsavatarapi

avatar avatar-generator avatar-maker bun bun-api bunjs initial

Last synced: 11 days ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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

```html

```

## preview

To install dependencies:

```bash
bun install
```

To run:

```bash
bun run index.ts
```

This project was created using `bun init` in bun v1.1.0. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.