Comfy Caller is a set of small TypeScript libraries to interact with ComfyUI API.
One of the main goals for this project is to not only provide the wrappers for API calls, but also provide tools to build the prompt graph directly in JS code.
You can generate node model types for a running Comfy instance by running comfy-codegen.ts
script and piping the output into a new TypeScript file.
Currently, Comfy Caller is only tested with Bun, but I assume that it should work fine with other JS runtimes as well.
All the usage examples are located in the examples
directory.
- API wrappers
- WebSocket events
-
SaveImageWebsocket
output
-
- Prompt queueing
- Object info (available node list + values, e.g. checkpoints)
- History
- Image upload
- On-demand system / queue status
- Anything else
- WebSocket events
- Graph modeling
- Abstract node interface
- Graph construction / node connection
- Node models
- [NEW] Generating node models from a running Comfy instance (see
comfy-codegen.ts
andexamples/simple-img-graph-gentypes.ts
)
- [NEW] Generating node models from a running Comfy instance (see
- UI workflow import
- API workflow import
MIT