Add NIP-89 app handler docs and Nostr publishing scripts #132

Merged
raucao merged 8 commits from feature/nip-89 into master 2026-11-28 14:09:38 +00:00
Owner

Closes #128

This adds Marco's NIP-89 app-handler setup, the tooling to publish Marco's Nostr events, and the NIP-89 client tag on the events Marco publishes.

Docs

  • doc/nostr/nip-89-app-handler.md — Marco's kind:31990 app handler and kind:31989 recommendation: identity, tags, relays and publish commands.
  • doc/nostr/publishing.md — how the place NIPs are published on Nostr as kind:30817 custom NIPs (the photos spec is already published; reviews to follow).

App handler (kind:31990)

  • Signed by the author's own npub, d = marco.earth, k = 360, and a web template pointing at the in-app /e/<bech32> route (added in #131).
  • Advertises the official NIPs Marco implements as i references — 01, 07, 09, 19, 21, 46, 57, 65, 73, 89, 92, B7 — and Marco's own kind-30817 Place Photos and Videos NIP via an a tag.
  • Includes content.nip05 (marco@kosmos.org), a ["t","maps"] category, and a kind-30617 a tag linking the ngit repo.

Publishing scripts (scripts/, POSIX sh + nak)

  • publish-app-handler.sh, publish-app-recommendation.sh and publish-nip.sh publish and re-publish; unpublish-app-handler.sh retires an old handler via a NIP-09 kind-5 event.
  • Relay targets live in scripts/nostr-relays.txt; shared config in scripts/nostr-common.sh. Signing uses an explicit NOSTR_SECRET_KEY (nsec/hex, or a NIP-46 bunker:// URL) and the scripts refuse to sign from the wrong key. Every script supports --dry-run.

Client tag (app code)

  • app/utils/client-tag.js plus its use in the photo upload (kind 360), deletion (kind 5) and zap request (kind 9734) paths, emitting ["client","Marco","31990:1f79058c…:marco.earth","wss://nostr.kosmos.org/"].

Nothing is published to relays by this change.

Closes #128 This adds Marco's NIP-89 app-handler setup, the tooling to publish Marco's Nostr events, and the NIP-89 `client` tag on the events Marco publishes. ## Docs - `doc/nostr/nip-89-app-handler.md` — Marco's `kind:31990` app handler and `kind:31989` recommendation: identity, tags, relays and publish commands. - `doc/nostr/publishing.md` — how the place NIPs are published on Nostr as `kind:30817` custom NIPs (the photos spec is already published; reviews to follow). ## App handler (`kind:31990`) - Signed by the author's own npub, `d = marco.earth`, `k = 360`, and a `web` template pointing at the in-app `/e/<bech32>` route (added in #131). - Advertises the official NIPs Marco implements as `i` references — 01, 07, 09, 19, 21, 46, 57, 65, 73, 89, 92, B7 — and Marco's own kind-30817 *Place Photos and Videos* NIP via an `a` tag. - Includes `content.nip05` (`marco@kosmos.org`), a `["t","maps"]` category, and a kind-30617 `a` tag linking the ngit repo. ## Publishing scripts (`scripts/`, POSIX sh + `nak`) - `publish-app-handler.sh`, `publish-app-recommendation.sh` and `publish-nip.sh` publish and re-publish; `unpublish-app-handler.sh` retires an old handler via a NIP-09 kind-5 event. - Relay targets live in `scripts/nostr-relays.txt`; shared config in `scripts/nostr-common.sh`. Signing uses an explicit `NOSTR_SECRET_KEY` (nsec/hex, or a NIP-46 `bunker://` URL) and the scripts refuse to sign from the wrong key. Every script supports `--dry-run`. ## Client tag (app code) - `app/utils/client-tag.js` plus its use in the photo upload (kind 360), deletion (kind 5) and zap request (kind 9734) paths, emitting `["client","Marco","31990:1f79058c…:marco.earth","wss://nostr.kosmos.org/"]`. Nothing is published to relays by this change.
raucao added 2 commits 2026-11-28 10:09:13 +00:00
Document Marco's NIP-89 app handler (kind 31990) and recommendation
(kind 31989), and how the place NIPs are published on Nostr as kind 30817
custom NIPs.

Add shell scripts that build and publish these events via nak: the app
handler, a recommendation, and the NIP specs. The publishing relay list
lives in scripts/nostr-relays.txt for easy editing. Signing requires an
explicit NOSTR_SECRET_KEY (nsec or NIP-46 bunker URL), and the scripts
refuse to publish from the wrong identity.
Note the /e/ handler and photo focus in the NIP-89 app handler doc
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m3s
d62340c3b1
raucao added the docsdev environment labels 2026-11-28 10:16:41 +00:00
raucao added 1 commit 2026-11-28 13:14:08 +00:00
Advertise implemented NIPs in the NIP-89 app handler
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m14s
ba804fa69b
Add NIP references to Marco's kind 31990: an `i` tag per implemented
official NIP and an `a` tag for Marco's own kind-30817 Place Photos NIP,
shaped the way NostrHub's app directory reads them.

Also fix the stale note about the /e/ route being planned; it is
implemented.
raucao added 1 commit 2026-11-28 13:24:23 +00:00
Remove paid relay from default list
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m11s
5300cc1dc8
raucao force-pushed feature/nip-89 from 5300cc1dc8 to 5300cc1dc8 2026-11-28 13:24:57 +00:00 Compare
raucao added 1 commit 2026-11-28 13:33:54 +00:00
Publish the app handler under the author's npub
CI / Lint (pull_request) Successful in 51s
CI / Test (pull_request) Successful in 1m11s
38ca6ba296
Move the handler identity from the dedicated app key to the author's own
npub (the same key that authors the NIP specs), and add
scripts/unpublish-app-handler.sh to delete an old handler via a NIP-09
kind-5 event. Document the identity and the retirement flow.
raucao added 1 commit 2026-11-28 13:50:36 +00:00
Add NIP-05, category tags and the ngit repo to the app handler
CI / Lint (pull_request) Successful in 55s
CI / Test (pull_request) Failing after 1m16s
c30e8cee72
Set content.nip05 (marco@kosmos.org), a ["t","maps"] category tag, and a
kind-30617 `a` tag linking the ngit repository — the three fields NostrHub's
app listing reads. Add the values as config in scripts/nostr-common.sh.
raucao added 2 commits 2026-11-28 14:07:49 +00:00
Use the same about text as the app's kind-0 profile: "Unhosted maps app, enhancing OpenStreetMap with decentralized user data and content".
Add the NIP-89 client tag to published events
CI / Lint (pull_request) Successful in 59s
CI / Test (pull_request) Successful in 1m21s
Release Drafter / Update release notes draft (pull_request) Successful in 16s
fc9f496416
Tag published photos (kind 360), deletions (kind 5) and zap requests
(kind 9734) with ["client","Marco","31990:1f79058c…:marco.earth","wss://nostr.kosmos.org/"]
so clients can attribute them to Marco. Uses applesauce's EventFactory
clientTag via a shared app/utils/client-tag helper.
raucao added the distributionfeature labels 2026-11-28 14:09:31 +00:00
raucao merged commit d0275918b3 into master 2026-11-28 14:09:38 +00:00
raucao deleted branch feature/nip-89 2026-11-28 14:09:39 +00:00
Sign in to join this conversation.