Comfy-Org / Comfy-Org/ComfyUI_frontend

[Feature Request]: How to change the defaultGraph

Open
#689 9 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

Hello, I'm the guy that made a template on Runpod.io for a one-click deploy of ComfyUI with Flux.1 dev.

I'm making this issue because recently there were some changes about the frontend and how it loads the defaultGraph.
It used to be a .js file in the ComfyUI repo, but it is now changed to refer to the ComfyUI_frontend repo and it is now a .ts file.

Here is my problem, I need the UI to start up with my own custom workflow because this is a one-click template and everyone that currently uses it is loving the fact that it just works without having to do anything. This used to work because I could simply overwrite the original defaultGraph.js in the source code.

However, I'm now trying to update the template to the latest version but this no longer works because I can no longer find the defaultGraph file anywhere. From what I can tell the ComfyUI_frontend is now a compiled object or something?

Is there some way I can still change the defaultGraph.ts file somewhere on my computer? Where would I find this file?
If this is not possible, then my only option will be to freeze the template on runpod in a state just before these changes, which means there would no longer be any updates.

Kind regards,
Wouter Glorieux

### Proposed workflow

1. Go to ....
2. Press ....
3. ...

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.