Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/maciekt07/initialsavatarapi
- Owner: maciekt07
- Created: 2024-05-16T16:17:42.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-16T16:38:01.000Z (8 months ago)
- Last Synced: 2024-12-18T17:13:19.972Z (11 days ago)
- Topics: avatar, avatar-generator, avatar-maker, bun, bun-api, bunjs, initial
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.