Skip to content

Set of TypeScript libraries to interact with ComfyUI API

License

Notifications You must be signed in to change notification settings

icefairy64/comfy-caller

Repository files navigation

Comfy Caller

About

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.

[NEW] Code generation

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.

Runtime support

Currently, Comfy Caller is only tested with Bun, but I assume that it should work fine with other JS runtimes as well.

Examples

All the usage examples are located in the examples directory.

Feature status

  • 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
  • Graph modeling

License

MIT

About

Set of TypeScript libraries to interact with ComfyUI API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published