Comfier
Development repo for the Comfier Open WebUI tool (comfier.py). To deploy, paste comfier.py into Open WebUI.
Setup
source .venv/bin/activate
pip install -e . --group dev
Workflow
- Run against a real ComfyUI:
python harness.py --url http://host:8188(see--help;--cancel-after 2simulates Stop). Node mappings come fromfixtures/nodes.json(mirrorsCOMFYUI_WORKFLOW_NODES), workflow fromfixtures/workflow.json. - Offline tests (in-process fake ComfyUI):
pytest - Type check:
pyright(Open WebUI/FastAPI types come fromstubs/) - Verify stubs against upstream:
python scripts/check_stubs.py(needs network; checks against the tag inrequired_open_webui_version, or pass--ref main). Run it before bumping that version. - Lint/format:
ruff check . && ruff format .
devkit/ provides the fake open_webui.* / fastapi modules used by the harness and tests.
