Skip to content

A Cloudflare Worker, enabling you to embed a list of your most recently watched movies, as logged on Letterboxd, on your website.

Notifications You must be signed in to change notification settings

timciep/letterboxd-diary-embed

Repository files navigation

Letterboxd diary embed


A Cloudflare Worker, enabling you to embed a list of your most recently watched movies, as logged on Letterboxd, on your website.

image

Use embed

Add the following to your website, where you want the list (replace <your-letterboxd-username>):

<div id="letterboxd-embed-wrapper-tc"></div>
<script>
    fetch('lb-embed-content.bokonon.dev?username=<your-letterboxd-username>')
        .then(response => response.text())
        .then(data => {
            document.getElementById('letterboxd-embed-wrapper-tc').innerHTML = data;
        });
</script>

URL params for fetch

  • username: (required) Letterboxd username.
  • test: If true, uses hard-coded Letterboxd response from repo.
  • nocache: If true, passes 1-hour cache of response.
  • raw: If true, returns raw uncached Letterboxd JSON payload.

Develop locally

npm install
npm run dev

Cloudflare worker docs


ko-fi

About

A Cloudflare Worker, enabling you to embed a list of your most recently watched movies, as logged on Letterboxd, on your website.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published