@san

It's open source, so you can read the code here:

github.com/bluesky-social/atpr