{"id":15714374,"url":"https://github.com/paulpierre/sd-webui-r2","last_synced_at":"2026-05-09T07:03:35.440Z","repository":{"id":241542728,"uuid":"806803112","full_name":"paulpierre/sd-webui-r2","owner":"paulpierre","description":"☁️ sd-webui-r2: automatically upload image generations to Cloudflare R2 and Slack like Midjourney","archived":false,"fork":false,"pushed_at":"2024-05-29T17:39:29.000Z","size":2592,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-24T06:43:21.578Z","etag":null,"topics":["a1111-stable-diffusion-webui","cloudflare","cloudflare-r2","diffusion-models","extension","midjourney","plugin","r2","sd","slack","slack-api","stable-diffusion","stable-diffusion-webui","stable-diffusion-webui-plugin","stablediffusion","webui"],"latest_commit_sha":null,"homepage":"https://github.com/paulpierre","language":"Python","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/paulpierre.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}},"created_at":"2024-05-28T00:02:23.000Z","updated_at":"2024-05-29T17:39:32.000Z","dependencies_parsed_at":"2024-05-29T01:28:47.671Z","dependency_job_id":null,"html_url":"https://github.com/paulpierre/sd-webui-r2","commit_stats":null,"previous_names":["paulpierre/sd-webui-r2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/paulpierre/sd-webui-r2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpierre%2Fsd-webui-r2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpierre%2Fsd-webui-r2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpierre%2Fsd-webui-r2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpierre%2Fsd-webui-r2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulpierre","download_url":"https://codeload.github.com/paulpierre/sd-webui-r2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulpierre%2Fsd-webui-r2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32810381,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["a1111-stable-diffusion-webui","cloudflare","cloudflare-r2","diffusion-models","extension","midjourney","plugin","r2","sd","slack","slack-api","stable-diffusion","stable-diffusion-webui","stable-diffusion-webui-plugin","stablediffusion","webui"],"created_at":"2024-10-03T21:36:31.750Z","updated_at":"2026-05-09T07:03:35.425Z","avatar_url":"https://github.com/paulpierre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌩️ sd-webui-r2\n\n\u003cdiv align=\"center\"\u003e\nA portal gun for your Stable Diffusion WebUI generated images\n\n\u003cimg src=\"https://media0.giphy.com/media/v1.Y2lkPTc5MGI3NjExcDBzZGF2azBnZ2F0YzJqbzBodWc5enZhaDM1YmFqZnQ1cnZmOG9mZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/3oriNTivEJZ1ASRnMc/giphy.gif\" width=\"300\" /\u003e\u003c/div\u003e\n\nWish your instance of Stable Diffusion WebUI behaved more like Midjourney?\n\nYou've found the right repo. sd-webui-2 is an extension that leverages sd webui callbacks to automatically upload generated images and configuration metadata as JSON to Cloudflare's R2 bucket storage. As a bonus, it also provides an optional feature to post the uploaded data to a custom Slack webhook for easy sharing and collaboration.\n\n## 🚀 Features\n\n- 📷 Uploads generated images to Cloudflare R2 storage\n- 📝 Uploads JSON metadata alongside the images\n- 🔒 Securely stores and retrieves images and metadata\n- 💬 Optionally posts the uploaded data to a Slack webhook for sharing\n- 🔗 Shares image and json link with image preview in Slack\n\n## 🛠️ Installation\n\n1. In Stable Diffusion Web UI go to Extensions and click on \"Install from URL\" and paste the following URL\n\n    ```\n    https://github.com/paulpierre/sd-webui-r2\n    ```\n\n    ![image](https://github.com/paulpierre/sd-webui-r2/blob/main/img/7.png?raw=true)\n\n2. Click install and the extension will be installed\n3. Click on \"Settings\"\n    ![image](https://github.com/paulpierre/sd-webui-r2/blob/main/img/2.png?raw=true)\n\n4. Click on \"R2 Settings\" towards the bottom of the page\n    \n    ![image](https://github.com/paulpierre/sd-webui-r2/blob/main/img/3.png?raw=true)\n\n5. Provide your credentials from Cloudflare R2, if you haven't already, [go ahead and create one for free](https://developers.cloudflare.com/r2/)\n\n    ![image](https://github.com/paulpierre/sd-webui-r2/blob/main/img/2.png?raw=true)\n\n    All the fields are required, for r2 domain you can just keep the default root domain if you don't have a custom domain setup.\n\n    - **R2 Access Key ID**: Your Cloudflare R2 access key ID.\n    - **R2 Secret Access Key**: Your Cloudflare R2 secret access key.\n    - **R2 Upload Path**: The desired upload path within your R2 bucket (default: \"assets\").\n    - **Local Upload Path**: The local directory where the images and metadata will be temporarily stored before uploading (default: \"output\").\n    - **R2 Endpoint**: The endpoint URL for your R2 bucket.\n    - **R2 Bucket Name**: The name of your R2 bucket.\n    - **R2 Domain**: The domain associated with your R2 bucket.\n    - **Slack Webhook URL (optional)**: The URL of your Slack webhook for posting the uploaded data.\n\n1. Optionally you can automatically post your generated image to a slack webhook via [Incoming Webhooks](https://api.slack.com/messaging/webhooks). Below you can see what it would look like.\n    ![image](https://github.com/paulpierre/sd-webui-r2/blob/main/img/8.png?raw=true)\n\n    - Model and prompt / negative prompt are displayed\n    - Image URL and image preview are provided\n    - Link to the JSON metadata is provided\n\n## ⚙️ Environment variables\nEnvironment variables are supported\n\n```bash\n# Example .env or environment variable export setup\nR2_BUCKET_NAME=production-bucket\nR2_UPLOAD_PATH=assets\nR2_DOMAIN=example.com\nR2_ACCESS_KEY_ID=e2a2cf725d0c49d887b9b0a815c4cb56\nR2_SECRET_ACCESS_KEY=2565b9d469be4b549e426f1feb08c952\nR2_ENDPOINT=https://r2.cloudflare.com/1/production-bucket\n```\n\n\n\n🖼️ Usage\nGenerate an image using the Stable Diffusion WebUI as usual.\nThe extension will automatically upload the generated image and its corresponding JSON metadata to your specified R2 bucket.\n\nIf a Slack webhook URL is provided, the extension will also post the uploaded data to the specified Slack channel.\nThe generated shareable links will be logged in the console for easy access.\n\n### 📄 JSON Metadata Format\nThe JSON metadata file contains the following information:\n```json\n{\n   \"prompt\":\"picture of morty from rick and morty, ultra detailed, 135mm\",\n   \"negative_prompt\":\"\",\n   \"width\":512,\n   \"height\":512,\n   \"sampler_name\":\"DPM++ 2M\",\n   \"cfg_scale\":7,\n   \"steps\":20,\n   ... etc.\n}\n```\n\n## 📜 License\nThis extension is released under the MIT License.\n\nEnjoy. PRs welcome and happy generating! 🎉","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulpierre%2Fsd-webui-r2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulpierre%2Fsd-webui-r2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulpierre%2Fsd-webui-r2/lists"}