https://github.com/xeven777/xvatar
✨ Create unique gradient avatars based on usernames! 🎨🚀 Customize with color schemes, sizes (20-240px), roundness (0-120px), and gradient styles (radial/linear). 🎯 Available in SVG/PNG formats with text or initials. Consistent results for the same username.🌟
https://github.com/xeven777/xvatar
Last synced: 7 months ago
JSON representation
✨ Create unique gradient avatars based on usernames! 🎨🚀 Customize with color schemes, sizes (20-240px), roundness (0-120px), and gradient styles (radial/linear). 🎯 Available in SVG/PNG formats with text or initials. Consistent results for the same username.🌟
- Host: GitHub
- URL: https://github.com/xeven777/xvatar
- Owner: Xeven777
- Created: 2025-02-24T16:14:07.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2025-02-26T06:19:43.000Z (7 months ago)
- Last Synced: 2025-02-26T07:24:41.680Z (7 months ago)
- Language: TypeScript
- Homepage: https://xvatar.vercel.app
- Size: 466 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Xvatar 🎨    
Generate stunning gradient avatars with unique patterns for your applications! ✨
## Features 🚀
- 🌈 Unique gradient combinations based on username
- 🎭 Multiple color schemes (Complementary, Triad, Analogous)
- 📐 Adjustable roundness (0-120px)
- 📏 Custom size support (20-240px)
- 💫 Both radial and linear gradients
- 🎯 SVG format support with text/initials
- 🖼️ PNG format support
- 🔄 Consistent results for same usernames## Usage 📖
### Basic Usage 🌱
```
https://xvatar.vercel.app/api/avatar/username
```
### SVG with Initials ✍️
Add `.svg` extension and use the `text` parameter:
```
https://xvatar.vercel.app/api/avatar/username.svg?text=XA
```
### Custom Shape 🔷
Adjust the roundness (0-120):
```
https://xvatar.vercel.app/api/avatar/username?rounded=20
```
### Custom Size 📐
Change dimensions (20-240px):
```
https://xvatar.vercel.app/api/avatar/username?size=120
```
### User Logo Icon 👤
Add a user silhouette icon:
```
https://xvatar.vercel.app/api/avatar/cool.svg?userLogo=true
```
## API Parameters 🛠️
| Parameter | Description | Default | Range |
| ---------- | ------------------------ | ------- | ---------- |
| `rounded` | Corner radius in pixels | 120 | 0-120 |
| `size` | Image dimensions | 120 | 20-240 |
| `text` | Initials (SVG only) | - | 1-4 chars |
| `userLogo` | Add user silhouette icon | false | true/false |## Try It Out 🎮
Visit [xvatar.vercel.app](https://xvatar.vercel.app) to try the generator live!
## Built With 💪
- Next.js 14
- TypeScript
- Tailwind CSS
- shadcn/ui---
## 🖼️ Gallery
Here are some example avatars generated using Xvatar SDK:
### Default Avatars


### SVG with User Logo


### Different Shapes


### SVG with Text


Made by [Anish Biswas](https://anish7.me) with ❤️