Scan your whole stack
From OX Research Newsroom
Are you using @comfyorg/comfyui-desktop-bridge-types?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.24.1
@comfyorg/comfyui-desktop-bridge-types was last scanned on 30 Nov 2026 at version 0.24.1. Risk score 5 of 100 (low). No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.24.1 LATEST | 30 Nov 2026 | 1 rule fired |
| 0.24.0 | 30 Nov 2026 | 1 rule fired |
| 0.23.0 | 25 Nov 2026 | 1 rule fired |
| 0.21.0 | 24 Nov 2026 | Not shown |
| 0.19.0 | 22 Nov 2026 | Not shown |
Findings for v0.24.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The package points at a source repository whose own package manifest names a different package. Copies of well-known projects do this to borrow their reputation. A rename or a fork can look the same, so treat it as a prompt to check where the package really comes from.
LOWThe score describes 0.24.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
TypeScript definitions for window.__comfyDesktop2, the API Comfy Desktop
exposes to the frontend it hosts.
npm install --save-dev @comfyorg/comfyui-desktop-bridge-types
import type { ComfyDesktop2Bridge } from '@comfyorg/comfyui-desktop-bridge-types'
declare global {
interface Window {
__comfyDesktop2?: ComfyDesktop2Bridge
}
}
Which members actually exist at runtime is decided by the Desktop binary the user is running, and Desktop binaries update far more slowly than the frontend that ships into them. Callers must guard every access and carry a fallback — including when the member exists but rejects:
async function openModelAccessPage(url: string): Promise<void> {
try {
if ((await window.__comfyDesktop2?.openModelAccessPage?.(url)) === true) return
} catch (error) {
console.error('Desktop could not open the access page:', error)
}
window.open(url, '_blank', 'noopener,noreferrer')
}
ComfyDesktop2BridgeImplementation is the provider-side counterpart: it makes
every top-level member required, so Desktop's preload cannot claim the contract
while omitting part of it.
A Comfy page that Desktop shows in its Apps view gets these objects instead,
and nothing else of the bridge above: window.comfyDesktopAuth, Desktop's
account session, window.comfyDesktopLocal, a ComfyUI on this computer,
window.comfyDesktopTelemetry, the page's usage events,
window.comfyDesktopOutputs, Desktop's output dialog,
window.comfyDesktopAssets, the person's pictures for the page's inputs, and
window.comfyDesktopRuns, where the page says when a run starts and ends.
reportRun({ running, runs }) can also list the page's runs, with where each
runs, its state and its step, for Desktop's run overview. Desktop builds
before the run overview ignore runs.
import type {
ComfyDesktopHostedAssetsBridge,
ComfyDesktopHostedAuthBridge,
ComfyDesktopHostedLocalBridge,
ComfyDesktopHostedOutputsBridge,
ComfyDesktopHostedRunsBridge,
ComfyDesktopHostedTelemetryBridge
} from '@comfyorg/comfyui-desktop-bridge-types'
declare global {
interface Window {
comfyDesktopAuth?: ComfyDesktopHostedAuthBridge
comfyDesktopLocal?: ComfyDesktopHostedLocalBridge
comfyDesktopTelemetry?: ComfyDesktopHostedTelemetryBridge
comfyDesktopOutputs?: ComfyDesktopHostedOutputsBridge
comfyDesktopAssets?: ComfyDesktopHostedAssetsBridge
comfyDesktopRuns?: ComfyDesktopHostedRunsBridge
}
}
The page reads the session with getState(), follows it with onChanged(),
asks for the workspace credential with getWorkspaceToken(workspaceId) each
time it calls Comfy Cloud, and starts a sign-in with requestSignIn().
getCloudOrigin() gives the Comfy Cloud address Desktop's account belongs to,
such as https://cloud.comfy.org, so the page sends those calls to the same
Cloud as Desktop. Desktop builds before it do not have it, so check for it
first. It cannot sign Desktop out or switch workspace.
For a run on this computer the page asks getLocal({ minVersion }) which of
the person's builds Desktop would use, starts it with startLocal(), and then
talks to it through localFetch(). Desktop forwards only the calls a run
needs, and only for runs the page started; onLocalEvent() carries ComfyUI's
updates for those runs, and Desktop's own run_failed, with the reason, when
Desktop loses one: ComfyUI closed or restarted, or no longer has the run after
Desktop connects to it again. A run taken out of ComfyUI's queue while Desktop
is connected gets none, so a page also looks for its run in the queue and the
history.
localDownload() saves a safetensors model from
Hugging Face into that build's models folder. While the person's first build
is still installing, getLocal() answers installing: localDownload()
works already, and startLocal() waits for the install, then starts the
build.
machine() gives the operating system, and the memory of the graphics card or
that there is no GPU when Desktop can read it. Desktop waits at most 5 seconds
for the asynchronous part of that read; a driver tool that it waits for
synchronously, such as nvidia-smi, can make the answer later. It is absent on
Desktop builds that predate it.
openInComfy({ prompt, where, name, build }) opens a run's API-format
workflow in a ComfyUI window in Desktop: the build the page runs on (or the
build build names, an id from localBuilds()) for where: 'local', or the
person's Comfy Cloud for where: 'cloud'. Desktop starts the build or shows
its window if needed, and resolves { opened: true } once ComfyUI has loaded
the workflow, or { opened: false, error } with the reason in words. Both
members are absent on Desktop builds that predate them, so a page checks for
them and keeps its file download as the fallback.
track(name, props) reports what the person does on the page, such as
track('click', { target: 'run' }). Desktop sends it as
comfy.desktop.apps.<name> only when the person allows telemetry, and adds
app_id, the app whose page Desktop loaded in that view. An event the page
sends while the view loads another app is dropped.
_, up to 48 characters in all (^[a-z][a-z0-9_]{0,47}$), so 2_click is
dropped. app_opened, app_page_failed, run_finished and setup are
Desktop's own and are refused, and so is error._, up to 32 characters in all
(^[a-z][a-z0-9_]{0,31}$), so { Run: true } is dropped. A value is a
boolean, a finite number or a slug of up to 64 characters
(^[a-z0-9][a-z0-9._-]{0,63}$). Free text, any other key or value, and an
app or app_id from the page are dropped.app_version, app_channel, app_env, is_packaged,
platform, arch, client, installation_id and sac_state.click events in a minute, a click from
another app in that minute is dropped too.The page is not told when Desktop drops an event.
comfyDesktopAssets gives the page references to pictures and videos, never
paths. recent({ kinds, where }) lists the newest app results: for
where: 'local', the files under output/apps/ of the build the page's local
runs go to (the shared output folder by default) and no other output files;
for where: 'cloud', the signed-in workspace's Comfy Cloud outputs.
fromFile(file, { kinds }) takes a file the person dropped or chose; only its
path reaches Desktop, which checks it is a regular file of an allowed kind and
at most 2 GiB. read(ref) gives the bytes for a preview, up to 512 MiB. When a
run starts, valueFor(ref, { where }) gives the value for LoadImage.image or
LoadVideo.file, such as apps/remove-background/cutout_00001_.png [output];
a file outside the build's folders is copied once into input/desktop/. A
reference works only in the page document that received it. On any error the
page uploads the picture as before.
All these objects are absent in a browser, so a page keeps its own sign-in and its own way to reach a local ComfyUI as the fallback, and sends no events.
Generated from src/types/comfyDesktopBridge.ts in
Comfy-Org/Comfy-Desktop, which is
the same file the preload implements. Edit that file, run
pnpm run bridge-types:gen, and bump the version in this package's
package.json. Merging to main then publishes it; CI refuses a contract
change that arrives without a bump.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.