Backend for Simalytics, running on Cloudflare Workers.
POST /oauth— Exchanges a Simkl authorization code for an access token. Passes Simkl's response through unchanged (status, body, content-type).POST /tmdb-proxy— Fetches TMDB watch providers for a movie or TV show. Requires:Authorization: Bearer <simkl access token>— validated against Simkl before the TMDB callx-type: movie | tvx-id: <tmdb id>(numeric)
Hono + Wrangler. No database, no build step beyond TypeScript.
npm install
npm run dev
Create .dev.vars with the three secrets listed below for local testing.
npm run deploy
Managed via wrangler secret put:
SIMKL_CLIENT_SECRETTMDB_ACCESS_TOKENTMDB_API_KEY
MIT. See LICENSE.