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

Support regular Nostr filters #13

Open
alexgleason opened this issue Dec 18, 2023 · 2 comments
Open

Support regular Nostr filters #13

alexgleason opened this issue Dec 18, 2023 · 2 comments

Comments

@alexgleason
Copy link
Contributor

If Primal's caching service could support regular Nostr filters, it would greatly increase its value. It would appeal to self-hosters who would install this as part of self-hosted Nostr infrastructure. The current filters work only with Primal apps.

@pritk
Copy link
Member

pritk commented Dec 21, 2023

you are right. most of currently supported filters in Primal caching service is specific to apps like existing Primal apps. but we can already imagine different nostr clients that can benefit from existing cache server API. otoh we decided to use one of the best software for relay functionality in our system. so we are looking at this as combination of the best options for each aspect of the system (relaying: strfry, caching: primal caching service).

@alexgleason
Copy link
Contributor Author

How about search? I can see the cache service accepts this: {"cache":["user_search",{"query":"alex","limit":10}]}

It could easily support NIP-50 search, making it usable by clients as a dedicated Search relay.

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