A Bluesky Zcash feed algorithm

I have fallen down the bluesky/atprotocol rabbit hole lately. Did’s, vc’s, dwn’s and distributed systems are becoming more and more relevant to my day job.

Imho the coolest feature on the platform is the ability to make custom feeds from the global firehose. It is the bring your own algorithm feature that lets you find posts that fit your niche and create community’s.

I wanted a way to find people posting about Zcash, so I made The Zcash Zeal
Follow along and let me know how I could make it better. :zebra:

How it works

  1. Take the last 24 hours of posts from the entire network as input

  2. Remove any posts that are in ‘hellthread’ aka spam

  3. Target posts and images that fit this pattern (Explained below):

(?i)\b(zcash|zec|shielded\s+transaction|privacy\s+coin|transparent\s+address|viewing\s+key|zk\s*(snark|proof|protocol)|halo\s*2|zcash\s+foundation|electric\s+coin\s+company|zecwallet|zcashd|(orchard|sapling)\s+(pool|transaction))\b

  1. Remove all the posts about Halo the video game:

(?i)\b(video\sgame|xbox|master\schief|multiplayer|fps|halo\s+2\s+campaign|bungie|343\s*industries|gaming|gameplay|console)\b

  1. Look through a list of accounts I have been adding people who i know from twitter and the forum for posts within the last 7 days (lmk if you want to be added or removed)

  2. Remember if the post has been shared recently

  3. Use the HN algorithm with a gravity of 2.2 to sort the list

What does the regex do:

  • (?i): Makes the regex case-insensitive.
  • \b: Ensures the match is for whole words (prevents matching substrings within larger words).
  • The main section contains terms commonly associated with Zcash, separated by | (OR operator):
  • zcash, zec: Matches the cryptocurrency’s name and ticker symbol.
  • shielded\s+transaction: Matches phrases about shielded transactions.
  • privacy\s+coin: Matches the concept of privacy coins.
  • (orchard|sapling)\s+(pool|transaction): Matches Zcash upgrade names transactions and pools.
  • transparent\s+address: Matches mentions of transparent addresses.
  • viewing\s+key: Matches Zcash’s viewing key concept.
  • zk\s*(snark|proof|protocol): Matches mentions of zk-SNARKs or related terms.
  • halo\s*2: Matches mentions of Halo 2.
  • zcash\s+foundation, electric\s+coin\s+company: Matches Zcash’s supporting organizations.
  • zecwallet, zcashd: Matches commonly used Zcash software.
7 Likes

could add wallets?
zashi, ywallet, zingo, zaino, ezcash maybe?

2 Likes

updated with the wallets now

2 Likes