api-indieweb-avatar
api-indieweb-avatar copied to clipboard
Return an optimized avatar image from a domain name input.
trafficstars
IndieWeb Avatar API
A runtime service to extract avatar images from:
<link rel="apple-touch-icon"><link rel="apple-touch-icon-precomposed"><link rel="icon">favicon.ico(added September 20, 2021)favicon.icothat isn’t an.icofile (added December 1, 2023)- First
<img>in<header>(added December 1, 2023) - TODO: Support Data URIs in attribute values. (e.g. https://joshcrain.io)
- TODO:
<link rel="mask-icon"> - TODO (maybe):
<link rel="manifest"> - TODO (maybe):
<meta name="msapplication-config">
All rel lookups match against attribute values that are space separated lists.
This is using Netlify’s On Demand Builders so that only one request is made to each URL independent of how many requests are made the service.
Usage
URLs have the formats:
/:url/
urlmust be URI encoded.