announce
Publish NIP-89 app handler announcements and other metadata events without deploying files.
Usage
nsyte announce [options]Options
--publish-app-handler— Publish app handler information (Kind 31990)--publish-app-recommendation— Publish app recommendation (Kind 31989)--all— Publish all available data--sec <secret>— Secret for signing (auto-detects format: nsec, nbunksec, bunker:// URL, or 64-char hex)
Examples
Publish app handler announcement:
nsyte announce --publish-app-handlerPublish all configured metadata:
nsyte announce --allUse 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:
- 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-handlerAnnounce New Handler Capabilities
When your site gains support for new event kinds:
# Update appHandler.kinds in config.json
nsyte announce --publish-app-handlerStandalone 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 relaysSee Also
nsyte deploy- Deploy files with optional metadata publishingnsyte debug- Debug and verify published metadata- NIP-89 Handler Documentation - Complete app handler guide
Inherits global options. See global options.