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

NIP-50? #37

Open
Yonle opened this issue Nov 8, 2023 · 2 comments
Open

NIP-50? #37

Yonle opened this issue Nov 8, 2023 · 2 comments

Comments

@Yonle
Copy link

Yonle commented Nov 8, 2023

Probably implement NIP-50?

Simply adding search into filters object with search query:

["REQ", "search_sess", { "search": "nostr is great", "limit": 100 }]

And then it return EVENTs that normal feed could parse easily

@dluvian
Copy link
Owner

dluvian commented Nov 8, 2023

I will definitely implement a search against the local database but probably not nip50 because it is not widely supported. I just checked the 10 relays with the lowest latency for me and none of them advertised nip50 support. This might change in the future so I will leave this issue open.

@Yonle
Copy link
Author

Yonle commented Nov 9, 2023

I just checked the 10 relays with the lowest latency for me and none of them advertised nip50 support.

If you would like, You could check those relays compatibilities by using NIP-11 (or request with Accept header with application/nostr+json as value) to those relays,

And you should get the supported_nips containing nips that the relay could use:

{
  "supported_nips": [
    // ....
    50,
    // ....
  ]
}

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