š„ Nostr ā LastāÆ5 Trending Posts
š Connectingā¦
Loadingā¦
If you are interested, this is the code for embedding the feed
What the code does
- Loads the
nostr-toolslibrary from a public CDN (jsdelivr.net). - Defines a list of public Nostr relays (
trending.relays.land,relay.nostr.info,relay.damus.io,relay.snort.social). - Creates a simple UI (HTML + CSS) that will display the lastāÆ5ā10 trending Nostr notes.
- Fetches those notes from the relays, deduplicates them, and renders them.
- Looks up each authorās profile (kindāÆ0 event) to get a display name and avatar, caching the result in a
Map. - Provides āReplyā buttons that open the note on
yakihonne.com.
Leave a Reply