getAlby / js-sdk

JavaScript SDK for the Alby OAuth2 Wallet API and the Nostr Wallet Connect API.
https://npmjs.com/package/@getalby/sdk
62 stars 15 forks source link

Split NWC client and webln provider #182

Closed bumi closed 7 months ago

bumi commented 8 months ago

NWC and webln are not fully compatible. currently our NWC client is webln compatible which limits us using some NWC details

We should split this up and make a NWC client independent of WebLN.

Maybe we make a NWC class and the NWC webln provider inherits from that one?

rolznz commented 8 months ago

Or @bumi 's other suggestion:

maybe have a NWC client and a NWC WebLN Provider uses that and returns the webln required data.