/oembed.link

A Cloudflare Worker to render embeds on a single page using oEmbed

Primary LanguageJavaScriptMIT LicenseMIT

Oembed.link

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

Deployment (via Cloudflare Workers)

The system is designed to run as a Cloudflare Worker. See Cloudflare Docs for more info on how to use this service.

  1. Copy wrangler.sample.toml to wrangler.toml

  2. Fill in account id.

  3. Run wrangler dev to test a local server.

  4. Run wrangler publish to run on Cloudflare.