Integer input
WebApp Integer input without the math
- parent
- value
- Order + 1
WebApp_Integerinput is the whole-number sibling of the float input: the node that puts a stepper (or number box) in your workflow's web app for things like steps, batch size, width, height, seed count - anything that has to stay an integer. You declare the control in ComfyUI, export the workflow API, and a framework like Simian WebApps renders the actual input and feeds the user's number back into your graph.
Run it in plain ComfyUI and it's just a pass-through - the stepper lives in the app, not on your canvas. That's the pack's model: the nodes describe the interface; the framework is the interface.
The inputs that matter
- value_in (INT) - the value used when running the workflow in ComfyUI. Wire it to the downstream node and you can still run the workflow locally, values as-is.
- default (INT, default 0) - the number the app starts with.
- minimum / maximum (INT) - the bounds. Same trap as the float node: both default to roughly ±9.2×10¹⁸. Set real limits, or your users get a field that accepts anything and a slider that's meaningless.
- step (INT, default 1) - increment size. Set it to 8 if your resolution has to stay multiples of 8, that kind of thing.
advanced (default false) hides the control unless the app is in advanced mode; parent attaches it to a WebApp_Grouping; tooltip is hover text; value_from_interface is a JSON string the app uses to override the value from the API side - you won't touch it by hand.
The outputs
- value (INT, a list) - the number, wired downstream. Lists again, because this pack leans on ComfyUI's list processing: feed the app multiple values and the workflow loops over them.
- Order + 1 (INT) - the chain slot. Plug it into the next control's
orderinput and controls auto-sequence.
Installing it
One install gets you all the controls plus the helpers:
cd ComfyUI/custom_nodes
git clone https://github.com/MonkeyProof-Solutions-BV/ComfyUI_webapp
Restart ComfyUI, or use ComfyUI Manager → search ComfyUI_webapp (listed as "WebApp API"). No models, no keys; dependencies are just pillow and torch, both already in a standard ComfyUI.
Gotchas
Set minimum and maximum or your stepper is a lie - the defaults span the full int64 range. And keep the version note in mind: this pack is written against the newer backend node API (comfy_api.latest), so it needs a current ComfyUI. Node missing after install? Update ComfyUI first.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| value_in | INT | This value is used when running the workflow in ComfyUI. | |
| order | INT | 10 | Control order in its section. Lowest value at the top. Highest at the bottom. |
| advancedopt | BOOLEAN | false | Control is only shown when advanced is True. |
| value_from_interfaceopt | STRING | To be used when modifying the workflow API json from an external interface. Note that this string is interpreted as a json string. | |
| defaultopt | INT | 0-9223372036854776000–9223372036854776000 | Web app control default value. |
| minimumopt | INT | -9223372036854776000-9223372036854776000–9223372036854776000 | Web app control minimum value. |
| maximumopt | INT | 9223372036854776000-9223372036854776000–9223372036854776000 | Web app control maximum value. |
| stepopt | INT | 1-9223372036854776000–9223372036854776000 | Web app control step size. |
| parentopt | PARENT | Web app parent to add the node to. | |
| tooltipopt | STRING | Web app control tooltip. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| value | INT | Output value. |
| Order + 1 | INT | Order number for the next control. |