A Cloudflare Worker, enabling you to embed a list of your most recently watched movies, as logged on Letterboxd, on your website.
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>username: (required) Letterboxd username.test: Iftrue, uses hard-coded Letterboxd response from repo.nocache: Iftrue, passes 1-hour cache of response.raw: Iftrue, returns raw uncached Letterboxd JSON payload.
npm install
npm run dev