I can finally empty my nutsack π View quoted note β
Egge
egge@npub.cash
npub1mhcr...c226
Building https://npub.cash π₯ Working on awesome nostr, cashu and Lightning stuff πβ‘οΈ
Web Components are a rabbit holeβ¦ thanks @Leito π
Another day, another nutjar update!
nutjar-button v0.3 is a web component that lets you add Lightning Donation to your web page with close to 0 coding and configuration. All you need is a nostr key!
π₯ NIP-61 aka. Nutzaps using Cashu
π» Reusable Web Component
π¨ Theming and Customization
Okay, I tested the WC API and I love it.
nutjar-ui is going to be called "nutjar-button" and it is going to be a Web Component! π₯ π₯


β‘π₯ nutjar-ui let's you add Lightning Donations to any website with close to no setup at all.
It uses Cashu and NIP-61 under the hood to handle payments and send them to your nostr key. The component is hosted on a CDN and can be included using a single tag:
Nutzaps are going to be everywhere... Obviously on nostr apps, but also on the web π₯ π₯
Nutjar.js-button (working title) allows you to add Lightning donations to your website, without any coding, no wallet signup, heck you do not even need to know cashu. All you need is a nostr key.
New docs, whoβs dis? 

I was finally able to finish the first end-to-end test using the new output logic inside cashu-ts!!
In this pretty extensive test you can see the new factory approach. You will be able to provide a default factory function that is now applied to all the outputs that will be kept.


They do it right
ποΈ 

π₯π
π΅π© 

I never thought Iβd enjoy being a library dev, but here I am π₯
https://cashubtc.github.io/cashu-ts-docs/ π
Contributions welcome ππ₯
I hate these algorithms so much⦠a random image of a stone that looks like a human toe got put into my reddit feed and yes, I read through that post.
What I did not know, was that I unknowingly opted in for 5 days of super annoying recommendations of content from r/Rocks all over my feed.
Dear Nut-Connoisseurs π₯
Please join the Cashu Matrix Server π«‘
Also make sure to drop by the Cashu-ts room:
You're invited to talk on Matrix
You're invited to talk on Matrix
You're invited to talk on Matrix
You're invited to talk on Matrix
Cooking some pretty interesting stuff for cashu-ts right now! π₯
A soon to be released version will not only enable users to get full control over the outputs generated by a method, it also introduces the concept of "Output Factories" π π₯
An output factory describes how the library should generate outputs. The best part is, that users can now control the kind of output they want to receive, but still let the library handle splitting, amounts and fees. With a factory you will be able to instantiate a CashuWallet class that will make sure all change outputs that might be created by calling "send" or "mintProofs", will automatically be created using the factory you specified (e.g. locked to you pubkey).

