Skip to content

announce

Publish NIP-89 app handler announcements and other metadata events without deploying files.

Usage

nsyte announce [options]

Options

  • --publish-app-handler — Publish NIP-89 app handler event (Kind 31990)
  • --all — Publish all available metadata configured in your project
  • --sec <secret> — Secret for signing (auto-detects: nsec, nbunksec, bunker://, hex)

Examples

Publish app handler announcement:

nsyte announce --publish-app-handler

Publish all configured metadata:

nsyte announce --all

Use with specific authentication:

nsyte announce --publish-app-handler --sec nsec1...

How it Works

The announce command publishes metadata events to a combined relay set consisting of:

  1. Configured relays from your .nsite/config.json
  2. Discovery relays (popular relays for maximum distribution)
  3. User's outbox relays (from NIP-65 kind 10002 if available)

This ensures your announcements reach the widest possible audience across the Nostr network.

Use Cases

Update App Handler Without Deploying

When you update your app handler configuration (supported event kinds, platforms, etc.) but haven't changed your site files:

# Update config.json with new handler configuration
# Then announce the changes
nsyte announce --publish-app-handler

Announce New Handler Capabilities

When your site gains support for new event kinds:

# Update appHandler.kinds in config.json
nsyte announce --publish-app-handler

Standalone Metadata Publishing

Publish metadata events independently of file deployment for faster updates.

Metadata Types

App Handler (Kind 31990)

NIP-89 application handler announcement that tells Nostr clients your site can handle specific event kinds. Configure in .nsite/config.json:

{
  "publishAppHandler": true,
  "appHandler": {
    "kinds": [1, 30023],
    "name": "My Blog Viewer",
    "description": "A beautiful blog reader",
    "platforms": {
      "web": {
        "patterns": [{
          "url": "https://myblog.example.com/e/<bech32>",
          "entities": ["naddr"]
        }]
      }
    }
  }
}

Relay Distribution

Shows success count summary after publishing:

Published app handler to 12/15 relays

See Also