Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

11ty Logo

# 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.