jiftechnify / nostr-fetch

A utility library that allows JS/TS apps to effortlessly fetch past events from Nostr relays.
MIT License
44 stars 2 forks source link

API redesign #254

Open jiftechnify opened 3 months ago

jiftechnify commented 3 months ago

... any ideas?

dskvr commented 3 weeks ago

More intuitive filter syntax

On this note, it would definitely be better if it accepted a standard filter object and then nostr-fetch validated/extracted the prerequisite properties from the filter internally, as opposed to splitting the filter into filter and time-range

dskvr commented 3 weeks ago

Another thing that comes to mind is that the relaysUrl argument is unintuitive/confusing/unclear when using an adapter with an existing pool, for example NDK.