I would like to display a preview for http links that users could enter in my website.
Depending on the format/provider:
- links for
youtube
andvimeo
would display the vignette of the videos - audio links to
spotify
media would display album covers - link to images resources (
imgur
and al. and links ending in.jpg
or.png
) would display a thumbnail (or return the image that I would resize).
I know I can write this myself by parsing the url for the different providers but I would hope to use/contribute an existing javascript library (not unlike onebox that is unfortunantely written for Ruby).
Do you have a recommendation for such a library?