The UX logic is that a link posted on its own line should be rendered as a full embed, like so:
I don’t know whether this is something that has to happen server-side (that’s how Discourse does it) or if this sort of thing can be done completely client-side nowadays (I doubt it).
There are also some security considerations when doing this type of meta-data fetching.
Aka ‘link embed’ or ‘link card’ or ‘onebox’. The prior art I’m most familiar with is in Discourse:
The UX logic is that a link posted on its own line should be rendered as a full embed, like so:
I don’t know whether this is something that has to happen server-side (that’s how Discourse does it) or if this sort of thing can be done completely client-side nowadays (I doubt it).
There are also some security considerations when doing this type of meta-data fetching.
We could probably use this if there was a JS/wasm client for it: https://github.com/EstebanBorai/link-preview
Otherwise we just need whatever the JS/Svelte equivalent of that is. I found microlink but it seems quite heavy.