Minor Improvements Applied:
Nullish Coalescing Operator (??) - Line 17
Changed: this.widgets_values?.[0] || defaultUrl
To: this.widgets_values?.[0] ?? defaultUrl
Benefit: More precise - only uses default if value is null or undefined, not for empty strings or 0
Iframe Error Handling - Lines 38-40
Added: iframe.addEventListener("error", () => { console.error(...) })
Benefit: Logs to console if iframe fails to load, helps debugging
URL Validation - Lines 56-63
Added: try { new URL(url); iframe.src = url; } catch { console.error(...) }
Benefit: Validates URL format before attempting to load, prevents invalid URL errors
Improved Height Calculation - Line 70
Changed: const safeHeight = size[1] - 90;
To: const safeHeight = Math.max(size[1] - 90, 100);
Benefit: Ensures minimum height of 100px, prevents negative/zero heights on small nodes
Cleanup Handler - Lines 83-86
Added: this.onRemoved = function() { ... }
Benefit: Cancels animation timer and clears iframe when node is deleted, prevents memory leaks
✨ ComfyUI Lora Manager Web Frame
A simple custom node that embeds the full ComfyUI-Lora-Manager web interface directly into your ComfyUI workflow graph. This eliminates the need to have a separate browser tab open for managing your LoRAs and recipes.
Prerequisites
This node is a wrapper and requires the original extension to be installed and active.
- Install ComfyUI-Lora-Manager: Use ComfyUI Manager or install manually from willmiao/ComfyUI-Lora-Manager.
- Verify it works: Ensure you can access the manager at
http://127.0.0.1:8000/loras(or your specific port) in your browser before using this node.
Installation
Option 1: Via ComfyUI Manager (Recommended)
- Open ComfyUI Manager
- Search for "Lora Manager Web Frame"
- Click Install
- Restart ComfyUI
Option 2: Manual Installation from ZIP
- Download the repository as a ZIP file from GitHub
- Extract the ZIP file
- Rename the extracted folder from
LoraMangerWebFrame-maintoLoraMangerWebFrame - Move the renamed folder to your ComfyUI
custom_nodesdirectory:ComfyUI/custom_nodes/LoraMangerWebFrame/ - Restart ComfyUI
Option 3: Git Clone
cd ComfyUI/custom_nodes
git clone https://github.com/revisiontony/LoraMangerWebFrame.git
Usage
- Add the "✨ Lora Manager Web Frame" node to your workflow
- The node will display the embedded Lora Manager interface
- By default, it connects to
http://127.0.0.1:8000/loras
Changing the Address
If your ComfyUI instance is running on a different port or remote address, you can update the target URL directly on the node:
- Click the Address Bar: Click the text input field at the top of the node displaying the URL
- Edit: Type in your specific address (e.g.,
http://127.0.0.1:8000/checkpoints) - Refresh: Click the Update / Go button to reload the embedded frame
URL Persistence
The node automatically saves your custom URL! When you change the URL and save your workflow (Ctrl+S), the custom URL is preserved. The next time you:
- Load the workflow
- Restart ComfyUI
- Share the workflow with others
...the custom URL will be automatically restored. Each node instance can remember its own URL, so you can have multiple nodes pointing to different pages (loras, checkpoints, embeddings, recipes, etc.).
Example Workflows
Check out the example workflow files included in the repository to see the node in action.
Contributing
See CONTRIBUTING.md for guidelines.
