cloudflare worker that uses records from atpr.to as a personal go links server
TypeScript 100.0%
4 1 0

Clone this repository

https://tangled.org/tyler.fun/atprto-worker-template https://tangled.org/did:plc:4gt3dbmp4pydjiemob4konzm/atprto-worker-template
git@tangled.org:tyler.fun/atprto-worker-template git@tangled.org:did:plc:4gt3dbmp4pydjiemob4konzm/atprto-worker-template

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
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).