Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Add filters to fetcher #22

Open
abhay-raizada opened this issue Apr 18, 2024 · 3 comments
Open

Add filters to fetcher #22

abhay-raizada opened this issue Apr 18, 2024 · 3 comments

Comments

@abhay-raizada
Copy link

Hello Team,

It'd be great to have an optional feature to fetch events only based on specified filters instead of fetching everything on nostr, it would enable the caching service to be hosted on smaller hosts, and only for usecase specific tasks, IMO it would make it very versatile.

Are there any plans to do this? I can help contribute to this area as well.

@pritk
Copy link
Member

pritk commented Apr 18, 2024

hi, filters for fetching are specified here:

for qparams in [(;),
(; authors=[(@sprintf "%02x" i) for i in 0:255])]

@abhay-raizada
Copy link
Author

yes, but this is only author right? do you mean i can add new filters here?

@pritk
Copy link
Member

pritk commented Apr 18, 2024

yes, this is place in code where you can add different filters if you want.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants