Nostr. Event. AppCurationSets
(Nostr Lib v0.2.1)
(event)
(nip51)
View Source
App Curation Sets (Kind 30267)
References to multiple software applications. This is an addressable event
with a d tag identifier. Contains a tags pointing to software application
events.
Sets can have optional metadata: title, image, and description.
Defined in NIP 51 https://github.com/nostr-protocol/nips/blob/master/51.md
Summary
Functions
Creates a new app curation set (kind 30267).
Parses a kind 30267 event into an AppCurationSets struct.
Types
Functions
Creates a new app curation set (kind 30267).
Arguments
identifier- Unique identifier for this set (used indtag)applications- List of software application event addressesopts- Optional event arguments and set metadata
Options
:title- Set title for display:image- Set image URL:description- Set description:pubkey- Event author pubkey:created_at- Event timestamp
Example
AppCurationSets.create("nostr-apps", [
"32267:pubkey:com.example.app1",
"32267:pubkey:net.example.app2"
],
title: "My Nostr Apps",
description: "Recommended Nostr applications"
)
@spec parse(Nostr.Event.t()) :: t()
Parses a kind 30267 event into an AppCurationSets struct.