Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link previews #241

Open
erlend-sh opened this issue Nov 15, 2024 · 0 comments
Open

Link previews #241

erlend-sh opened this issue Nov 15, 2024 · 0 comments

Comments

@erlend-sh
Copy link
Contributor

erlend-sh commented Nov 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant