brugeman on Nostr: Added embeds and link previews to Npub.pro nostr sites. It's still early, but the ...
Added embeds and link previews to
Npub.pro (npub1pr4…mkzp) nostr sites.
It's still early, but the system of plugins and templates is slowly taking form.
The embeds/previews are a separate plugin, not part of the core engine - we include it everywhere for now, but it's a separate thing, so that you'd be able to eventually swap one implementation to another if needed.
What's cool is that preview plugin only fetches the linked page metadata and oembed info, and then asks the core to render that info. There is a built-in template for rendering previews, but later on themes and other plugins will be able to override the default template and modify the output.
Logic in plugins, presentation layer in templates, all pluggable and connected through the engine. These Lego blocks will produce infinite custom nostr apps, interoperable with existing web.
Exciting!
Link previews & embeds are live on your nostr sites!
We added support for Oembed standard, which means YouTube, Spotify and similar links are now converted into a nice player or custom preview:
And if the linked site doesn't support oembed, we do our best to show a nice link preview box:
Your nostr posts keep getting better on the web!
Next stop: nostr link previews for quotes and replies.
Published at
2024-07-26 16:39:25Event JSON
{
"id": "35500c3c8aa6b0e33528335260f73c9d15c32acfd5d5dfd1a944a71fe14ae46b",
"pubkey": "3356de61b39647931ce8b2140b2bab837e0810c0ef515bbe92de0248040b8bdd",
"created_at": 1722004765,
"kind": 1,
"tags": [
[
"p",
"08eade50df51da4a42f5dc045e35b371902e06d6a805215bec3d72dc687ccb04",
"",
"mention"
]
],
"content": "Added embeds and link previews to nostr:npub1pr4du5xl28dy5sh4msz9uddnwxgzupkk4qzjzklv84edc6ruevzqlxmkzp nostr sites.\n\nIt's still early, but the system of plugins and templates is slowly taking form.\n\nThe embeds/previews are a separate plugin, not part of the core engine - we include it everywhere for now, but it's a separate thing, so that you'd be able to eventually swap one implementation to another if needed.\n\nWhat's cool is that preview plugin only fetches the linked page metadata and oembed info, and then asks the core to render that info. There is a built-in template for rendering previews, but later on themes and other plugins will be able to override the default template and modify the output.\n\nLogic in plugins, presentation layer in templates, all pluggable and connected through the engine. These Lego blocks will produce infinite custom nostr apps, interoperable with existing web. \n\nExciting! \n\nnostr:nevent1qqs2kluym6wmapmr7gr2tr8phfmf353wr5ucegy6f8lvant0sqt4yxcpz4mhxue69uhkummnw3ezummcw3ezuer9wchsygqgat09ph63mf9y9awuq30rtvm3jqhqd44gq5s4hmpawtwxslxtqspsgqqqqqqsmu3ppw\n",
"sig": "4fe05a502cbb500599c368531837b560bd95007f97db59b0e58000b25136ab0c5ad16e90bdeae961b3a9bbcf550a0876057ceefaa5ed754221812817d56c4eaf"
}