No description
- JavaScript 55.9%
- CSS 24.1%
- HTML 20%
| public | ||
| .env.example | ||
| .gitignore | ||
| package.json | ||
| README.md | ||
| server.js | ||
comfy-webinterface
comfy-webinterface is a lean control surface for ComfyUI. It gives you a local web app with:
- a server-side proxy to your ComfyUI instance
- a focused UI for pasting or importing workflow API JSON
- queue submission and interrupt actions
- prompt history polling with image previews
Visuals
Features
- Works with exported ComfyUI API workflows or full payloads containing
prompt - Avoids browser-side direct calls to ComfyUI by proxying requests through the local Node server
- Tracks queue and health state
- Pulls output images back into the UI from ComfyUI history
Requirements
- Node.js 20+
- A running ComfyUI instance, typically at
http://127.0.0.1:8188
Setup
- Copy
.env.exampleto.envif you want custom values. - Export the variables you need:
export PORT=4173
export COMFYUI_BASE_URL=http://127.0.0.1:8188
- Start the app:
npm run start
- Open
http://localhost:4173
Scripts
npm run startstarts the servernpm run devstarts the server in watch modenpm run checkruns a syntax check for the server and frontend code
API behavior
The local app exposes:
GET /api/configGET /api/healthGET /api/queueGET /api/history/:promptIdPOST /api/promptPOST /api/interruptGET /api/view?...
Workflow input
Paste either:
- a raw ComfyUI API workflow object
- or a full payload shaped like:
{
"client_id": "optional-client-id",
"prompt": {
"...": "workflow nodes"
}
}
If your JSON includes a workflow key, the server forwards it as extra_pnginfo.workflow when possible.