Skip to content

Implement using PO token server to imrpove youtube downloads#1

Open
labithiotis wants to merge 7 commits into
mainfrom
po-token
Open

Implement using PO token server to imrpove youtube downloads#1
labithiotis wants to merge 7 commits into
mainfrom
po-token

Conversation

@labithiotis

@labithiotis labithiotis commented Jul 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add a Cloudflare Worker that provides YouTube Proof of Origin tokens at GET /token?videoId=....
  • Cache tokens in Workers KV and use cold-start BotGuard tokens, with Browser Rendering as a fallback.
  • Add CLI support for the token provider, including a persistent anonymous installation UUID, rate-limit handling, and --no-po-token.
  • Pass returned PO token and visitor data into youtubei.js download sessions.
  • Add Worker deployment workflow and document local Worker development.
  • Add YouTube token smoke coverage plus CLI installation/network tests.
  • Apply the repository formatting and cleanup changes included in this branch.

Validation

  • bun lint
  • bun typecheck
  • bun test:unit
  • Worker deployment dry run

Notes

  • Worker access is abuse-controlled with anonymous installation and IP rate-limit identifiers; it is not authentication.
  • The YouTube smoke test is manual because CI YouTube traffic can be blocked.

Comment thread packages/cli/src/lib/providers/Spotify.ts Dismissed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants