Nodes/WebApp API/Integer input
ComfyUI Node

Integer input

WebApp Integer input without the math

By MonkeyProof-Solutions-BV·Created 6 months ago·Updated 3 months ago· 2
Integer input
  • parent
  • value
  • Order + 1
value_in
order10
advancedfalse
value_from_interface
default0
minimum-9223372036854776000
maximum9223372036854776000
step1
tooltip

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 order input 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.

Categoryapi/app

Inputs (10)

NameTypeDefaultDescription
value_inINTThis value is used when running the workflow in ComfyUI.
orderINT10Control order in its section. Lowest value at the top. Highest at the bottom.
advancedoptBOOLEANfalseControl is only shown when advanced is True.
value_from_interfaceoptSTRINGTo be used when modifying the workflow API json from an external interface. Note that this string is interpreted as a json string.
defaultoptINT0-9223372036854776000–9223372036854776000Web app control default value.
minimumoptINT-9223372036854776000-9223372036854776000–9223372036854776000Web app control minimum value.
maximumoptINT9223372036854776000-9223372036854776000–9223372036854776000Web app control maximum value.
stepoptINT1-9223372036854776000–9223372036854776000Web app control step size.
parentoptPARENTWeb app parent to add the node to.
tooltipoptSTRINGWeb app control tooltip.

Outputs (2)

NameTypeDescription
valueINTOutput value.
Order + 1INTOrder number for the next control.