-

@ greenart7c3
2025-05-01 20:37:52
web app? the easy way is using https://github.com/nostrband/nostr-login or https://github.com/fiatjaf/window.nostr.js for using with remote login (bunker)
You can use or copy this library https://github.com/hzrd149/applesauce/blob/master/packages/signers/src/signers/amber-clipboard-signer.ts from nostr:nprofile1qy2hwumn8ghj7erfw36x7tnsw43z7un9d3shjqpqt228kfsq8h6ellckufmkg2g04sz8vw60vvpy3k8uslefm02xmu2qag9jc0 if you just want to call amber and dont care about remote login. The downside of this one is that you need the clipboard access and if you need to decrypt or sign a lot of things it will open amber every time with no way of calling it in background like native apps or remote login