Skip to content
Melvin Carvalho edited this page Oct 22, 2026 · 7 revisions

Nostr Developer Guide: build on an open protocol

Nostr is a protocol, not a platform. Users hold a key and sign JSON events. Relays are simple WebSocket servers that store and forward those events. Any client can read any relay. There's no API key, no app review and no company in the middle: if you can open a WebSocket, you can build on it.

This wiki is the practical hub of the W3C Nostr Community Group's developer guide, with tested commands, current library choices and honest status tables.

Start building

🚀 Try it in 60 seconds

Install nak, read from a public relay, then publish to a throwaway relay on your machine:

# install nak (Linux / macOS)
curl -sSL https://raw.githubusercontent.com/fiatjaf/nak/master/install.sh | sh

# read three notes from a public relay
nak req -k 1 -l 3 wss://relay.primal.net

# start a throwaway relay on localhost
nak serve &
sleep 1

# sign and publish to it
nak event -c "hello nostr" \
  ws://localhost:10547

nak signs with a test key it creates for your machine. For real keys, see Signers & login.

📚 Explore

Build a client: from hello world to a feed Protocol: events, kinds, NIPs

Libraries: JS, Rust, Go, Python and more Signers: let users log in without sharing their key

Relays: run and pick one Tools: nak, websocat, recipes

💡 Back after a while? What changed

  • Unrecommended NIPs (May 2026): NIP-90 DVMs, NIP-06 mnemonics, NIP-28 and 72 (use 29), NIP-15 (use 99) and more joined NIP-04 DMs (use 17), NIP-26 and NIP-96 (use Blossom). Full list →
  • Libraries moved: go-nostr and khatru are archived, replaced by fiatjaf.com/nostr. rust-nostr is now Nostr Dev Kit, with new package names. nostr-tools also ships on JSR as @nostr/tools. Libraries →
  • Infrastructure went away: nostr.band (search, API and relay) is unreachable, the nsecBunker repo was wiped, api.nostr.watch/v1 is gone, and nips.be now redirects to an unrelated site. Relay explorers →
  • Protocol details: kind 1111 comments may now reply to kind 1 notes, NIP-39 identities moved to kind 10011, and NIP-05 names must be lowercase. More →

Next: Quick start →

Clone this wiki locally