comfy-ts 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -8
- package/dist/cli.js +4 -4552
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +53 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +49 -23
- package/dist/index.d.ts +49 -23
- package/dist/index.js +53 -12
- package/dist/index.js.map +1 -1
- package/dist/{run-tui-DZ22HDHI.js → run-tui-BAdizWsO.js} +722 -130
- package/dist/run-tui-BAdizWsO.js.map +1 -0
- package/dist/state-BYbxDgfr.js +5258 -0
- package/dist/state-BYbxDgfr.js.map +1 -0
- package/examples/README.md +6 -4
- package/examples/{01-txt2img.cflow.ts → rvion/01-txt2img.cflow.ts} +1 -1
- package/examples/{02-img2img-upload.cflow.ts → rvion/02-img2img-upload.cflow.ts} +1 -1
- package/examples/{03-export-workflow-json.cflow.ts → rvion/03-export-workflow-json.cflow.ts} +1 -1
- package/examples/{04-krea2-turbo-t2i.cflow.ts → rvion/04-krea2-turbo-t2i.cflow.ts} +2 -2
- package/examples/{05-comfy-cloud.cflow.ts → rvion/05-comfy-cloud.cflow.ts} +2 -2
- package/examples/rvion/06-qwen-image-edit.cflow.ts +89 -0
- package/package.json +4 -1
- package/src/cli/tui/components/CopyOverlay.tsx +25 -0
- package/src/cli/tui/components/Header.tsx +9 -4
- package/src/cli/tui/components/HostPanel.tsx +3 -2
- package/src/cli/tui/components/HostsOverlay.tsx +33 -0
- package/src/cli/tui/components/StatusBar.tsx +28 -9
- package/src/cli/tui/components/TreePanel.tsx +17 -7
- package/src/cli/tui/components/TuiApp.tsx +47 -5
- package/src/cli/tui/imagePicker/fsListing.ts +6 -4
- package/src/cli/tui/run-tui.tsx +47 -7
- package/src/cli/tui/state/DraftsSt.ts +3 -2
- package/src/cli/tui/state/ExecSt.ts +108 -12
- package/src/cli/tui/state/HostSt.ts +94 -10
- package/src/cli/tui/state/PickerSt.ts +8 -2
- package/src/cli/tui/state/QueueSt.ts +2 -2
- package/src/cli/tui/state/SettingsSt.ts +25 -7
- package/src/cli/tui/state/TreeSt.ts +139 -36
- package/src/cli/tui/state/TuiSt.ts +47 -6
- package/src/cli/tui/state/WorkflowsSt.ts +14 -2
- package/src/cli/tui/treeRows.ts +165 -0
- package/src/host/ComfyHost.ts +7 -0
- package/src/runner/ComfyWorkflowLayout.ts +6 -4
- package/src/state.ts +7 -1
- package/src/vars/ComfyVars.ts +25 -4
- package/src/vars/DefinedWorkflow.ts +21 -8
- package/dist/DefinedWorkflow-BYyu5dK9.js +0 -669
- package/dist/DefinedWorkflow-BYyu5dK9.js.map +0 -1
- package/dist/run-tui-DZ22HDHI.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
# comfy-ts
|
|
2
2
|
|
|
3
|
-
_the
|
|
3
|
+
_the ultimate ComfyUI toolkit for TypeScript: `SDK` + `CLI` + `TUI` + agent guide_
|
|
4
4
|
|
|
5
5
|
[](https://github.com/rvion/comfy-ts/actions/workflows/ci.yml)
|
|
6
6
|
[](https://www.npmjs.com/package/comfy-ts)
|
|
7
|
+
[](https://www.npmjs.com/package/comfy-ts)
|
|
8
|
+
[](https://github.com/rvion/comfy-ts/releases)
|
|
9
|
+
[](https://www.npmjs.com/package/comfy-ts)
|
|
10
|
+
[](https://github.com/rvion/comfy-ts/blob/main/LICENSE)
|
|
11
|
+
[](https://github.com/sponsors/rvion)
|
|
7
12
|
|
|
8
13
|
**Everything ComfyUI, from TypeScript.** Build workflows in code with
|
|
9
14
|
autocomplete on every node and model of your exact install. Run them on any
|
|
@@ -228,7 +233,7 @@ declare global {
|
|
|
228
233
|
generated SDK for [Comfy Cloud](https://cloud.comfy.org) (5.9MB, 3574
|
|
229
234
|
nodes), committed so you can browse it and typecheck graphs against it
|
|
230
235
|
without any host.
|
|
231
|
-
[`examples/05-comfy-cloud.cflow.ts`](examples/05-comfy-cloud.cflow.ts)
|
|
236
|
+
[`examples/rvion/05-comfy-cloud.cflow.ts`](examples/rvion/05-comfy-cloud.cflow.ts)
|
|
232
237
|
runs against it live: `url` + `apiKey` host config, one env var, images
|
|
233
238
|
back in seconds.
|
|
234
239
|
|
|
@@ -398,15 +403,16 @@ library:
|
|
|
398
403
|
Every example is a runnable `*.cflow.ts` module: run it with bun, or just
|
|
399
404
|
`bunx comfy-ts tui` — the TUI finds them all.
|
|
400
405
|
|
|
401
|
-
Start with the didactic
|
|
406
|
+
Start with the didactic sequence in [`examples/rvion/`](examples/rvion/):
|
|
402
407
|
|
|
403
408
|
| example | shows |
|
|
404
409
|
| ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
|
|
405
|
-
| [`01-txt2img`](examples/01-txt2img.cflow.ts) | typed builder, vars, execution, downloaded outputs |
|
|
406
|
-
| [`02-img2img-upload`](examples/02-img2img-upload.cflow.ts) | hash-named deduped upload, img2img, async build |
|
|
407
|
-
| [`03-export-workflow-json`](examples/03-export-workflow-json.cflow.ts) | OFFLINE graph building, export api.json + readable workflow.json |
|
|
408
|
-
| [`04-krea2-turbo-t2i`](examples/04-krea2-turbo-t2i.cflow.ts) | a real pipeline: krea2 turbo, lora stack, RMBG cutout → transparent png |
|
|
409
|
-
| [`05-comfy-cloud`](examples/05-comfy-cloud.cflow.ts) | the same code on Comfy Cloud: `url` + `apiKey` host, typechecked against the committed catalog SDK |
|
|
410
|
+
| [`01-txt2img`](examples/rvion/01-txt2img.cflow.ts) | typed builder, vars, execution, downloaded outputs |
|
|
411
|
+
| [`02-img2img-upload`](examples/rvion/02-img2img-upload.cflow.ts) | hash-named deduped upload, img2img, async build |
|
|
412
|
+
| [`03-export-workflow-json`](examples/rvion/03-export-workflow-json.cflow.ts) | OFFLINE graph building, export api.json + readable workflow.json |
|
|
413
|
+
| [`04-krea2-turbo-t2i`](examples/rvion/04-krea2-turbo-t2i.cflow.ts) | a real pipeline: krea2 turbo, lora stack, RMBG cutout → transparent png |
|
|
414
|
+
| [`05-comfy-cloud`](examples/rvion/05-comfy-cloud.cflow.ts) | the same code on Comfy Cloud: `url` + `apiKey` host, typechecked against the committed catalog SDK |
|
|
415
|
+
| [`06-qwen-image-edit`](examples/rvion/06-qwen-image-edit.cflow.ts) | Qwen Image Edit 2511, lightning 4-step lora toggle |
|
|
410
416
|
|
|
411
417
|
### The model zoo: 46 cloud workflows, 32 model families
|
|
412
418
|
|
|
@@ -488,6 +494,13 @@ The glitter above sits on boring foundations:
|
|
|
488
494
|
- [@saintno/comfyui-sdk](https://www.npmjs.com/package/@saintno/comfyui-sdk), polished API, but unsafe workflow building, no typed registry.
|
|
489
495
|
- [comfyui-bun-client](https://github.com/KaruroChori/comfyui-bun-client), similar spirit, less codegen, not on npm.
|
|
490
496
|
|
|
497
|
+
## Support
|
|
498
|
+
|
|
499
|
+
comfy-ts is free, MIT, and maintained for the long run. If it saves you
|
|
500
|
+
time or powers something you sell, consider
|
|
501
|
+
[sponsoring](https://github.com/sponsors/rvion), it keeps the grind loops
|
|
502
|
+
grinding.
|
|
503
|
+
|
|
491
504
|
## License
|
|
492
505
|
|
|
493
506
|
MIT © [Rémi Vion](https://github.com/rvion)
|