Skip to content

[Feature Request]: "comfy://" URI Protocol (experimental) #1228

@snomiao

Description

@snomiao

Prerequisites

  • I have searched the existing issues and checked the recent builds/commits
  • I have read the documentation and this feature is not already available
  • This is a single feature request (not multiple features combined)

Problem Statement

Desktop should can be able to open by comfy:// protocol, this enables web pages providing one-click feature to quickly import-comfy-workflows/install custom nodes/insert-customnode-into-current-workflow, it makes browser and comfyui-electron work together seamlessly

Ref: https://www.electronjs.org/docs/latest/api/protocol

Proposed Solution

  1. learn how to add protocol to system by https://www.electronjs.org/docs/latest/api/protocol
  2. Register the comfy:// to system, (also remove the protocol when uninstall)
  3. When ComfyUI launch, parse the URI args startsWith "comfy://"
  4. When comfy://install-custom-node/:nodeId is called, call comfyui-manager module to install the customNode by :nodeId param
  5. When comfy://import/:nodeId is called, call comfyui-manager module to install the customNode by :nodeId param

Potential workflow

  1. Go to registry.comfy.org or any website that hosts CustomNode/workflows/media-resources (e.g. github)
  2. Press "Install This Node" button, or "Import This Workflow" button
  3. and ComfyUI will be launched and prompt user to install/import that customnode/workflow/resources

Impact Level

Low (Minor enhancement)

Alternatives Considered

No response

Additional information

In registry, the install-button will be make in is this PR

┆Issue is synchronized with this Notion page by Unito

Metadata

Metadata

Labels

enhancementNew feature or requeststaleIssue has not had recent activity or appears to be solved. Stale issues will be automatically closed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions