Egge's avatar
Egge
egge@npub.cash
npub1mhcr...c226
Building https://npub.cash πŸ₯œ Working on awesome nostr, cashu and Lightning stuff πŸ’œβš‘οΈ
Egge's avatar
Egge 1 year ago
Web Components are a rabbit hole… thanks @Leito πŸ™„
Egge's avatar
Egge 1 year ago
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
Egge's avatar
Egge 1 year ago
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! πŸ₯œ πŸ”₯ image
Egge's avatar
Egge 1 year ago
⚑πŸ₯œ 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:
Egge's avatar
Egge 1 year ago
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.
Egge's avatar
Egge 1 year ago
New docs, whoβ€˜s dis? image
Egge's avatar
Egge 1 year ago
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. image
Egge's avatar
Egge 1 year ago
They do it right πŸ•ŠοΈ image
Egge's avatar
Egge 1 year ago
πŸ₯œπŸ’œ πŸ’΅πŸ’© image
Egge's avatar
Egge 1 year ago
I never thought I’d enjoy being a library dev, but here I am πŸ₯œ
Egge's avatar
Egge 1 year ago
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.
Egge's avatar
Egge 1 year ago
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). image
↑