b64597fd3f7faeadad47cfaedc57b341b692d426
Move direct URN->CivitAI download handling into the frontend and enrich backend metadata. Removed server-side immediate URN download exposure and adjusted comment numbering. Backend now selects a primary file from resolved CivitAI model info, includes model_id, version_id, size, and a modelVersionId query on model URLs. Frontend: add renderDownloadSourceSection to render download buttons and CivitAI model-card links, display file sizes, and format names. Store missingModels for later updates; render a placeholder URN download section while resolving; when URN resolution returns, inject civitai info into the missing entry, build a download_source object, replace the placeholder with the rendered download UI, and attach the download button handler. Improved error handling and model URL construction to include modelVersionId when available.
ComfyUI Model Linker Extension
A ComfyUI extension that helps users relink missing models in workflows using fuzzy matching.
https://github.com/user-attachments/assets/fedf3645-aa66-49f7-b01d-8c3b5127faf4
Features
- Scans all nodes in workflows to find missing models
- Uses fuzzy matching to suggest similar model files
- Updates workflow JSON in UI/memory (user saves themselves)
- Supports all node types
- Optional auto-resolve for 100% confidence matches
Installation
- Clone or download this repository
- Place it in your ComfyUI custom_nodes/ directory
- Restart ComfyUI
Usage
- Open a workflow with missing models
- Click the "🔗 — Model Linker" button in ComfyUI's top menu bar
- Review missing models and their suggested matches
- Click "Resolve" for individual models or "Auto-Resolve 100% Matches" for perfect matches
- Save your workflow when ready
Features
- Subgraph Support: Automatically detects and handles missing models inside subgraphs
- Smart Matching: Shows 100% confidence matches when available, otherwise shows best matches (≥70% confidence)
- Fuzzy Matching: Uses intelligent similarity scoring to find model files even with different naming
- Auto-Resolve: One-click resolution for all perfect matches
Languages
JavaScript
47.5%
Python
45.7%
CSS
6.8%
