Automatically sync your Plex movie watches to Letterboxd.
- Plex Auth Integration - Secure connection to your Plex account
- Letterboxd Auto-Sync - Automatically mark movies as watched on Letterboxd
- Webhook Support - Real-time syncing via Plex webhooks
-
Install dependencies
bun install
-
Setup environment variables
cp .env.example .env # Fill in your configuration (see below) -
Configure database
bun run db:migrate
-
Start development server
bun run dev
| Variable | Description |
|---|---|
DATABASE_URL |
PostgreSQL connection string (Supabase pooler works well for serverless) |
PLEX_CLIENT_ID |
Plex OAuth app client ID |
PLEX_REDIRECT_URI |
OAuth redirect URI (must match your deployed origin) |
ENCRYPTION_SECRET |
Encrypts stored Letterboxd password |
SESSION_SECRET |
Signed cookie secret for Plex session |
TELEGRAM_BOT_TOKEN |
Optional Telegram notifications |
TELEGRAM_CHAT_ID |
Optional Telegram chat id |
Production: set these in the Vercel project (or .env locally).
- Login uses HTTP (CSRF +
/user/login.do) with Puppeteer fallback (@sparticuz/chromiumon Vercel) when Cloudflare blocks fetch. - Session cookies are persisted in the database so webhooks usually skip login. Use Test login in settings to refresh cookies after password changes.
bun run build
bun run deployOr connect the repo in the Vercel dashboard. Set PLEX_REDIRECT_URI to your production origin in Plex developer settings and in Vercel env.
Point your Plex webhook at https://<your-host>/webhook/<token> (or /webhook if using account matching).
- Connect your Plex account
- Add your Letterboxd login credentials (session cookies are stored after a successful login test)
- Configure webhook in your Plex server settings
- Watch movies on Plex - they'll automatically sync to Letterboxd
- React Router v7 - Full-stack framework
- TypeScript - Type safety
- Drizzle ORM - Database management
- PostgreSQL - Database (via Supabase)
- Vercel - Hosting (
@vercel/react-router) - TailwindCSS - Styling with brutalist 90s aesthetic
- Node.js >=22.0.0 / Bun
- PostgreSQL database (Supabase recommended)
- Plex Media Server with webhook capability (requires Plex Pass)