Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 5 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 3 years ago)
- Default Branch: v1-vercel
- Last Pushed: 2024-08-07T15:36:03.000Z (6 months ago)
- Last Synced: 2024-10-29T15:44:53.383Z (3 months ago)
- Topics: eleventy, eleventy-api
- Language: JavaScript
- Homepage: https://v1.indieweb-avatar.11ty.dev/
- Size: 34.2 KB
- Stars: 65
- Watchers: 5
- Forks: 11
- Open Issues: 6
-
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.