cloudflare worker that uses records from atpr.to as a personal go links server forked from tyler.fun/atprto-worker-template
Files
README.md

atproto golinks cloudflare worker #

A "golinks"-esque server running on Cloudflare Workers, backed by atpr.to records. Manage your links at atpr.to, and this worker serves them as short redirects from your own domain.

How it works #

  • Requests to yourdomain.com/slug redirect to the URL stored in your ATProto PDS
  • Links are cached in a Durable Object for fast lookups and synced in the background
  • The homepage at yourdomain.com/ shows your site name

Setup #

1. Fork this Repo #

2. Configure #

Edit wrangler.toml and fill in the [vars] section:

Variable Description Example
DID Your AT Protocol DID did:plc:abc123...
PDS Your PDS URL https://bsky.social
SITE_NAME Name shown on homepage go.example.com
COLLECTION Link collection lexicon (usually leave as default) to.atpr.link

To find your DID: look up your handle at web.plc.directory.

Head to atpr.to to create and manage your golinks.

4. Deploy to Cloudflare #

pnpm run deploy

5. Add a custom domain (optional) #

In the Cloudflare dashboard, go to your Worker's settings and add a Custom Domain (e.g. go.example.com).