- Python 46%
- JavaScript 41.9%
- CSS 8.5%
- HTML 3%
- XSLT 0.4%
- Other 0.2%
|
|
||
|---|---|---|
| services | ||
| src | ||
| systemd | ||
| .gitignore | ||
| deploy.sh | ||
| LICENSE | ||
| README.md | ||
Skylens
Who blocked you on Bluesky? Skylens shows blocks, moderation lists, list subscriptions and identity history for any Bluesky account. It runs at skylens.redflag.ps. This repository publishes the code behind the site for transparency.
Deutsch: Skylens zeigt für jeden Bluesky-Account, wer ihn blockt, wen er
blockt, auf welchen Moderationslisten er steht und wie sich Handle und Server
verändert haben. Die Seite ist zweisprachig (englisch unter /, deutsch unter
/de/).
What it shows
- Per account: who blocks it, whom it blocks, its latest posts, the lists it is on, the lists it owns or subscribes to, labels, verifications, repository size and the handle/PDS history from the PLC directory.
- Per list: members and every account that subscribes to the list as a block.
- Network pages: block activity, new identities and moves between servers, PDS servers, the largest moderation lists, labelers and feeds.
Everything shown is public data of the AT Protocol. Mutes are private and cannot be seen by anyone, including Skylens.
Privacy
There is no login, no cookies and no tracking. A search lives in the URL
fragment (#/handle), so it never reaches the server log. Most lookups are made
by the visitor's browser directly against public.api.bsky.app,
plc.directory and the account's own PDS. Queries to the Skylens index are not
logged. Posts of accounts that do not want to be seen by logged-out users are
not shown.
How it is built
No framework, no bundler, no database server, no container. The only
dependency outside the Python standard library is python3-websockets, used
for the Jetstream connection.
| Part | What | Where |
|---|---|---|
| Website | plain JavaScript, HTML and CSS, built into static files by build.py |
src/ |
| Services | Python scripts that write SQLite databases and JSON files | services/ |
| Glue | systemd units and timers | systemd/ |
Services
| Service | Runs | Writes | Source |
|---|---|---|---|
skylens-collector |
permanently | stats.json |
Jetstream: blocks, lists, list subscriptions, posts |
skylens-plc |
permanently | netz.json |
PLC export: new identities, deletions, moves |
skylens-index |
permanently | index.sqlite |
Jetstream plus a one-time crawl of all repositories |
skylens-index-api |
permanently, four processes | nothing (read-only) | index.sqlite, served under /api/ |
skylens-pds |
hourly | pds.json |
relay listHosts |
skylens-verzeichnis |
every 6 hours | modlists.json, labelers.json, feeds.json |
relay, AppView, own index |
skylens-gesamt |
every 2 hours | alltime.json |
own index |
skylens-blockcrawl |
once, no longer used | blockcrawl.sqlite |
earlier one-time crawl of all blocks, superseded by skylens-index |
Each service owns exactly one database and is its only writer. Everyone else opens it read-only, which is why SQLite is enough. JSON files are written to a temporary file first and then renamed, so the web server never delivers half a file.
Own index
Blocks, list entries, list subscriptions and verifications are public records, but they are stored in the repository of the account that creates them. To answer "who blocks this account" someone has to collect them from every repository. Skylens keeps its own backlink index for that instead of relying on third-party services, and it reaches further back than indexes that only started recording in January 2025.
services/skylens-index.py builds and maintains it. It covers four collections,
app.bsky.graph.block, listitem, listblock and verification, and keeps
only the current state, not a history.
- repos: every account with at least one of these collections, from the relay.
- hosts: which PDS each account lives on.
- crawl: one rate-limited worker per PDS reads the records with
listRecords. The first build in October 2026 read about 3.6 million accounts. - finish: applies deletions seen during the build, creates the indexes and fills the counter tables.
From then on Jetstream keeps the index current, including account deletions and deactivations. Every step can be resumed after an interruption, and Jetstream events are collected from the start, so nothing is lost while the crawl runs. Operators of a PDS can read what the crawler does at skylens.redflag.ps/crawler.html.
Index API
services/skylens-index-api.py answers read-only queries under /api/. The
website uses it for the tabs "Blocked by", "On lists" and "Verification", for
the subscribers of a list and for the all-time rankings. Queries take a DID or
a list at-URI, handles are resolved by the browser. Requests under /api/ are
not logged.
| Endpoint | Returns |
|---|---|
/api/status |
phase, current step, record counts per collection, lag_seconds behind Jetstream |
/api/count?type=T&subject=S |
total and gone |
/api/list?type=T&subject=S[&limit=50][&cursor=C] |
records, newest first, up to 100 per page |
/api/top?type=blocked|listsubs[&n=100] |
most blocked accounts or most subscribed lists, up to 1000 |
type |
subject |
Meaning |
|---|---|---|
blockedby |
DID | accounts that block the subject |
onlists |
DID | lists that contain the subject (each record includes the list URI) |
verifiedby |
DID | accounts that verify the subject |
listsubs |
list at-URI | accounts that subscribe to the list as a block |
{"total": 10702, "gone": 31, "cursor": "5950562604134153960",
"records": [{"did": "did:plc:...", "rkey": "3m...", "time": "2026-10-29T02:47:35Z"}]}
total counts existing records, gone those of deleted accounts. time comes
from the record key. A record carries status (deactivated, takendown,
suspended or deleted) if its author is no longer active. Pass cursor to get
the next page. While the index is being rebuilt, count, list and top
answer with HTTP 503.
License
GNU Affero General Public License v3.0. If you run a modified version as a public website, you must publish your changes.
The Inter font in src/fonts/ is licensed under the SIL Open Font License,
see src/fonts/LICENSE-Inter.txt.