Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants