pull down to refresh

Hi,
I am a Web developer. I want to progressively integrate Nostr in all my projects, as an auth alternative in order to push it forward.

Do you have any advices, recommandations regarding the integration of zaps, auth and handling user roles with Nostr.
I know the policy is to store minimal informations.

Any suggestion or recommendation would be helpful.

My current stack is Angular for the client and Java SpringBoot for the backend.
I use Railway for hosting my services.

Thanks everyone in advance !

I haven't actually shipped anything with Nostr so take my advice with a grain of salt. But I have been experimenting with Nostr webapps every now and again. I've learned some things.

Forget about NIP-26. It sounds great in the spec, but none of the industry giants actually support it, and it's deprecated by Nostr devs. Use NIP-47 or some other auth NIP instead.

Easy mode, use a library like https://github.com/nbd-wtf/nostr-tools https://www.npmjs.com/package/nostr-login https://nostr-dev-kit.github.io/ndk/ https://github.com/fiatjaf/window.nostr.js

I was working on a Nostr integrated game awhile back. Looking at the dependencies, I used window.nostr.js, nostr-tools, and nostr-login. I can't remember if I'm actually using all those, or if I was experimenting with parts of them.

Anyway, the game had a nakama server, and I came up with a NIP-98 integration to create user accounts on the backend.

Final tip: don't get attached to any library. Some you really like may end up being abandoned, because open source has a funding problem so sometimes devs walk away. If you find a good one, consider donating monthly to support it's maintenance.

reply

Hey @grimtechnet Thanks a lot !

Regarding libs and opensource, you are totaly right ! I donate as much as I can to support.

I will look at those references and play with them :)

reply