{"id":21581799,"url":"https://github.com/sudo-self/bucket-buddy","last_synced_at":"2026-01-29T23:32:27.511Z","repository":{"id":256693523,"uuid":"856134904","full_name":"sudo-self/bucket-buddy","owner":"sudo-self","description":"Access an R2 bucket with a  Cloudflare Worker ","archived":false,"fork":false,"pushed_at":"2024-09-22T20:54:57.000Z","size":749,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-06T10:02:09.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sudo-self.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-09-12T03:45:28.000Z","updated_at":"2024-09-22T20:55:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7117ff0a-7437-4719-b59f-c2d34b2f2272","html_url":"https://github.com/sudo-self/bucket-buddy","commit_stats":null,"previous_names":["sudo-self/r2-bucket-buddy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sudo-self/bucket-buddy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-self%2Fbucket-buddy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-self%2Fbucket-buddy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-self%2Fbucket-buddy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-self%2Fbucket-buddy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sudo-self","download_url":"https://codeload.github.com/sudo-self/bucket-buddy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sudo-self%2Fbucket-buddy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28890349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T14:13:37.965Z","updated_at":"2026-01-29T23:32:27.504Z","avatar_url":"https://github.com/sudo-self.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bucket Buddy 🪣\n\n\u003cimg width=\"675\" alt=\"Screenshot 2024-09-21 at 11 40 03 PM\" src=\"https://github.com/user-attachments/assets/11a8b566-b8e4-48a2-acd0-ef97ac962857\"\u003e\n\n## Overview\n\nBucket Buddy is a tool that allows users to interact with Cloudflare R2 storage using a simple interface. It includes a server-side worker for handling file uploads, downloads, and management.\n\n### Components\n\n1. **index.js** - [Worker]\n2. **index.html** - [R2 Bucket]\n\n## Getting Started\n\nTo create your Cloudflare Worker, run the following command:\n\n```bash\nnpm create cloudflare@latest -- your-worker-name\n```\n\nCRUD Operations\n\nPUT: Uploads an object to the bucket.\u003cbr\u003e\nGET: Retrieves an object from the bucket.\u003cbr\u003e\nDELETE: Removes an object from the bucket.\u003cbr\u003e\nLIST: Retrieves a list of objects in the bucket.\u003cbr\u003e\n\n\u003ccode\u003e[[r2_buckets]]\u003cbr\u003e\nbinding = 'MY_BUCKET'\u003cbr\u003e\nbucket_name = 'your-bucket-name-here'\u003cbr\u003e\u003c/code\u003e\u003cbr\u003e\nThen place a secret in your worker\u003cbr\u003e\n\u003ccode\u003ewrangler secret put MY_BUCKET\u003c/code\u003e\u003cbr\u003e\n\u003ccode\u003eYOUR-R2-STORAGE-API-KEY\u003c/code\u003e\u003cbr\u003e\n\n\n\n1. binding in wrangler.toml\n2. secret\n3. Replace src/index.js with the one from this repo ```index.js```\n4. deploy your worker\n\u003ccode\u003enpm wrangler deploy\u003c/code\u003e\u003cbr\u003e\n\nopen ```bucket_buddy.py``` and append this line with your worker URL\u003cbr\u003e\n\n\u003ccode\u003eself.api_url = 'https://your-worker.workers.dev'\u003c/code\u003e\u003cbr\u003e\n\n***make sure your bucket is configured for public access***\n\n### run\u003ccode\u003epython bucket_buddy.py\u003c/code\u003e\u003cbr\u003e\n\u003cimg width=\"818\" alt=\"Screenshot 2024-09-21 at 10 14 05 PM\" src=\"https://github.com/user-attachments/assets/8e780f38-53cd-4e4d-9491-e5eb24fe4e87\"\u003e\n\n\nalternatively upload the index.html to you bucket then access the buddy at https://your-worker.workers.dev/index.html\n\n\n## coors cross-origin\n\n```[\n  {\n    \"AllowedOrigins\": [\n      \"http://YOUR-BUCKET-NAME\",\n      \"https://YOUR-WORKER-NAME\"\n    ],\n    \"AllowedMethods\": [\n      \"GET\",\n      \"PUT\",\n      \"POST\",\n      \"DELETE\"\n    ],\n    \"AllowedHeaders\": [\n      \"*\"\n    ],\n    \"ExposeHeaders\": [\n      \"Content-Length\",\n      \"Content-Type\"\n    ],\n    \"MaxAgeSeconds\": 3600\n  }\n]\n\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-self%2Fbucket-buddy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsudo-self%2Fbucket-buddy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsudo-self%2Fbucket-buddy/lists"}