awesome-nostr icon indicating copy to clipboard operation
awesome-nostr copied to clipboard

Java library is missing

Open Giszmo opened this issue 2 years ago • 4 comments

This is a dummy issue to hopefully connect with others who need a Java library. I will share my progress here as soon as I get to writing one myself and would love to see others share their progress, too.

Giszmo avatar Jun 02 '22 15:06 Giszmo

A Java library would be awesome. I've thought about making it as well but haven't got around to look at it yet.

0xtrr avatar Jun 02 '22 19:06 0xtrr

Want to join? Is Kotlin fine with you? I need it for Android which is Kotlin nowadays.

I already have a RelayPool and can receive events as they happen. Didn't dig deep into nips yet though. No key generation or anything crypto yet.

Giszmo avatar Jun 03 '22 04:06 Giszmo

I don't have any experience with Kotlin yet but I'm a quick learner so I could try to play around with Kotlin a bit over the weekend and see if I can learn the basics. If so, I would be more than happy to help out wherever I can!

0xtrr avatar Jun 03 '22 15:06 0xtrr

A library was born ...

Work in progress very much but I already get Events over websocket as they happen:

https://github.com/Giszmo/NostrPostr

Giszmo avatar Jun 03 '22 22:06 Giszmo

@Giszmo @0xtrr java library now exists https://github.com/tcheeric/nostr-java

aljazceru avatar Dec 18 '22 22:12 aljazceru

For what it's worth, my NostrPostr is being used in production in my relay implementation in the same repo. It also does support nip-04. Have to update the readme.

Giszmo avatar Dec 19 '22 14:12 Giszmo

So nostr-java and NostrPostr are both JVM libraries. The former is listed under clients. @aljazceru you might want to fix that. Either way, this issue has run its cause.

Giszmo avatar Dec 19 '22 14:12 Giszmo