-

@ Egge
2025-03-10 15:59:24
I just released the first version of almnd, a npm package for throttled communication with Cashu mints.
Almnd will schedule and reschedule mint calls with appropriate timings and backoffs, making sure that you can talk to mints, without having to worry about spamming them (and getting rate limited).
https://m.primal.net/Paww.png
The first version focuses on minting. Other methods will be added soon(tm). I built this with npub.cash in mind. I think the most appropriate use case is services that have to deal with a lot of pending state over long periods of times. For most wallets I would recommend looking into Cashu's WebSocket protocol.
Library: https://www.npmjs.com/package/almnd