https://github.com/11ty/api-indieweb-avatar
Return an optimized avatar image from a domain name input.
https://github.com/11ty/api-indieweb-avatar
eleventy eleventy-api
Last synced: 21 days ago
JSON representation
Return an optimized avatar image from a domain name input.
- Host: GitHub
- URL: https://github.com/11ty/api-indieweb-avatar
- Owner: 11ty
- Created: 2021-09-19T20:01:08.000Z (over 4 years ago)
- Default Branch: v1-vercel
- Last Pushed: 2025-03-27T17:39:32.000Z (12 months ago)
- Last Synced: 2025-10-13T06:22:58.845Z (5 months ago)
- Topics: eleventy, eleventy-api
- Language: JavaScript
- Homepage: https://v1.indieweb-avatar.11ty.dev/
- Size: 39.1 KB
- Stars: 67
- Watchers: 4
- Forks: 10
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# IndieWeb Avatar API
A runtime service to extract avatar images from:
1. ``
1. ``
1. ``
1. `favicon.ico` (added September 20, 2021)
1. `favicon.ico` that isn’t an `.ico` file (added December 1, 2023)
1. First `
` in `` (added December 1, 2023)
1. TODO: Support Data URIs in attribute values. (e.g. https://joshcrain.io)
1. TODO: ``
1. TODO (maybe): ``
1. TODO (maybe): ``
All `rel` lookups match against attribute values that are space separated lists.
Update July 22, 2024: Supports `svg` favicons but converts to `png` for performance reasons (some folks had _huge_ SVG favicons).
## Usage
URLs have the formats:
```
/:url/
```
* `url` must be URI encoded.