Would it not be amazing if there was an easy way to support the people that build the libraries that we use everyday? And what about the dependencies of those libraries? Introducing: npmnut - a simple "protocol" and cli-tool to advertise donation addresses and send donations to package developers! The CLI tool parses your npm modules and looks for "npmnut" keys in their package.json files. These are supposed to be nprofiles of the developers. It then mints some Nuts from a preferred mint and sends them via DM to the developers of the package. Because sending tokens is quite lean, this works for direct dependencies and transitive dependencies and is quite fast. I got inspired to build this by @hzrd149! I hacked this together over the last few hours, so there is still a lot of work to be done. I'll publish the code in a repo later today.
Can someone hook me up with one of these Bitcoinize Printer POS devices? I’d love to build some Cashu Stuff with it, but they seem to be out-of-stock :/
What programming language to learn next?
Playing around with Nutjar is just too much fun! Here is the most minimal example of a Lightning donation page: image Code:
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: image
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 πŸ”₯
Alright, couple of fixes later the nutjar.js demo page is deployed: 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: image