would be cool to implement a smol reactive lisp in grimoire so you can run scripts like:

;; Who do my friends follow that I don't?

(def friends-of-friends

(->> $contacts ; people I follow

(req :k 3 :a) ; their contact lists

(tags :p) ; who they follow

(diff $contacts) ; remove people I already follow

(diff #{$me}))) ; remove myself

;; See their recent posts

(req :k 1 :a friends-of-friends :l 50 :since 7d)

and get a custom feed. you can calculate rankings, pubkey sets, relay sets, etc. and the UI can show the right component for result. computed locally. shareable as nostr events.

Reply to this note

Please Login to reply.