Expand description
Nostr content referenced from a chat message (a post, an article, a video), fetched from relays and shaped for an inline card.
A reference is a note1/nevent1/naddr1 entity, bare, as a nostr: URI, or
as the last path segment of a web link. The web site itself is never contacted:
the event comes from relays and is verified before it is shown.
Structs§
- Embed
- One referenced event, shaped for its card.
- Embed
Media - A playable or viewable file a post or video carries.
- ReplyTo
- A comment’s parent: a Nostr event, or a scope outside Nostr (NIP-73).
Enums§
- Embed
Ref - What a reference points at, as decoded from its bech32.
Constants§
- KIND_
ARTICLE - KIND_
COMMENT - NIP-22: a plaintext reply scoped to what it answers, outside kind 1’s own threads.
- KIND_
GENERIC_ REPOST - KIND_
POST - KIND_
REPOST - KIND_
SHORT - KIND_
SHORT_ ADDRESSABLE - KIND_
VIDEO - KIND_
VIDEO_ ADDRESSABLE
Functions§
- fetch
- Fetch and shape the event
reference(a bare entity, anostr:URI, or a web link ending in one). Repeated asks within a session are answered from memory.