Skip to content

feat(web): integrate Simkl tracking client and API proxy - #554

Closed
Himanth-reddy wants to merge 2 commits into
mainfrom
simkl/web
Closed

feat(web): integrate Simkl tracking client and API proxy#554
Himanth-reddy wants to merge 2 commits into
mainfrom
simkl/web

Conversation

@Himanth-reddy

@Himanth-reddy Himanth-reddy commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Summary of Changes

This PR adds client-side and server-side Next.js support for Simkl tracking in the ARVIO Web application.

1. Simkl Web Client (web/lib/simkl.ts)

  • Implemented SimklClient class adhering to the SyncClient interface.
  • Supported PIN device authentication (beginPinAuth, pollPinToken).
  • Implemented real-time scrobbling (scrobble for start, pause, stop) with progress normalization.
  • Implemented watched history fetching and watchlist management (addToWatchlist, removeFromWatchlist, addToHistory, removeFromHistory).

2. Next.js API Proxy (web/app/api/simkl/[...path]/route.ts)

  • Created server-side API proxy route /api/simkl/... to route API requests securely through Netlify backend (auth.arvio.tv) or direct Simkl endpoints without exposing client secrets.

3. Tracking Provider Integration (web/lib/sync.ts)

  • Updated SyncProvider type to include "simkl".
  • Routed activeSyncProvider() and syncClient() to support simklClient.

Testing & Verification

  • npx tsc --noEmit passed with 0 errors.

@Himanth-reddy

Copy link
Copy Markdown
Collaborator Author

Superseded by #558 (from Himanth-reddy:simkl/web into main)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: web Changes to web or Netlify sites

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant