Skip to content

Publish kind 31990 #51

@franzaps

Description

@franzaps

NIP-89 defines application handlers, which is specific to nostr apps. (A minority in the grand scheme of things)

If the app is nostr-related (for example a nip list in the config) then create a 31990, use the android tag to add an intent (like in the event below) to open Zapstore + deeplink to to the app detail page.

Here's a current example for Amethyst:

[
	"EVENT",
	"6dcbdd68-278d-4f98-ba28-d1249cb3fc2c",
	{
		"content": "{\"name\":\"Amethyst\",\"display_name\":\"Amethyst\",\"nip05\":\"\",\"picture\":\"https://raw.githubusercontent.com/vitorpamplona/amethyst/main/fastlane/metadata/android/en-US/images/icon.png\",\"banner\":\"https://nostr.build/i/5ac01c834463e53ed86e4baeea9842b3eb89f2e77da1dfe6e7269337a74c413f.jpg\",\"about\":\"Nostr client for Android\",\"lud16\":\"[email protected]\",\"website\":\"https://amethyst.social/\"}",
		"created_at": 1749507164,
		"id": "058fd536d102a0f3fc673e2aa2de1ad390fb0251c58a9ac9f97a4a4be1bd2cd7",
		"kind": 31990,
		"pubkey": "460c25e682fda7832b52d1f22d3d22b3176d972f60dcdc3212ed8c92ef85065c",
		"sig": "13e39f8a64372f4e8a6faee1df671b79d5371ac1939e67b3fe8450660b468ed880d5689bb7a542983a6c804b8731078cce89918705e6a3d5a6ec8eec4c467e37",
		"tags": [
			[
				"d",
				"1685802317447"
			],
			[
				"published_at",
				"1685802317"
			],
			[
				"r",
				"https://amethyst.social/"
			],
			[
				"alt",
				"Nostr App: Amethyst"
			],
			[
				"r",
				"https://github.com/vitorpamplona/amethyst",
				"source"
			],
			[
				"k",
				"0"
			],
			[
				"k",
				"1"
			],
			[
				"k",
				"3"
			],
			[
				"k",
				"4"
			],
			[
				"k",
				"6"
			],
			[
				"k",
				"7"
			],
			[
				"k",
				"13"
			],
			[
				"k",
				"14"
			],
			[
				"k",
				"16"
			],
			[
				"k",
				"40"
			],
			[
				"k",
				"41"
			],
			[
				"k",
				"42"
			],
			[
				"k",
				"43"
			],
			[
				"k",
				"44"
			],
			[
				"k",
				"82"
			],
			[
				"k",
				"1010"
			],
			[
				"k",
				"1040"
			],
			[
				"k",
				"1059"
			],
			[
				"k",
				"1063"
			],
			[
				"k",
				"1064"
			],
			[
				"k",
				"1065"
			],
			[
				"k",
				"1163"
			],
			[
				"k",
				"1617"
			],
			[
				"k",
				"1621"
			],
			[
				"k",
				"1622"
			],
			[
				"k",
				"1808"
			],
			[
				"k",
				"1984"
			],
			[
				"k",
				"4550"
			],
			[
				"k",
				"6969"
			],
			[
				"k",
				"9041"
			],
			[
				"k",
				"9735"
			],
			[
				"k",
				"9802"
			],
			[
				"k",
				"10000"
			],
			[
				"k",
				"10001"
			],
			[
				"k",
				"10004"
			],
			[
				"k",
				"10005"
			],
			[
				"k",
				"10011"
			],
			[
				"k",
				"10013"
			],
			[
				"k",
				"10030"
			],
			[
				"k",
				"10050"
			],
			[
				"k",
				"10096"
			],
			[
				"k",
				"22242"
			],
			[
				"k",
				"30000"
			],
			[
				"k",
				"30001"
			],
			[
				"k",
				"30008"
			],
			[
				"k",
				"30009"
			],
			[
				"k",
				"30022"
			],
			[
				"k",
				"30023"
			],
			[
				"k",
				"30030"
			],
			[
				"k",
				"30053"
			],
			[
				"k",
				"30311"
			],
			[
				"k",
				"30315"
			],
			[
				"k",
				"30402"
			],
			[
				"k",
				"30617"
			],
			[
				"k",
				"30818"
			],
			[
				"k",
				"31234"
			],
			[
				"k",
				"31337"
			],
			[
				"k",
				"31922"
			],
			[
				"k",
				"31923"
			],
			[
				"k",
				"31924"
			],
			[
				"k",
				"31925"
			],
			[
				"k",
				"31989"
			],
			[
				"k",
				"33888"
			],
			[
				"k",
				"34235"
			],
			[
				"k",
				"34236"
			],
			[
				"k",
				"34237"
			],
			[
				"k",
				"34550"
			],
			[
				"android",
				"intent:<bech32>#Intent;scheme=nostr;package=com.vitorpamplona.amethyst;end%60; ",
				""
			]
		]
	}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions