Menu

How to archive YouTube videos in TypeScript without relying on saved URLs
📰

How to archive YouTube videos in TypeScript without relying on saved URLs

DEV Community: node·Nimbryxo-studio·about 13 hours ago
#kH4p7FDN
#devtonodejs#devto#dev#destination#const
Reading 0:00
15s threshold

Saving a download URL doesn't finish your archive.

Your overnight job finishes, and you save download_url for next week's processing queue. It feels settled. Then you notice expires_at .

Signed S3/R2 links last 1–7 days, independently of the object's storage lifecycle. An expired link doesn't prove the archived file is gone. It proves your saved permission to fetch it has expired.

Choose storage for the worker that arrives later

A signed URL carries temporary authorization. An object key identifies what you want. Your archive needs both concepts, even when the first download works.

This recipe uses a private S3 bucket and a narrow input schema for that route.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.