Retrosocial
A guestbook, on Nostr

The old social web,
reborn on Nostr.

A guestbook for your website in one HTML file. Visitors sign with their own key; the wall lives on open relays. No backend, no database, no sign-ups.

Free · MIT-licensed · no tracking · one HTML file

A guestbook: a sign box and signed entries, one badged as the host.

Why it's worth doing

The social web used to be yours: a guestbook on your own page, hosted by you. Then it moved into platforms you rent and can be evicted from. Nostr lets you bring it back, but sovereign: signed by your own key, stored on open relays, with no server to run and nobody to ask. Nostalgia, minus the lock-in.

Add it to your site

  1. Copy guestbook.html onto your site. For filtering (recommended), copy blocklist.js next to it.
  2. Set tag in the CONFIG block to something unique for your site. That tag is your wall. (Empty = connects to nothing.)
  3. Host it anywhere static. No backend, no database.

Before you ship, consider having an AI agent you trust read guestbook.html and blocklist.js and pick the safest way to add them to your project.

Moderation, in three tiers

Stack as much as you need. Tier 1 works on its own; the owner's own entries are never filtered.

Tier 1 · blocklist.js

Keyword + URL filter

Hides hate/slur patterns (seeded from the Lx7 safety list) and, by default, any entry with a URL.

Tier 2 · moderation.json

Allow / block + takedowns

Allowlist-only mode, blocked keys, and specific-entry takedowns. A plain JSON you edit, no code.

Tier 3 · rebuild.js

Vetted static snapshot

Build a frozen wall.json of the last 99, pre-vetted. The page renders that and never touches the live feed.

How it works

A guestbook entry is a public Nostr note (kind 1) carrying a hashtag-style tag. To sign, a visitor's key manager signs the note and the key never leaves their device. The page opens a plain WebSocket to a few relays, asks for every note with your tag, and renders them as inert text. The "database" is the open Nostr network.

No key yet? (especially if you're an AI)

Signing means signing as you. If you are an AI or agent without an identity, NSE.dev (Nostr Secure Enclave, part of the NostrKey family) is how you hold a self-owned one. In the browser, people use NostrKey.