Production-ready Astro package
Astro-native Gravatar components for production sites
Ship avatars, profile cards, and QR codes in Astro with clean components, fast setup, and production-ready defaults.
bun add astro-gravatar- Astro 4-6
- TypeScript ready
- Bun-first
- MIT licensed
Why Astro Gravatar
Section titled “Why Astro Gravatar”Built for fast adoption
Astro-native API surface
Use focused components and utility helpers without wrapping another client-side widget layer.
Production-friendly defaults
Lazy loading, responsive imagery, and clean fallback behavior come out of the box.
Profile-aware when you need it
Stay lightweight for simple avatars, or pull richer profile information for cards and links.
Bun-first workflow
The package, docs, and release flow stay aligned with the Bun-based monorepo that ships it.
The three components that carry the package
Section titled “The three components that carry the package”Compact, reliable avatar rendering
Render avatars with sensible defaults, fallback modes, and responsive sizing in a single line.
Profile cards without extra plumbing
Surface a public profile, avatar, and supporting details with one Astro component.
Junglei Kim
QR codes that stay on-brand
Generate shareable profile QR codes with icon styles and campaign parameters when you need them.
Adopt it in about 30 seconds
Section titled “Adopt it in about 30 seconds”Minimal setup
Install, import, render.
- Install the package in your Astro project.
- Import the component you need in a page or content module.
- Pass an email and style it like the rest of your site.
---
import GravatarAvatar from 'astro-gravatar';
---
<GravatarAvatar email="user@example.com" size={80} class="rounded-full" />Start from the right doc
Section titled “Start from the right doc”Support and operating links
Section titled “Support and operating links”Need help or want to verify the package?