Something went wrong. Try again.
cdn.blueat.net is an alternative to the Bluesky CDN that's just as fast but powered by Cloudflare Workers with extra features. cdn.blueat.net
Something went wrong. Try again.
Files
- JavaScript 100%
README.md
cdn.blueat.net Worker (AT Protocol Image CDN) #
Cloudflare Worker that acts as a drop-in style replacement for Bluesky image CDN endpoints by proxying image blobs directly from a user's Personal Data Server (PDS). It resolves the PDS endpoint from the DID (supports did:web: and did:plc:) and then fetches the requested blob.
Quick deploy (to your own Cloudflare account) #
- Install Node.js (LTS).
- From this folder, run:
npm installnpm run deploy
- If prompted, run
wrangler login(Wrangler stores your auth token locally).
The included wrangler.toml deploys with workers_dev = true (so it will be reachable under your Worker subdomain). To serve the real domain (cdn.blueat.net), update wrangler.toml with your route and zone_id.
Configuration #
In wrangler.toml, you can change:
PLC_DIRECTORY: base URL used to resolvedid:plc:to a PLC document.CACHE_MAX_AGE_SECONDS: value used for theCache-Control: s-maxage=...header.
Local development #
npm run dev
Request format #
This worker expects paths like:
/img/{type}/plain/{did}/{cid}
Where {type} is typically avatar or banner. Example:
/img/avatar/plain/did:plc:exampleCid/ExampleImageCid
Notes #
- Results are cached via
caches.defaultand also includeCache-Controlfor downstream caching. - If the requested
avatar/bannerCID is missing, the worker tries to find the current CID from the profile record and retries once.