nexryai/google-drive-s3 ? reverse-engineered prompt

Reverse engineered prompt

Build me a Cloudflare Worker that makes my Google Drive act like simple S3 storage.

I want to be able to send normal S3 style requests, like upload, download, list, and delete objects, and have the files saved into Google Drive under bucket folders. It should verify requests with an access key and secret key, support a region value, and only allow the buckets I list. If a bucket is marked public, GET and HEAD should work without signing, but writes should still need auth.

Please wire it up so it can use Cloudflare KV for whatever state it needs, and Google Drive API credentials from secrets. Keep it friendly for the free Workers plan, so use streaming where needed and avoid doing anything that would require loading whole files into memory. Also include a clear README or setup notes for getting the Google refresh token, setting the secrets, and deploying it with Wrangler. If you need to check current Cloudflare or Google docs, go ahead and look them up.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab