A Chrome extension that allows you to right-click on any image in your browser and send it directly to a ComfyUI workflow.
- Right-click context menu: Send images to ComfyUI with a simple right-click
- Multiple workflow support: Configure and choose from multiple workflows via context menu
- Automatic workflow integration: Automatically finds and updates LoadImage nodes in your workflow
- Random seed generation: Automatically randomizes all seed values for unique results every time
- Custom workflow support: Configure any ComfyUI workflow in API format
- Easy configuration: Simple popup interface for basic settings
- Advanced options: Detailed settings page for workflow management
- Connection testing: Built-in tool to verify ComfyUI connectivity
- Notifications: Visual feedback on successful uploads or errors
- Clone or download this repository to your local machine
- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" using the toggle in the top right corner
- Click "Load unpacked"
- Select the
comfy_chromefolder - The extension should now appear in your extensions list
The extension includes placeholder icons. For better visuals, you can create custom icons:
- See CREATE_ICONS.md for instructions on generating proper icons from the provided SVG
- Click the extension icon in your Chrome toolbar
- Enter your ComfyUI server URL (e.g.,
http://127.0.0.1:8188) - Click "Save Settings"
- Click "Manage Workflows" to configure your workflows
- Click the extension icon and then "Manage Workflows" (or right-click the extension icon and select "Options")
- Enter your ComfyUI server URL and click "Save URL"
- Click "+ Add New Workflow" to create a new workflow
- Fill in the workflow details:
- Workflow Name: Give it a descriptive name (e.g., "Portrait Enhancement", "Background Removal")
- Workflow JSON: In ComfyUI, click "Save (API Format)" and paste the JSON content here
- Image Node ID (Optional): Specify which LoadImage node to use if you have multiple
- Click "Save Workflow"
- Repeat to add more workflows
- Each workflow can be edited or deleted using the buttons next to it
- Use the "Test Connection" button to verify connectivity to your ComfyUI server
With No Workflows Configured:
- Navigate to any webpage with images
- Right-click on an image
- Select "Send to ComfyUI (no workflow)" from the context menu
- The image will be uploaded to ComfyUI (but no workflow will be queued)
With One Workflow Configured:
- Navigate to any webpage with images
- Right-click on an image
- Select "Send to ComfyUI: [Workflow Name]" from the context menu
- The workflow will execute with your image
With Multiple Workflows Configured:
- Navigate to any webpage with images
- Right-click on an image
- Hover over "Send to ComfyUI" to see the submenu
- Select the workflow you want to use from the list
- The extension will:
- Download the image
- Upload it to your ComfyUI server
- Queue the selected workflow with the image
- Show a notification when complete
- If no workflow is configured, the extension will only upload the image to ComfyUI
- If a workflow is configured, the extension will:
- Upload the image
- Find the LoadImage node in your workflow (automatically or using your specified node ID)
- Update the node with the uploaded image filename
- Randomize all seed values in the workflow (generates new random seeds for every execution)
- Queue the workflow for execution
- Open ComfyUI in your browser
- Load or create your desired workflow
- Click the "Save (API Format)" button in ComfyUI
- This will download a JSON file
- Open the JSON file and copy its contents
- Paste into the extension's "Workflow JSON (API Format)" field
- Make sure you've entered the ComfyUI server URL in the extension settings
- Verify the URL is correct and includes the protocol (http:// or https://)
- Ensure ComfyUI is running and accessible at the configured URL
- Check if you can access ComfyUI directly in your browser
- Verify there are no firewall or CORS issues
- Use the "Test Connection" button in Advanced Settings to diagnose
- Make sure you've configured a workflow in the Advanced Settings
- Verify the workflow JSON is valid (it should be in API format from ComfyUI)
- Check the browser console for any errors
- Ensure your workflow has at least one LoadImage node
- Specify the exact LoadImage node ID in Advanced Settings
- Make sure the node ID matches a LoadImage node in your workflow JSON
comfy_chrome/
├── manifest.json # Extension configuration
├── background.js # Service worker handling context menu and API calls
├── popup.html # Quick settings popup UI
├── popup.js # Popup logic
├── options.html # Advanced settings page UI
├── options.js # Options page logic
├── icons/ # Extension icons
│ ├── icon16.png
│ ├── icon48.png
│ ├── icon128.png
│ └── icon.svg
├── CREATE_ICONS.md # Icon creation instructions
└── README.md # This file
- Google Chrome or Chromium-based browser
- ComfyUI running on an accessible server
- Make changes to the extension files
- Go to
chrome://extensions/ - Click the refresh icon on the extension card
- Test your changes
This extension uses the following ComfyUI API endpoints:
POST /upload/image- Upload imagesPOST /prompt- Queue workflowsGET /system_stats- Test connectivity (optional)
- This extension only communicates with the ComfyUI server URL you configure
- Images are sent directly from your browser to your ComfyUI server
- No data is sent to third-party servers
- All settings are stored locally in your browser using Chrome's storage API
MIT License - Feel free to modify and distribute
Contributions are welcome! Please feel free to submit issues or pull requests.
- Added support for multiple workflows
- Context menu now shows submenu with all configured workflows
- New workflow management UI with add/edit/delete functionality
- Workflows are automatically updated in context menu when changed
- Popup shows list of configured workflows
- Initial release
- Right-click context menu for images
- Configurable ComfyUI server URL
- Workflow JSON support
- Automatic LoadImage node detection
- Automatic random seed generation for all nodes
- Connection testing
- Browser notifications