Oembed.link is a simple script, designed to run as a Cloudflare Worker, which renders embeds using the oEmbed API and renders the embed.
It is designed primarily to make archiving embeds easier by providing a fixed URL which represents only the embed rendered on a page.
The URL is https://oembed.link/<URL>
to be rendered.
The script uses the oEmbed providers JSON, https://oembed.com/providers.json
The source for the oembed.com site can be found at: https://github.com/iamcal/oembed
The system is designed to run as a Cloudflare Worker. See Cloudflare Docs for more info on how to use this service.
-
Install Wrangler 2 locally, eg. with
npm -g i wrangler
oryarn global add wrangler
-
Run the dev server with
wrangler dev
to test locally. You may be prompted to login to Cloudflare to authenticate. -
Navigate to
http://localhost:8787/[URL]
to load the oEmbed view of[URL]
via the local dev server. -
Run
wrangler publish
to publish the worker code to Cloudflare.