From 48702e4946d3dfb1c24b89ae209e0f1dce8f6724 Mon Sep 17 00:00:00 2001 From: Clawd Date: Tue, 17 Feb 2026 10:11:10 -0800 Subject: Add website landing page --- website/index.html | 182 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) create mode 100644 website/index.html diff --git a/website/index.html b/website/index.html new file mode 100644 index 0000000..a4a9f94 --- /dev/null +++ b/website/index.html @@ -0,0 +1,182 @@ + + + + + + + + nostr — minimal Go library + + + +

nostr

+

A minimal Go library for the Nostr protocol.

+ +
go get code.northwest.io/nostr
+ +

Why

+

1 dependency. Other Nostr libraries pull in 30+. This one has exactly one:

+
btcec/v2 — Schnorr signatures (required by protocol)
+

No WebSocket libraries, no logging frameworks, no kitchen sink. Just the core protocol, stdlib only.

+ +

What's Included

+ + +

Example

+
key, _ := nostr.GenerateKey()
+fmt.Println("npub:", key.Npub())
+
+event := &nostr.Event{
+    Kind:    nostr.KindTextNote,
+    Content: "Hello Nostr!",
+}
+event.Sign(key)
+
+relay, _ := nostr.Connect(ctx, "wss://relay.damus.io")
+relay.Publish(ctx, event)
+ +

What's Not Included

+

This is a minimal core library. It implements NIP-01 and the basics. It doesn't implement every NIP, handle connection pooling, or manage relay discovery. Build that yourself, or don't.

+ + + + -- cgit v1.2.3