analysis of atproto data + the most-liked-accounts web app (atproto.commoninternet.net)
README.md

notplants-atproto #

Rank the accounts a Bluesky user has liked the most, from their public repo — no login needed. Live at https://atproto.commoninternet.net.

run locally #

python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

# web UI on http://127.0.0.1:8000
.venv/bin/python app.py --serve

# or one-shot CLI
.venv/bin/python app.py notplants.bsky.social
.venv/bin/python app.py <handle-or-profile-url> 50 --markdown out.md --json out.json

# or docker, as production runs it (serves on 127.0.0.1:8731)
docker compose up --build

Tests:

.venv/bin/pip install -r requirements-dev.txt
.venv/bin/python -m pytest        # ~140 tests, ~2s, no network

how it works #

Every public app.bsky.feed.like record embeds the liked post's AT-URI, whose authority component is the author's DID — so the whole ranking comes from paginating com.atproto.repo.listRecords against the user's PDS. The web UI scans in the background while a loading page grows one ASCII flower per 0.1% of progress (websocket, with polling fallback), then caches the finished page on disk as a static file until &refresh=1 rebuilds it.

Path What
app.py entrypoint — --serve for the web UI, positional args for the CLI
atlikes.py the analysis: resolution, repo scan, ranking, progress
jobs.py / pagecache.py background scans / on-disk page cache
tests/ pytest suite (fake PDS/AppView in tests/conftest.py)
nix/atproto-likes.nix NixOS module for the production deploy
notes/ findings, deployment, security review