Damus
arfonzo profile picture
arfonzo
Lately I have been coding and adding features over time to a comprehensive #strfry relay plugin. I've coined my system FAPS: the Friendly Anti-Prick System. :MEOWDY:



The beauty of the strfry plugin architecture is live updates: no need to restart strfry on any changes. It's allowed me to handle things like: illegal content, spam, abuse, DDoS attacks, and more. :YesYes:

... all within a single plugin. So far, it can:

- Blacklist accounts.
- Blacklist phrases: strings and regexes supported.
- Blacklist kinds: reject any kinds you want, useful during DDoS attacks.
- Supports minimum POW difficulty enforcement for all users.
- Supports unique POW difficulty for individual accounts. You can add individual accounts with their own POW difficulty threshold.

It continues to be put through the paces--it's currently day 3 of being DDoS'd and the superfriends relay continues to serve the public unabated, zero downtime, no latency. :meow_heart_bongo:

And no, it wasn't vibe-coded. I prefer to hand-code where high throughput and extreme optimization are required!

One day I'll open source and release it, when the feature creep settles and I'm happy that the code is optimized enough. It already filters thousands of events a minute without really stressing the server, but I'm a stickler for performance and improvement.

#relays #nostrdev #dev