MCPcopy Index your code
hub / github.com/canisminor1990/kitchen-comfyui

github.com/canisminor1990/kitchen-comfyui @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
194 symbols 499 edges 96 files 13 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Kitchen ComfyUI

A reactflow base stable diffusion GUI as ComfyUI alternative interface.

🔨 TODO List

  • 键盘快捷键
  • [x] Delete: Delete / Backspace
  • [x] Multi Selection: Shift
  • [x] Copy/Paste: Ctrl + C / V
  • [x] Group Selection: Ctrl + G
  • [ ] Undo/Redo: Ctrl + Z / Ctrl + Shift + Z
  • 图片节点
  • [x] 图片节点上传适配
  • [ ] 拖拽图片自动上传并生成节点
  • 编组

  • [x] 编组相关基础功能

  • [ ] 局部 Flow 转换为组件

  • 节点

  • [ ] 中继节点,支持一个到多个变量中继
  • [ ] WIFI 无线节点,输出节点/接受节点
  • [ ] 开关节点,控制流程是否往下
  • [ ] ...

📦 Installation

clone ComfyUI follow the README.md installing there

git clone https://github.com/comfyanonymous/ComfyUI

replace ComfyUI/web frontend with dist build

⌨️ Development

place this repo anywhere, and edit ComfyUI/server.py

check assets/modify-server.py

@web.middleware
async def cors_handler(request: web.Request, handler):
    response = await handler(request)
    response.headers['Access-Control-Allow-Origin'] = '*'
    response.headers['Access-Control-Allow-Methods'] = 'POST, GET, OPTIONS'
    response.headers['Access-Control-Allow-Headers'] = 'Content-Type, Authorization, x-requested-with'
    return response
class PromptServer():
......
    self.app = web.Application(client_max_size=20971520, middlewares=[cache_control, cors_handler])
......

🔗 Credits

  • ComfyUI - https://github.com/comfyanonymous/ComfyUI
  • comfyweb - https://github.com/jac3km4/comfyweb

Extension points exported contracts — how you extend this code

WorkflowItemProps (Interface)
* @title 工作流程项属性
src/components/ControlPanelComponent/WorkflowItem.tsx
NumberProps (Interface)
(no doc)
src/types/input.ts
AppState (Interface)
(no doc)
src/store/AppState.ts
NodePickerGroupProps (Interface)
* @title 节点选择器分组组件属性
src/components/ControlPanelComponent/NodePickerGroup.tsx
StringProps (Interface)
(no doc)
src/types/input.ts
SliderInputProps (Interface)
* @title 滑动输入框参数
src/components/NodeComponent/SdNode/SliderInput.tsx
BoolProps (Interface)
(no doc)
src/types/input.ts
PreviewNodeProps (Interface)
* @title 预览节点参数
src/components/NodeComponent/SdNode/PreviewNode.tsx

Core symbols most depended-on inside this repo

getBackendUrl
called by 8
src/utils/index.ts
toPersisted
called by 6
src/utils/persistence.ts
addNode
called by 5
src/utils/node.ts
retrieveLocalWorkflows
called by 5
src/utils/persistence.ts
getPrefixCls
called by 4
src/components/theme/index.ts
isInt
called by 4
src/utils/input.ts
get_queue_info
called by 3
assets/modify-server.py
send
called by 3
assets/modify-server.py

Shape

Function 92
Interface 54
Method 29
Route 15
Class 3
Enum 1

Languages

TypeScript79%
Python21%

Modules by API surface

assets/modify-server.py41 symbols
src/utils/persistence.ts12 symbols
src/utils/node.ts8 symbols
src/utils/input.ts8 symbols
src/types/node.ts7 symbols
src/types/client.ts6 symbols
src/client.ts6 symbols
src/utils/queue.ts4 symbols
src/types/input.ts4 symbols
src/components/NodeComponent/index.tsx4 symbols
src/components/EditorComponent/ActionIcon/Icons.tsx4 symbols
src/types/persistence.ts3 symbols

For agents

$ claude mcp add kitchen-comfyui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page