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.
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.
Thread collapsed
Thread collapsed