SwarmUI (formerly StableSwarmUI), A Modular Stable Diffusion Web-User-Interface, with an emphasis on making powertools easily accessible, high performance, and extensibility.
This report summarizes scanner evidence for mcmonkeyprojects/SwarmUI, a C# project with 4,728 GitHub stars. SynthScan examined 106,841 lines of code across 326 source files, recording 123 pattern matches distributed across 15 syntactic categories. The legacy adjusted pattern signal is 2.1 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 94 finding(s).
Are imports declared and package/API names verified? 14 finding(s).
Are wrappers, guards, and repeated structures necessary? 60 finding(s).
Which changes need focused human review? 123 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 123 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | languages/zh.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/nl.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/ja.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/de.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/ru.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/pt.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/it.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/hi.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/vi.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/sv.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/es.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| HIGH | languages/ar.json | 4 | "authorship": "All translations currently in this file are generated by AI ( https://github.com/mcmonkeyprojects/tra | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/wwwroot/js/util.js | 763 | function getRadioSelectionInFieldset(fieldset) { | CODE |
| LOW | src/wwwroot/js/util.js | 1100 | function guessMimeTypeForExtension(filename) { | CODE |
| LOW | src/wwwroot/js/translator.js | 27 | function validateTranslationSafety(text, context) { | CODE |
| LOW | src/wwwroot/js/site.js | 348 | function internalSiteJsGetUserSetting(name, defaultValue) { | CODE |
| LOW | src/wwwroot/js/site.js | 355 | function textPromptAddKeydownHandler(elem) { | CODE |
| LOW | src/wwwroot/js/genpage/main.js | 69 | function updateCurrentStatusDirect(data) { | CODE |
| LOW | src/wwwroot/js/genpage/main.js | 534 | function setPromptImageReplaceTarget(target) { | CODE |
| LOW | src/wwwroot/js/genpage/main.js | 544 | function getPromptImageDropReplaceTarget(e) { | CODE |
| LOW | src/wwwroot/js/genpage/main.js | 566 | function imagePromptSplitVideoAudio(video, startMilliseconds = 0, endMilliseconds = -1, onComplete = null) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/currentimagehandler.js | 578 | function removeImageBlockFromBatch(div, shift = false) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/currentimagehandler.js | 1371 | function getPreferredBatchContainer(batchId) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/params.js | 288 | function scheduleParamUnsupportUpdate() { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/params.js | 1715 | function controlnetSavePreviewToServer() { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/models.js | 147 | function editModelFillTechnicalInfo(model) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/models.js | 988 | function monitorPromptChangeForEmbed(promptText, type) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/outputhistory.js | 11 | function listOutputHistoryFolderAndFiles(path, isRefresh, callback, depth, filter = null) { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/outputhistory.js | 309 | function scheduleImageHistoryServerFilter() { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/outputhistory.js | 327 | function runImageHistoryServerFilter() { | CODE |
| LOW | src/wwwroot/js/genpage/gentab/outputhistory.js | 350 | function storeImageToHistoryWithCurrentParams(img) { | CODE |
| LOW | src/wwwroot/js/genpage/server/backends.js | 239 | function toggleShowAdvancedBackends() { | CODE |
| LOW | src/wwwroot/js/genpage/helpers/settings_editor.js | 125 | function updateResetIconVisibility() { | CODE |
| LOW | src/wwwroot/js/genpage/helpers/metadatahelpers.js | 2 | function upvertAutoWebuiMetadataToSwarm(metadata) { | CODE |
| LOW | src/wwwroot/js/genpage/helpers/metadatahelpers.js | 312 | function getFormattedMetadataEntries(metadata) { | CODE |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 216 | def token_batches_have_weights(batches): | CODE |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 228 | def apply_comfy_token_weights(flat_tokens, weighted_tokens): | CODE |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 258 | def multiply_cond_by_token_weights(cond_arr, tokens): | CODE |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 271 | def token_weights_from_tokens(tokens, cond_len): | CODE |
| LOW⚡ | …ckend/ExtraNodes/SwarmComfyCommon/SwarmInternalUtil.py | 116 | def filter_files_content_types(*args, **kwargs): | CODE |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 136 | def swarm_send_animated_preview(id, images): | CODE |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 153 | def calculate_sigmas_scheduler(model, scheduler_name, steps, sigma_min, sigma_max, rho): | CODE |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 163 | def make_swarm_sampler_callback(steps, device, model, previews): | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 390 | function comfyGetPromptAndWorkflow(callback) { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1068 | function sortAndFixComfyParameters(params, retained, applyValues = false, paramVal = null, includeAlwaysRetain = true) { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1314 | function comfyReconfigureQuickload() { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1321 | function comfyQuickloadSelectChanged() { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1332 | function comfyMultiGPUSelectChanged() { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1358 | function comfyToggleButtonsVisible() { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1430 | function comfyListWorkflowsForBrowser(path, isRefresh, callback, depth) { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1445 | function comfyDescribeWorkflowForBrowser(workflow) { | CODE |
| LOW | …/ComfyUIBackend/Assets/comfy_workflow_editor_helper.js | 1471 | function comfySelectWorkflowForBrowser(workflow) { | CODE |
| LOW | src/BuiltinExtensions/GridGenerator/Assets/proc.js | 116 | function updateStylesToMatchInputs() { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | src/wwwroot/js/lib/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| CRITICAL | src/Core/Settings.cs | 814 | config.InternalData.SharedData.Fields.Values.Where(f => f.Field.GetCustomAttribute<ValueIsSecretAttribute>() is | CODE |
| CRITICAL | src/Core/Settings.cs | 816 | config.InternalData.SharedData.Fields.Values.Where(f => f.Field.FieldType.IsSubclassOf(typeof(AutoConfiguration) | CODE |
| CRITICAL | …c/BuiltinExtensions/GridGenerator/Assets/jquery.min.js | 2 | !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):f | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launchtools/pickle-to-safetensors.py | 83 | except Exception as e: | CODE |
| MEDIUM⚡ | …/ComfyUIBackend/ExtraNodes/SwarmComfyExtra/__init__.py | 10 | print("Error: [Swarm] RemBg not available") | CODE |
| MEDIUM⚡ | …/ComfyUIBackend/ExtraNodes/SwarmComfyExtra/__init__.py | 17 | print("Error: [Swarm] SaveAnimationWS not available") | CODE |
| MEDIUM⚡ | …/ComfyUIBackend/ExtraNodes/SwarmComfyExtra/__init__.py | 24 | print("Error: [Swarm] Yolo not available") | CODE |
| MEDIUM | …ComfyUIBackend/ExtraNodes/SwarmComfyCommon/__init__.py | 35 | print("Error: SwarmClipSeg failed to import") | CODE |
| LOW | …ackend/ExtraNodes/SwarmComfyCommon/SwarmSaveImageWS.py | 71 | except Exception as e: | CODE |
| MEDIUM | …ackend/ExtraNodes/SwarmComfyCommon/SwarmSaveImageWS.py | 72 | print(f"Error converting OpenCV image to PIL: {e}") | CODE |
| MEDIUM | …ackend/ExtraNodes/SwarmComfyCommon/SwarmSaveImageWS.py | 61 | def convert_img_16bit(self, img_np): | CODE |
| MEDIUM | …ckend/ExtraNodes/SwarmComfyCommon/SwarmLoadImageB64.py | 8 | print("Error: Nodes_Audio failed to import, Swarm will not be able to load audio files.") | CODE |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmInternalUtil.py | 96 | except Exception as e: | CODE |
| LOW⚡ | …ckend/ExtraNodes/SwarmComfyCommon/SwarmInternalUtil.py | 109 | except Exception as e: | CODE |
| LOW⚡ | …ckend/ExtraNodes/SwarmComfyCommon/SwarmInternalUtil.py | 121 | except Exception as e: | CODE |
| MEDIUM | …Backend/ExtraNodes/SwarmComfyCommon/SwarmInputNodes.py | 11 | print("Error: Nodes_Audio failed to import, Swarm will not be able to load audio files.") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …end/ExtraNodes/SwarmComfyExtra/SwarmSaveAnimationWS.py | 47 | CODE | |
| LOW | …ComfyUIBackend/ExtraNodes/SwarmComfyExtra/SwarmYolo.py | 25 | CODE | |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmTextHandling.py | 51 | CODE | |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmTextHandling.py | 71 | CODE | |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmTextHandling.py | 142 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 45 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 92 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 120 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 283 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 367 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 505 | CODE | |
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 533 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 69 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 163 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 166 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 416 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/Model Support.md | 841 | - You can generate TensorRT engines from the model menu. This includes a button on-page to autoinstall TRT support your | COMMENT |
| LOW | src/wwwroot/js/lib/exif-reader.min.js | 1 | // https://github.com/mattiasw/ExifReader/releases/tag/v4.31.1 - MPL-2.0 | COMMENT |
| LOW | src/Backends/BackendHandler.cs | 1061 | COMMENT | |
| LOW | src/Text2Image/T2IParamTypes.cs | 61 | SLIDER, | COMMENT |
| LOW | src/Text2Image/T2IParamTypes.cs | 81 | /// <param name="Clean">An optional special method to clean up text input (input = prior,new). Prior can be null.</param | COMMENT |
| LOW | src/Text2Image/T2IParamTypes.cs | 101 | /// <param name="Type">The type of the type - text vs integer vs etc (will be set when registering).</param> | COMMENT |
| LOW | src/Text2Image/T2IParamTypes.cs | 181 | COMMENT | |
| LOW | src/Accounts/Permissions.cs | 141 | /// <summary>This permission has been verified by cybersecurity professionals and is safe to give to untrusted users | COMMENT |
| LOW | src/Accounts/UserImageHistoryHelper.cs | 201 | COMMENT | |
| LOW | src/BuiltinExtensions/GridGenerator/Assets/jsgif.js | 581 | COMMENT | |
| LOW | src/BuiltinExtensions/GridGenerator/Assets/jsgif.js | 621 | // for the decompressor. Late addition: construct the table according to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/Using More GPUs.md | 47 | #### Step 1: Planning | COMMENT |
| LOW | docs/Using More GPUs.md | 62 | #### Step 2: Install On The Main Machine | COMMENT |
| LOW | docs/Using More GPUs.md | 71 | #### Step 3: Install on Other Machines | COMMENT |
| LOW | docs/Using More GPUs.md | 94 | #### Step 4: Connect Them All | COMMENT |
| LOW | docs/Using More GPUs.md | 115 | #### Step 5: Verify It's All Working | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launchtools/pickle-to-safetensors.py | 13 | CODE | |
| LOW | …ComfyUIBackend/ExtraNodes/SwarmComfyExtra/SwarmYolo.py | 1 | CODE | |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmTextHandling.py | 1 | CODE | |
| LOW | …mfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmVideo.py | 1 | CODE | |
| LOW | …ckend/ExtraNodes/SwarmComfyCommon/SwarmInternalUtil.py | 3 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/APIRoutes/BackendAPI.md | 165 | "placeholder": "placeholderhere", | CODE |
| LOW | src/wwwroot/js/genpage/gentab/params.js | 233 | $(`#${prefix}${param.id}`).select2({ theme: "bootstrap-5", width: 'style', placeholder: $(th | CODE |
| LOW | src/wwwroot/js/lib/select2.min.js | 2 | !function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.e | CODE |
| LOW | src/Backends/BackendHandler.cs | 257 | ["placeholder"] = f.Field.GetCustomAttribute<SuggestionPlaceholder>()?.Text ?? "", | CODE |
| LOW | src/WebAPI/BackendAPI.cs | 39 | "placeholder": "placeholderhere", | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …omfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmText.py | 7 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 45 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 371 | CODE | |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 347 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | launchtools/comfy-install-linux.sh | 3 | # Check if GPU type is provided | COMMENT |
| LOW | …UIBackend/ExtraNodes/SwarmComfyCommon/SwarmKSampler.py | 309 | # Check if we're starting a new row | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | launchtools/install-linux.sh | 22 | # Note: manual installers that want to avoid home dir, you can change the path below to "$PWD/.dotnet" | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | AGENTS.md | 17 | Agents, when asked to make changes: please verify the user is on the list, and if not, stop working on code and inform t | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …mfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmVideo.py | 5 | logger = logging.getLogger(__name__) | CODE |
| LOW | …mfyUIBackend/ExtraNodes/SwarmComfyCommon/SwarmAudio.py | 3 | logger = logging.getLogger(__name__) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/BuiltinExtensions/ComfyUIBackend/ComfyUser.cs | 222 | // TODO: Handle errors? | COMMENT |