digi-monkey / flycat-web

nostr client to Exit Toxic Internet
http://flycat.club/
MIT License
74 stars 17 forks source link

enable custom feed #230

Open digi-monkey opened 1 year ago

digi-monkey commented 1 year ago

this feature is to allow users providing a custom script to construct a custom feeds to read.

the script is something like this:

interface CustomFeedScript {
  label: string
  key: string
  filter: async (myPublickey: string, worker: CallWorker) =>  Filter
  isValidEvent: (event: Event) => boolean
}

another interesting idea is to store this script as some sorts of codes on relay and client can fetch and executing it

digi-monkey commented 1 year ago

first stage

digi-monkey commented 1 year ago

second stage

digi-monkey commented 9 months ago