{"id":15408552,"url":"https://github.com/yusukebe/cf-s3-uploader","last_synced_at":"2025-10-14T05:17:02.946Z","repository":{"id":46287215,"uuid":"423686473","full_name":"yusukebe/cf-s3-uploader","owner":"yusukebe","description":"Cloudflare Worker for uploading images to Amazon S3","archived":false,"fork":false,"pushed_at":"2021-11-02T03:24:59.000Z","size":134,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-30T10:47:18.022Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusukebe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-02T02:48:43.000Z","updated_at":"2025-03-01T15:14:57.000Z","dependencies_parsed_at":"2022-08-29T17:32:06.976Z","dependency_job_id":null,"html_url":"https://github.com/yusukebe/cf-s3-uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yusukebe/cf-s3-uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcf-s3-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcf-s3-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcf-s3-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcf-s3-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusukebe","download_url":"https://codeload.github.com/yusukebe/cf-s3-uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusukebe%2Fcf-s3-uploader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018012,"owners_count":26086237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-10-01T16:34:25.364Z","updated_at":"2025-10-14T05:17:02.926Z","avatar_url":"https://github.com/yusukebe.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# cf-s3-uploader\n\nCloudflare Worker for uploading images to Amazon S3.\n\n## Set up\n\nFirst, git clone:\n\n```bash\n$ https://github.com/yusukebe/cf-s3-uploader.git\n$ cd cf-s3-uploader\n```\n\nCopy `wrangler.exmple.toml` to `wrangler.tmol`:\n\n```bash\n$ cp wrangler.example.toml wrangler.toml\n```\n\n## Variables\n\n### Environment variables\n\nEnviroment variables are:\n\n- `S3_BUCKET` - Your S3 bucket name\n- `S3_REGION` - S3 region name\n\nTo set these, `wrangler.toml`\n\n```toml\n[vars]\nS3_BUCKET = \"your_bucket_name\"\nS3_REGION = \"s3_region_name\"\n```\n\n### Secret variables\n\nSecret variables are:\n\n- `NAME` - User name of basic auth\n- `PASS` - User password of basic auth\n- `AWS_ID` - AWS access key ID\n- `AWS_SECRET` - AWS secret access key\n\nTo set these, use `wrangler secret put` command:\n\n```bash\n$ wrangler secret put NAME\n```\n\n## Publish\n\nTo publish to your Cloudflare Workers:\n\n```bash\n$ wrangler publish\n```\n\n## Endpoints\n\n### `/upload`\n\nHeader:\n\nTo pass the Basic Auth, add the Base64 string of \"user:pass\" to `Authorization` header.\n\n```\nAuthorization: Basic ...\n```\n\nBody:\n\nValue of `body` is Basic64 string of image binary.\n\n```json\n{\n  \"body\": \"Base64 Text...\"\n}\n```\n\n## Use with Shortcuts\n\nAwesome!!!\n\n![Screenshot](https://user-images.githubusercontent.com/10682/139781916-8c22a6ae-b21b-48ff-ad1c-08d396f5cdd0.gif)\n\nSetting shortcuts like this:\n\n![Screenshot](https://s3.ap-northeast-1.amazonaws.com/yusukebe.com/images/57f68c29ea5d0af4e9480ad04e89d152.png)\n\n## Author\n\nYusuke Wada \u003chttps://github.com/yusukebe\u003e\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukebe%2Fcf-s3-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusukebe%2Fcf-s3-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusukebe%2Fcf-s3-uploader/lists"}