How yuukiofuyu/serverless-temp-file-sharing works
This Cloudflare Worker provides browser-based file sharing backed by Google Drive: users upload a file, receive a shareable result page with a QR code, and the file is removed after download. The sampled source shows request routing, page rendering, and the Drive upload helper obtaining an access token. README claims document the broader download-and-delete workflow; download internals were not sampled.
Main entry points: worker.js Request handler
Components 12
Worker routing
- Request handler
worker.js
Sharing experience
- Upload page
worker.js - Share result
worker.js - QR code
worker.js - File download
worker.js - Expired page
worker.js - Not-found pages
worker.js
Drive integration
- Drive upload
worker.js - Access token
worker.js - Google Drive API
- Destination folder
Other components
- Visitor
Connections 13
- Visitor → Request handler: sends requests
README.md - Request handler → Upload page: renders root
worker.js - Request handler → Not-found pages: renders fallback
worker.js - Request handler → Drive upload: uploads file
worker.js - Drive upload → Access token: gets token
worker.js - Drive upload → Google Drive API: sends multipart upload
worker.js - Google Drive API → Destination folder: stores file
README.md - Request handler → Share result: shows upload result
worker.js - Share result → QR code: generates code
worker.js - Visitor → File download: requests shared file
README.md - File download → Google Drive API: downloads file
- File download → Google Drive API: deletes after download
- Request handler → Expired page: shows expired state
worker.js