DEV Community

Pacharapol Withayasakpunt
Pacharapol Withayasakpunt

Posted on

Is there a library for better <a href>'s, like social sharing cards?

It seems to need a backend to fetch metadata so as to bypass CORS...

I can try to create my own (in, but it wouldn't support multiple media types by default.

Also, this should be done in to enhance <a href>s (currently, only handful stuffs are supported, like GitHub and posts).

Interestingly, seems to generate og:image when I post in Discord.

Top comments (1)

patarapolw profile image
Pacharapol Withayasakpunt • Edited

My solution --

GitHub logo patarapolw / page-metadata

Get page metadata and create a pictured link

Spoiler: it need a backend, at least