kernl API
    Preparing search index...

    Function toCatalogEntry

    • Read a store entry from a manifest event.

      The signature is checked so a relay cannot list an applet under someone else's name; the artifact is not fetched. Malformed manifests yield nothing.

      Parameters

      • event: NostrEvent

        A candidate manifest event.

      • relays: readonly string[] = []

        Relay hints for the entry's address.

      Returns CatalogEntry | undefined

      The entry, or undefined when the event is not a valid signed manifest.

      toCatalogEntry(event)?.topics; // ['game', 'puzzle']