A tool for parsing traffic on the jetstream and applying a moderation workstream based on regexp based rules
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

TypeScript 72.8%
JavaScript 6.3%
Dockerfile 0.7%
Other 20.2%
65 11 17

Clone this repository

https://tangled.org/skywatch.blue/skywatch-automod https://tangled.org/did:plc:e4elbtctnfqocyfcml6h2lf7/skywatch-automod
git@tangled.org:skywatch.blue/skywatch-automod git@tangled.org:did:plc:e4elbtctnfqocyfcml6h2lf7/skywatch-automod

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md

skywatch-tools#

This is a rewrite of the original skywatch-tools project in TypeScript. The original project was written in Bash. The purpose of this project is to automate the moderation by the Bluesky independent labeler skywatch.blue

Installation and Setup#

To install dependencies:

bun i

Modify .env.example with your own values and rename it to .env

bun run start

To run in docker:

docker build -pull -t skywatch-tools .
docker run -d -p 4101:4101 skywatch-autolabeler

Brief overview#

Currently this tooling does one thing. It monitors the bluesky firehose and analyzes content for phrases which fit Skywatch's criteria for moderation. If the criteria is met, it can automatically label the content with the appropriate label.

In certain cases, where regexp will create too many false positives, it will flag content as a report against related to the account, so that it can be reviewed later.

For information on how to set-up your own checks, please see the developing_checks.md file.

TODO:

  • Remove unused types
  • Update the types needed to be more specific to the checks rather than bluesky content types
  • Consider how to write directly to OzonePDS database rather than using the API. May require running the same instance as Ozone to allow for direct database access.
  • Add compose.yaml for easy deployment
  • Make the metrics server work (or remove it)

Create a seperate program to watch OZONE_PDS firehose labels, and update the lists as needed. This will remove dependency on broken ruby tools created by aegis.