muni-town / weird

Weird web pages
https://weird.one
Other
49 stars 11 forks source link

Link previews #241

Open erlend-sh opened 6 days ago

erlend-sh commented 6 days ago

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:

IMG_2575

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.