primal-caching-service icon indicating copy to clipboard operation
primal-caching-service copied to clipboard

Support regular Nostr filters

Open alexgleason opened this issue 2 years ago • 2 comments

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.

alexgleason avatar Dec 18 '23 21:12 alexgleason

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

pritk avatar Dec 21 '23 22:12 pritk

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.

alexgleason avatar Jan 02 '24 04:01 alexgleason