I’m fetching it from the relays directly. Just that instead of putting the fetching within the client, I’m putting these fetches as GET endpoints and use them for the client.

Currently it isn’t this way, it’s like what you mentioned, “using relays directly from the client”.

Refracting the code to use GET endpoints, will allow client to use react queries, and fetch data as and when needed with parameters.

What your concern about?

Reply to this note

Please Login to reply.

Discussion

Centralization.

Lack of user control.

You should make it clear to your users they are not using a nostr client then 😉

Those codes will be open source. People can see what each endpoints is doing, that is, simply just get information and pass along. Don’t think it’s centralised just because they are calling a http request. I see this as a community service actually, as reworking the codes and packaging them nicely is not as straightforward as just directly using NDK and nostr tools for my own usage.

nostr:note17fzhzsr5fvmjf0c2kzfp70fsqzm7zl3jeecr9fmmhgja0tjsegyq86vvcn

Always bet on REST