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

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 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