I have modularized the transport layer in nutjar.js so that you can now choose a different one, or implement the transport yourself!
If you don't want to receive Nutzaps, but instead a token via DM, the Nip17Transport is what you are looking for:
Getting breakfast for the family hits differently here…
Yesterday I wrote some code and got zapped. Today I spent it on breakfast. Nostr literally paid for my wife’s croissant 🤯 let that sink in 🔥
Nutjar.js is a library that wraps cashu and nostr in order to enable anyone to receive Lightning tips on the interwebs, without ANY setup or registration. Permissionless and censorship resistant.
The demo's code can be found on GitHub, but here is the core piece of code: