announce¶
Publish NIP-89 app handler announcements and other metadata events without deploying files.
Usage¶
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:
Publish all configured metadata:
Use with specific authentication:
How it Works¶
The announce command publishes metadata events to a combined relay set consisting of:
- Configured relays from your
.nsite/config.json - Discovery relays (popular relays for maximum distribution)
- 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:
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:
See Also¶
nsyte deploy- Deploy files with optional metadata publishingnsyte debug- Debug and verify published metadata- NIP-89 Handler Documentation - Complete app handler guide