Awesome
nostr-java
Nostr-java is a library for generating, signing, and publishing nostr events to relays.
Requirements
- Maven
- Java 22+
Usage
To use it in your project, add the following to your pom.xml file.
<properties>
<nostr-java.version>v0.007.1-alpha</nostr-java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>nostr-java</groupId>
<artifactId>nostr-java-api</artifactId>
<version>${nostr-java.version}</version>
</dependency>
</dependencies>
Examples
I recommend having a look at these repositories/module for examples:
- nostr-example module
- nostr-client github repository
- SuperConductor nostr relay
Supported NIPs
The following NIPs are supported by the API out-of-the-box: