jacquard 0.12.2 only refreshes on a 401, but the PDS reports expiry as a 400 ExpiredToken, so DM polling failed after about two hours. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Canadian Cities Labeler
An atproto labeler that puts a Canadian city badge on accounts that ask for one over Bluesky DMs.
- Subscribe to
@cities.pds.cosocial.ca(the Subscribe button on its profile). - Follow it.
- DM it your city, e.g.
HalifaxorRichmond, BC. Sendremoveto clear it.
The labeler polls its DMs, matches the city against data/cities.json, and signs an account
label (e.g. halifax-ns), negating any previous one. Labels are stored in SQLite and served over
com.atproto.label.subscribeLabels and queryLabels.
Built on jacquard for atproto types and XRPC.
Local test
cp .env.example .env # set LABELER_APP_PASSWORD
cargo run --bin keygen # paste SIGNING_KEY_HEX into .env
cargo run # :4100
rust-toolchain.toml pins the Rust version; rustup installs it on first build.
The labeler account must allow DMs from everyone (Settings → Privacy and security → Chat).
DM it from a test account, then check
curl 'localhost:4100/xrpc/com.atproto.label.queryLabels?uriPatterns=<did>'.
Labels won't appear in the Bluesky app until the labeler is deployed publicly and its DID
document has the #atproto_label key and #atproto_labeler service.
First time setup
cargo run --bin setup -- declare # label definitions; gives the account a Subscribe button
cargo run --bin setup -- did # run after deploying; requires labeler account's main password + emailed code