Field notes on the Nostr protocol

Learn Nostr by poking at the real thing

Generate keys, sign events and watch packets fly between relays. Real cryptography, running right here in your browser.

Start learning Browse the tools
A Nostr networkFive people each connect to several independent relays. Messages hop from people to relays and back, and no single server is in charge.

Hi, I'm Nos! Let's learn Nostr together.

How Nostr School works

  1. Real crypto, live

    Every key, hash and signature is computed in your browser with the same code real clients use.

  2. Plain words first

    Each idea starts in plain language. Open an Under the hood drawer whenever you want the JSON and the NIPs.

  3. Example data or live relays

    Lessons use friendly example data. Flip on live mode to read real events from public relays.

The course, chapter by chapter

Twelve chapters, from why Nostr exists to its honest trade-offs. Start anywhere; we remember the chapters you finish.

  1. Up next Why Nostr? What goes wrong when one company owns the server, and how relays change the game.
  2. Not started Identity is a keypair No accounts, no passwords: you are a secret key and its public key.
  3. Not started Anatomy of an event Every post, like and profile is a signed JSON event. Take one apart.
  4. Not started Relays & the wire protocol Watch REQ, EVENT, EOSE and friends fly between clients and relays.
  5. Not started Filters Ask relays for exactly the events you want.
  6. Not started Kinds & NIPs A periodic table of event kinds and the specs that define them.
  7. Not started The social graph Follow lists, and how clients find where your friends publish.
  8. Not started Private messages Envelopes inside envelopes: how NIP-17 hides who talks to whom.
  9. Not started Zaps Lightning payments meet Nostr events.
  10. Not started Signing & login Let apps use your key without ever seeing it.
  11. Not started The ecosystem Relays, clients and NIPs, in numbers.
  12. Not started Trade-offs Spam, discovery, relay economics and key loss: an honest look.

Tools for tinkering

The course interactives also work on their own. Handy when you just need to check an event.

Twelve short chapters. Each one has a hands-on interactive.

Start learning