feat(simkl): comply with Simkl API conventions across Android, web, and proxies - #670
Merged
ProdigyV21 merged 4 commits intoSep 8, 2026
Conversation
…nd proxies - Append required query parameters (client_id, app-name, app-version) to all Simkl API requests per https://api.simkl.org/conventions/headers - Ensure app-name is lowercase ('arvio') and app-version is properly formatted - Pass descriptive User-Agent header across Android client, Web client, Netlify proxy, and Supabase Edge Function proxy - Ensure client_id is preserved on all proxy requests (not just /oauth/pin) - Add automated test verifying Netlify proxy attaches required query parameters and headers to outgoing requests
…oid, web, and proxies
- P0: Gate sync strictly on /sync/activities watermark even when force=true to avoid library sync storms
- P0: Implement continuous delta sync with GET /sync/all-items?date_from={watermark} and row merging; reserve sequential category sync (movies -> shows -> anime -> playback) for initial sync
- P0: Persist sync watermark and snapshot cache across process death and avoid aggressive window focus invalidation
- P1: Clamp scrobbler progress between 0-100 without multiplying small progress values (<1%)
- P1: Prevent movie unmarking from deleting library row and ratings by calling POST /sync/add-to-list with to: plantowatch
- P1: Add FIFO command queue to SimklScrobbler to prevent dropped STOP requests during auto-play advance
- P1: Trigger scrobbleStop when exiting playback at >=80% watched threshold
- P1: Standardize on Anime Path A (shows[] with use_tvdb_anime_seasons: true and extended=full_anime_seasons)
- P1: Batch season watched toggles into a single POST request
- P2: Update proxy allowlists for bare /sync/all-items, /sync/playback/episodes, and DELETE /sync/playback/{id} across Web, Netlify, and Supabase
- P2: Forward Retry-After header through all proxies and log warnings on HTTP 429 and 412
- P2: Support slug, simkl_id alias, unaired episode deduction, and immediate PIN polling termination on KO / device_code
Collaborator
Author
Simkl Official Integration Review RemediationThis commit addresses all findings and recommendations from the official Simkl integration review across Android, Web, Netlify functions, and Supabase Edge Functions: P0 — Request Volume & Sync Storm Prevention
P1 — Data Loss Prevention & Scrobbler Heuristics
P2 — Compliance, Proxy Allowlists & Resilience
Verification
|
added 2 commits
September 8, 2026 12:32
Keep account-scoped snapshots and their acknowledged watermark across process restarts, retain resolved anime IDs, and retry partial playback syncs. Reconcile deleted IDs only when removal markers change. Route web season writes through selected providers and surface failures before updating local watched state. Add Android and web regressions.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR aligns all Simkl API calls across ARVIO with the official Simkl Headers and Parameters Conventions so requests are correctly identified and visible in Simkl's API Debug & Analytics dashboard.
Changes
client_id,app-name=arvio, andapp-versionare appended to all Simkl requests (public catalog, scrobble, and sync) rather than only/oauth/pin.app-name=arvioper Simkl specification.User-Agentheaders across Android, Web, Netlify functions, and Supabase Edge functions._backend.jsand Supabasesimkl-proxyto preserve/forwardclient_id,app-name, andapp-versionquery parameters andUser-Agenton all outgoing calls.simkl-proxy.test.jsvalidating that required query parameters and headers are attached to all proxied requests.