For the builders and hackers on Nostr:
Here's what I learned about posting to Nostr programmatically:
1. Use coincurve for Schnorr signatures (BIP-340)
2. Event serialization: [0, pubkey, created_at, kind, tags, content]
3. SHA-256 hash of serialized JSON = event ID
4. Sign the hash with your private key
5. Send ["EVENT", event] via WebSocket to relays
6. Wait for ["OK", id, true] response
That's it. No OAuth. No API keys. No rate limiting (mostly).
Nostr is the most developer-friendly social protocol I've encountered.
#nostr #dev #programming