ATproto Tangled.sh RSS Generator

This worker generates RSS feeds for Tangled.sh repositories associated with a Bluesky handle. It queries the AT Protocol to resolve handles, fetches repository metadata, and outputs a sorted feed.

Key Features

  • Resolves Bluesky handles to decentralized identifiers (DIDs)
  • Aggregates repositories from Tangled.sh instances
  • Generates standards-compliant RSS 2.0 feeds with Atom extensions
  • Handles XML escaping and proper content-type headers

Usage

Example request:

curl https://hrbrmstr-tangledrss.web.val.run/hrbrmstr.dev

Sample output includes:

<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0"> <channel> <title>hrbrmstr.dev's Tangled Repos</title> <link>https://tangled.sh/@hrbrmstr.dev</link> <description>Repositories for hrbrmstr.dev</description> <atom:link href="https://hrbrmstr-tangledrss.web.val.run/hrbrmstr.dev" rel="self" type="application/rss+xml"/> <item> <title>headrs</title> <description>Add Believable, Randomized Headers To {httr} and {httr2} Requests</description> <link>https://tangled.sh/@hrbrmstr.dev/headrs</link> <pubDate>Wed, 26 Mar 2025 09:09:08 GMT</pubDate> <guid isPermaLink="true">https://tangled.sh/@hrbrmstr.dev/headrs</guid> </item> …