Skip to content

tcheeric/nostr-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nostr-java

CI codecov GitHub release License: MIT

nostr-java is a Java SDK for the Nostr protocol. It provides utilities for creating, signing and publishing Nostr events to relays.

Requirements

  • Maven
  • Java 21+

See docs/GETTING_STARTED.md for installation and usage instructions.

Documentation

Examples

Examples are located in the nostr-java-examples module. See the API Examples Guide for detailed walkthroughs.

Key Examples

  • NostrApiExamples – Comprehensive examples covering 13+ use cases including text notes, encrypted DMs, reactions, channels, and more. See the guide for details.

  • SpringSubscriptionExample – Shows how to open a non-blocking NostrSpringWebSocketClient subscription and close it after a fixed duration.

Supported NIPs

The API currently implements the following NIPs:

  • NIP-1 - Basic protocol flow description
  • NIP-2 - Follow List
  • NIP-3 - OpenTimestamps Attestations for Events
  • NIP-4 - Encrypted Direct Message
  • NIP-5 - Mapping Nostr keys to DNS-based internet identifiers
  • NIP-8 - Handling Mentions
  • NIP-9 - Event Deletion Request
  • NIP-12 - Generic Tag Queries
  • NIP-14 - Subject tag in Text events
  • NIP-15 - Nostr Marketplace
  • NIP-20 - Command Results
  • NIP-23 - Long-form Content
  • NIP-25 - Reactions
  • NIP-28 - Public Chat
  • NIP-30 - Custom Emoji
  • NIP-32 - Labeling
  • NIP-40 - Expiration Timestamp
  • NIP-42 - Authentication of clients to relays
  • NIP-44 - Encrypted Payloads (Versioned)
  • NIP-46 - Nostr Remote Signing
  • NIP-57 - Lightning Zaps
  • NIP-60 - Cashu Wallets
  • NIP-61 - Nutzaps
  • NIP-99 - Classified Listings

About

A nostr library, written in java, for generating, signing and publishing events.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors 14