The GentleHacker Presents...

A Link Preview Component (for SvelteKit & Others)

Herein, The GentleHacker demonstrates an implementation of a Link Preview component usable in SvelteKit applications, with the general technique being adaptable to many other technologies.

Our implementation relies on OpenGraph, a protocol for attaching metadata to Webpages in a standard fashion. OpenGraph allows for rich interaction with a variety of media types, as demonstrated below.

This page is a companion to a corresponding blog series, available at