{"_id":"@comfyorg/comfyui-desktop-bridge-types","_rev":"9-c89cc39fef89d841bcef112441ba67e9","name":"@comfyorg/comfyui-desktop-bridge-types","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@comfyorg/comfyui-desktop-bridge-types","version":"0.1.0","author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","_id":"@comfyorg/comfyui-desktop-bridge-types@0.1.0","maintainers":[{"name":"terryjia","email":"terry@comfy.org"},{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},{"name":"cbyrne","email":"cbyrne@comfy.org"}],"homepage":"https://comfy.org","bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"dist":{"shasum":"069fc7681b1a3af6edb637390b05ca88ef1a3d83","tarball":"https://registry.npmjs.org/@comfyorg/comfyui-desktop-bridge-types/-/comfyui-desktop-bridge-types-0.1.0.tgz","fileCount":3,"integrity":"sha512-eYpfhqvq+STSdI6uMJeO4gN/8lyzkHz234mrqd1TsoTawIEDSEq4uJvAtIWi9vNoEtkcnq3t2dqXsZ2OJuNgIA==","signatures":[{"sig":"MEUCIFEEzyS0phDrv587GTh0D+n600hBKG+rJmIClXW2G0YzAiEAiaU82YXpHaizwEUFCue16+S+O3QMroNLlIldN63YzVs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3204},"main":"./index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},"repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/comfyui-desktop-bridge-types_0.1.0_1781544456026_0.8489432516836803","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@comfyorg/comfyui-desktop-bridge-types","version":"0.1.1","author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","_id":"@comfyorg/comfyui-desktop-bridge-types@0.1.1","maintainers":[{"name":"terryjia","email":"terry@comfy.org"},{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},{"name":"cbyrne","email":"cbyrne@comfy.org"}],"homepage":"https://comfy.org","bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"dist":{"shasum":"1b19328b0927c02600d164925d4a291cc5bbc5f3","tarball":"https://registry.npmjs.org/@comfyorg/comfyui-desktop-bridge-types/-/comfyui-desktop-bridge-types-0.1.1.tgz","fileCount":4,"integrity":"sha512-KvRlHxiUq4EAjwy7xukVB54DATswjQ9QdQ9iZY/10yeYa4TjlQ8vsjP/YG3vDu5EvDQQMJnCUhlJjX3GrsvPtA==","signatures":[{"sig":"MEUCIQCyQQuJ/slmgeO4pbh8IDrzvSLCWaR/fQYVWFGSfG4L3AIgK6VwSnaORYARwONdu+LhQFRdtEOx3vSAnbdYYAld498=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3297},"main":"./index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},"repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/comfyui-desktop-bridge-types_0.1.1_1781556634404_0.5014666084789257","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@comfyorg/comfyui-desktop-bridge-types","version":"0.1.2","author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","_id":"@comfyorg/comfyui-desktop-bridge-types@0.1.2","maintainers":[{"name":"terryjia","email":"terry@comfy.org"},{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},{"name":"cbyrne","email":"cbyrne@comfy.org"}],"homepage":"https://comfy.org","bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"dist":{"shasum":"fd96d699f4a8ee2009e0de1c7a3d9f1b59d928c7","tarball":"https://registry.npmjs.org/@comfyorg/comfyui-desktop-bridge-types/-/comfyui-desktop-bridge-types-0.1.2.tgz","fileCount":4,"integrity":"sha512-yU2xerunYGDM+IF8MCrEAQGE2C/9mX8Dec7xAwsMmHUriY1GBhZJO9hjjLmHnSh4O4qTpzfO5AJgo2d0jzdDNA==","signatures":[{"sig":"MEQCIC5lsBPr9ujeciL32J4Piru2pgRfQDVnc2q6Tz7nqOmdAiBNv8X76c21QTtRBSNvtYI795R9/3BZur6NCYZdtHWKww==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3300},"main":"./index.js","type":"module","types":"./index.d.ts","_npmUser":{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},"repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"_npmVersion":"11.11.0","description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","directories":{},"_nodeVersion":"25.8.1","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/comfyui-desktop-bridge-types_0.1.2_1781557492712_0.15016624224605257","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@comfyorg/comfyui-desktop-bridge-types","version":"0.2.0","author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","_id":"@comfyorg/comfyui-desktop-bridge-types@0.2.0","maintainers":[{"name":"terryjia","email":"terry@comfy.org"},{"name":"wei-hai-comfy","email":"wei@comfy.org"},{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},{"name":"skishore23","email":"kishore@comfy.org"},{"name":"mattmillerai","email":"matt@miller-media.com"},{"name":"cbyrne","email":"cbyrne@comfy.org"}],"homepage":"https://comfy.org","bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"dist":{"shasum":"2f8f5014ce069ae9d40e45ba0e16a1e76a1d6369","tarball":"https://registry.npmjs.org/@comfyorg/comfyui-desktop-bridge-types/-/comfyui-desktop-bridge-types-0.2.0.tgz","fileCount":6,"integrity":"sha512-V5Wj5KXDzTDm5GJAa0xBISjmndNIY5P79pRHQbLkkqJxgp/GPb/QGvcI+xG4ogol0ODJ4j/UBnUmkzpSafw8Aw==","signatures":[{"sig":"MEYCIQCNW5klFfNsQI8dwbWG8hQamddFb1WWsQUSRCPTMdPNvAIhAPFyhpQ7RxOW8TvcbRzPWsfuqBogBHQP8ULcRWd6bcDT","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIETXOxiSyTLoACzecspKrepZ2BvtMXIYXKaAYu5vyq54AiA1RkziMw25gBWg3rZeisC0WkIXFdQ8VNF125QhB2p0Rg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@comfyorg%2fcomfyui-desktop-bridge-types@0.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7171},"main":"./index.js","type":"module","types":"./index.d.ts","gitHead":"5fc60263538e04eff1fc7ecf13a0ee206f93408d","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a9afc257-a20b-4123-8d3c-9881d336f312"}},"repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"_npmVersion":"11.17.0","description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","directories":{},"_nodeVersion":"24.19.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/comfyui-desktop-bridge-types_0.2.0_1787771232625_0.7517280100059567","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@comfyorg/comfyui-desktop-bridge-types","version":"0.2.1","author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","_id":"@comfyorg/comfyui-desktop-bridge-types@0.2.1","maintainers":[{"name":"terryjia","email":"terry@comfy.org"},{"name":"wei-hai-comfy","email":"wei@comfy.org"},{"name":"benceruleanlu-comfyorg","email":"ben@comfy.org"},{"name":"skishore23","email":"kishore@comfy.org"},{"name":"mattmillerai","email":"matt@miller-media.com"},{"name":"cbyrne","email":"cbyrne@comfy.org"}],"homepage":"https://comfy.org","bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"dist":{"shasum":"104abb12e07ddf5efbef719d80cee1e1b93ec565","tarball":"https://registry.npmjs.org/@comfyorg/comfyui-desktop-bridge-types/-/comfyui-desktop-bridge-types-0.2.1.tgz","fileCount":6,"integrity":"sha512-4f0y6QuNyGaaTAnrWJ8Q7LjGca8J8JgJ0HbIleh3Q+DStSBSOTTmgKyYdTO3IfpgKBvS7TzrsMO7eclSQLziiw==","signatures":[{"sig":"MEYCIQCd+XOdfpZz2ZSNWHXgp2EmefCOrmf6ZtP3mX8cFaehDAIhAJ9sLahzI0t1ICR+bvEVNn+WM+B+90XZoAW2ZL8nGmXv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCIFDJA52F9s9ax3sR4W18f+zN6XVro2x6UU3VxpJLAaurAiEA9a7Ba9SvoRZs6z1fOb8ZDqqJ9Fgg1EaQeZWwYVst+Ok=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@comfyorg%2fcomfyui-desktop-bridge-types@0.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7447},"main":"./index.js","type":"module","types":"./index.d.ts","gitHead":"d941d39ad5941e9192c3167a72a86078b818fda0","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:a9afc257-a20b-4123-8d3c-9881d336f312"}},"repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"_npmVersion":"11.19.0","description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","directories":{},"_nodeVersion":"24.20.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/comfyui-desktop-bridge-types_0.2.1_1789872106348_0.8332594403892153","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-06-15T17:27:35.827Z","modified":"2026-10-02T04:49:29.528Z","0.1.0":"2026-06-15T17:27:36.151Z","0.1.1":"2026-06-15T20:50:34.548Z","0.1.2":"2026-06-15T21:04:52.848Z","0.2.0":"2026-08-26T19:07:12.721Z","0.2.1":"2026-09-20T02:41:46.439Z"},"bugs":{"url":"https://github.com/Comfy-Org/Comfy-Desktop/issues"},"author":{"url":"https://www.comfy.org","name":"Comfy Org","email":"support@comfy.org"},"license":"MIT","homepage":"https://comfy.org","repository":{"url":"git+https://github.com/Comfy-Org/Comfy-Desktop.git","type":"git"},"description":"TypeScript definitions for the Comfy Desktop hosted frontend bridge","maintainers":[{"email":"terry@comfy.org","name":"terryjia"},{"email":"wei@comfy.org","name":"wei-hai-comfy"},{"email":"ben@comfy.org","name":"benceruleanlu-comfyorg"},{"email":"huge.huang+npm@gmail.com","name":"huang47"},{"email":"kishore@comfy.org","name":"skishore23"},{"email":"matt@miller-media.com","name":"mattmillerai"},{"email":"cbyrne@comfy.org","name":"cbyrne"}],"readme":"# @comfyorg/comfyui-desktop-bridge-types\n\nTypeScript definitions for `window.__comfyDesktop2`, the API Comfy Desktop\nexposes to the frontend it hosts.\n\n```sh\nnpm install --save-dev @comfyorg/comfyui-desktop-bridge-types\n```\n\n```ts\nimport type { ComfyDesktop2Bridge } from '@comfyorg/comfyui-desktop-bridge-types'\n\ndeclare global {\n  interface Window {\n    __comfyDesktop2?: ComfyDesktop2Bridge\n  }\n}\n```\n\n## Every member is optional for a reason\n\nWhich members actually exist at runtime is decided by the Desktop binary the\nuser is running, and Desktop binaries update far more slowly than the frontend\nthat ships into them. Callers must guard every access and carry a fallback —\nincluding when the member exists but rejects:\n\n```ts\nasync function openModelAccessPage(url: string): Promise<void> {\n  try {\n    if ((await window.__comfyDesktop2?.openModelAccessPage?.(url)) === true) return\n  } catch (error) {\n    console.error('Desktop could not open the access page:', error)\n  }\n  window.open(url, '_blank', 'noopener,noreferrer')\n}\n```\n\n`ComfyDesktop2BridgeImplementation` is the provider-side counterpart: it makes\nevery top-level member required, so Desktop's preload cannot claim the contract\nwhile omitting part of it.\n\n## Provenance\n\nGenerated from `src/types/comfyDesktopBridge.ts` in\n[Comfy-Org/Comfy-Desktop](https://github.com/Comfy-Org/Comfy-Desktop), which is\nthe same file the preload implements. Edit that file, run\n`pnpm run bridge-types:gen`, and bump the version in this package's\n`package.json`. Merging to `main` then publishes it; CI refuses a contract\nchange that arrives without a bump.\n","readmeFilename":"README.md"}