Replying to Avatar hzrd149

nostr:npub1mhcr4j594hsrnen594d7700n2t03n8gdx83zhxzculk6sh9nhwlq7uc226 we need to talk. I've been wanting something like this for my nostr SDK applesauce.

Id love to see how your doing things and if there is some way NIP-60 and nostr events could be used as a backend

Lets go then! The code from the image is using a library that I have been secretly grinding my gears on for a while now. It is basically an abstraction on top of cashu-ts that includes logic for managing state.

It is designed fully modular, requiring consumers to pass in a repository class that takes care of persistence. So if we can write an adapter for CRUD operations using nostr I see no issue in this at all.

Reply to this note

Please Login to reply.

Discussion

Is it tied to react is any way or are these just react hooks you made for it? If we can get NIP-60 support id like to be able to run it in a backend like bun or deno

The lib is structured in multiple packages. The core package is built to run anywhere.

I only recently started writing this, so its very very early. But the goal is that this can be used to quickly add cashu wallets to any JS environment, without any hassle.

I'll make sure to send you a repo link asap.

nostr:npub1ce7d8cdg8k49dnl3da34mvhah8kevxfsq2vdguq6trngapqfsdzsnv3d7m sounds a lot like what we where thinking about building :)