Pronouns labels on Bluesky
1## Configuration
2
3Run `npx @skyware/labeler setup` to convert an existing account into a labeler.
4
5Create a `.env` file:
6
7```Dotenv
8DID = "did:plc:xxx"
9SIGNING_KEY = "xxx"
10RELAY = "ws://localhost:6008/subscribe?wantedCollections=app.bsky.feed.like"
11```
12
13See [jetstream](https://github.com/ericvolp12/jetstream) for more informations on how to host your own relay stream, otherwise use an existing one.
14
15A `cursor.txt` also needs to be present. It can be left empty, and will update the file every minute with a new cursor.
16
17Create labels with `npx @skyware/labeler label add` and edit `src/constants.ts` with the related post rkeys and label IDs.
18
19The server has to be reachable outside your local network using the URL you provided during the account setup (typically, using a reverse proxy such as [Caddy](https://caddyserver.com/)):
20
21```Caddyfile
22labeler.example.com {
23 reverse_proxy 127.0.0.1:4001
24}
25```
26
27## Installation & Usage
28
29```sh
30npm i
31```
32
33```sh
34npm start
35```