Could this be useful?…

Feb 17, 2023

Could this be useful?

https://spam.nostr.band/spam_api?method=get_current_spam

I collect events from all relays for the last hour, group events w/ common words/ngrams, find clusters of >100 events.

This API prints the stop-words for big clusters - if event contains all of words, it's most likely spam. Relays/clients could proactively match new events against these words, or periodically delete specific events/pubkeys.

Was playing with this today, will be using in my relay. It's updated close to real-time.

Also
https://spam.nostr.band/spam_api?method=get_current_spam&view=pubkeys
https://spam.nostr.band/spam_api?method=get_current_spam&view=events - BIG!

brugeman

Building https://npub.pro https://nostr.band and https://nsec.app Create beautiful nostr-based websites with Npub.pro