Oddbean new post about | logout
 Added embeds and link previews to @Npub.pro 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! 

nostr:nevent1qqs2kluym6wmapmr7gr2tr8phfmf353wr5ucegy6f8lvant0sqt4yxcpz4mhxue69uhkummnw3ezummcw3ezuer9wchsygqgat09ph63mf9y9awuq30rtvm3jqhqd44gq5s4hmpawtwxslxtqspsgqqqqqqsmu3ppw