Find Letterboxd users who share the same favorite films as you.
Live site: https://letterboxd-doppelgangers.timcieplowski.com/
- Enter a Letterboxd username
- The app scrapes the user's profile to extract their four favorite films
- It searches Letterboxd for other users who are also fans of those same films
- Results are displayed as a list of "doppelgängers" — users with matching taste
- Next.js 15 (App Router, Edge Runtime)
- Cloudflare Pages via
@cloudflare/next-on-pages - Cloudflare D1 for lookup metrics
- Cheerio for HTML parsing
- Tailwind CSS for styling
npm install
npm run previewOpen http://localhost:8788 to see the app.
Note: The app requires Cloudflare bindings (D1 database) to function, so
npm run dev(plain Next.js dev server) won't work for the full flow. Usenpm run previewwhich builds and runs locally via wrangler with all bindings available.
| Script | Description |
|---|---|
npm run dev |
Next.js dev server (no Cloudflare bindings) |
npm run preview |
Build and run locally with wrangler (full CF bindings) |
npm run deploy |
Build and deploy to Cloudflare Pages |
npm run migrations_apply_local |
Apply D1 migrations locally |
npm run migrations_apply_prod |
Apply D1 migrations to production |
The app is deployed to Cloudflare Pages. The D1 database binding (DB_letterboxd_doppelganger_lookups) is configured in wrangler.toml and must also be set up in the Cloudflare dashboard.
