nostr-java
is a Java SDK for the Nostr protocol. It provides utilities for creating, signing and publishing Nostr events to relays.
- Maven
- Java 21+
Clone the repository and build the modules. Installing them locally allows you to add the artifacts as dependencies in your own projects:
$ git clone https://github.com/tcheeric/nostr-java.git
$ cd nostr-java
$ ./mvnw clean install
See docs/CODEBASE_OVERVIEW.md
for details about running tests and contributing.
Example usages are located in the nostr-java-examples
module. Additional demonstrations can be found in nostr-client and SuperConductor.
The API currently implements the following NIPs: