How nexryai/google-drive-s3 works
I.R.I.S. is a Cloudflare Worker that presents Google Drive as S3-compatible object storage. An S3 client sends requests to the Worker, which routes object operations, applies signature and bucket-access checks, and uses Google credentials to access Drive; Drive folders represent buckets and nested object paths. The README also documents public-read buckets and KV bindings for authentication and folder caching. Most runtime behavior lives in one file; omitted portions prevent confirming several internal call relationships, so those are shown only as unverified links or omitted.
Main entry points: index.ts Request Router · README.md Auth KV
Components 14
S3 API
- Request Router
src/index.ts - S3 Response
src/index.ts
Access Control
- SigV4 Verification
src/index.ts - Bucket Access Rules
src/index.ts - Token Refresh
src/index.ts
Drive Storage
- Stream Upload
src/index.ts - Stream Download
src/index.ts - Object Delete
src/index.ts - Drive Path Resolution
src/index.ts
Worker State
- Folder Cache
src/index.ts - Auth KV
README.md
Other components
- S3 Client
- Google Drive API
- Google OAuth
Connections 16
- S3 Client → Request Router: sends request
README.md - Request Router → Stream Upload: calls upload
src/index.ts - Request Router → Object Delete: calls delete
src/index.ts - Request Router → SigV4 Verification: verifies signature
src/index.ts - Request Router → Bucket Access Rules: checks access
src/index.ts - Request Router → Token Refresh: gets token
src/index.ts - Request Router → Stream Download: routes download
src/index.ts - Request Router → S3 Response: returns response
src/index.ts - Token Refresh → Auth KV: reads and writes
src/index.ts - Token Refresh → Google OAuth: refreshes token
src/index.ts - Stream Upload → Drive Path Resolution: resolves path
src/index.ts - Object Delete → Drive Path Resolution: resolves path
src/index.ts - Drive Path Resolution → Folder Cache: caches folders
src/index.ts - Stream Upload → Google Drive API: uploads stream
src/index.ts - Stream Download → Google Drive API: downloads object
- Object Delete → Google Drive API: deletes object