# avatar

avatar is a small service that fetches your pretty Bluesky avatar and caches it on Cloudflare.
It uses a shared secret `AVATAR_SHARED_SECRET` to ensure requests only originate from the trusted appview.

Set `PLC_DIRECTORY_URL` to resolve DIDs somewhere other than <https://plc.directory>,
which a self-hosted network needs.

It's deployed using `wrangler` like so:

```
npx wrangler deploy
npx wrangler secrets put AVATAR_SHARED_SECRET
```
