Skip to content

feat(mention): query search relay when local results are insufficient#526

Merged
barrydeen merged 1 commit into
mainfrom
feat/mention-relay-search-fallback
May 13, 2026
Merged

feat(mention): query search relay when local results are insufficient#526
barrydeen merged 1 commit into
mainfrom
feat/mention-relay-search-fallback

Conversation

@barrydeen
Copy link
Copy Markdown
Owner

When typing @mentions, first check local follows and cached profiles. If fewer than 5 matches are found, query wss://search.nostrarchives.com (NIP-50) and stream results into the suggestion list as they arrive. The relay subscription is cancelled on each new keystroke and cleaned up on EOSE or after a 3-second timeout.

Also adds @mention autocomplete to the livestream chat input, which previously had no mention support.

When typing @mentions, first check local follows and cached profiles.
If fewer than 5 matches are found, query wss://search.nostrarchives.com
(NIP-50) and stream results into the suggestion list as they arrive.
The relay subscription is cancelled on each new keystroke and cleaned
up on EOSE or after a 3-second timeout.

Also adds @mention autocomplete to the livestream chat input, which
previously had no mention support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant