Runnable examples

Try these examples in your browser, then open the source to see how they work:

Task Run Java source
Create a temporary identity, sign and publish a note, receive it through a filter Run publish QuickStartDemo.java
Fetch public notes from a relay Run fetch RelayFetchDemo.java
Query a Nostr Wallet Connect wallet Run wallet NWCDemo.java
Join a room and exchange messages Run RTC ping RTCPingDemo.java
Use multiple peers and routed RTC Run P2P Seas Game P2pSeasGame.java

For a standalone Java program, start with the JVM quickstart. The network examples need an internet connection. Wallet and RTC setup is explained beside each demo.