Nodes/WebApp API/Float input
ComfyUI Node

Float input

WebApp Float input

By MonkeyProof-Solutions-BV·Created 6 months ago·Updated 3 months ago· 2
Float input
  • parent
  • value
  • Order + 1
value_in
order10
advancedfalse
value_from_interface
default0.00
minimum-9223372036854775808.00
maximum9223372036854775808.00
step1.00
tooltip

WebApp_Floatinput is the node for the numbers with decimals - CFG scale, denoise, strength, any of the knobs your users should be able to drag but not break. It declares one floating-point control in the web app your workflow becomes, constrains it with min/max/step, and pipes the user's choice back into the graph as a value. Same family as WebApp_Integerinput, but for the non-integer knobs.

The pack's whole trick applies here: you define controls as nodes in ComfyUI, export the workflow API, and a framework like Simian WebApps turns the definition into a real form. In plain ComfyUI this node is just a pass-through; the slider lives in the app.

The inputs that matter

  • value_in (FLOAT) - the value used when running the workflow in ComfyUI. Wire this to your downstream node and run locally like normal.
  • default (FLOAT, default 0) - what the app's slider starts at.
  • minimum / maximum (FLOAT) - the slider bounds. Here's the trap: both default to roughly ±9.2×10¹⁸. Leave them alone and the app will hand users a slider that's useless across 19 orders of magnitude. Set real bounds or your users get a field they can't meaningfully adjust.
  • step (FLOAT, default 1) - how much the slider jumps.

The optional advanced flag hides the control unless the app is in advanced mode; parent attaches it to a WebApp_Grouping; tooltip is the hover text; and value_from_interface is a JSON string the app injects to override the value from the API side - ignore it unless you're writing framework code.

The outputs

  • value (FLOAT, a list) - the number, downstream to your sampler or whatever takes it. It's a list because this pack leans on ComfyUI's list processing: give the app multiple values and the workflow loops.
  • Order + 1 (INT) - the auto-sequence chain slot. Plug it into the next control's order and controls number themselves.

Installing it

Same one-time install as the rest of the pack:

cd ComfyUI/custom_nodes
git clone https://github.com/MonkeyProof-Solutions-BV/ComfyUI_webapp

Restart ComfyUI, or grab it via ComfyUI Manager (search ComfyUI_webapp, listed as "WebApp API"). No models, no keys; dependencies are just pillow and torch, both standard.

Gotchas

The min/max defaults are the big one - set them or your slider is fiction. Also keep the version note in mind: this pack is built on the newer backend node API (comfy_api.latest), so it needs a current ComfyUI. If the node is missing after install, update ComfyUI before debugging anything else.

Categoryapi/app

Inputs (10)

NameTypeDefaultDescription
value_inFLOATThis 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.
defaultoptFLOAT0.00-9223372036854776000–9223372036854776000Web app control default value.
minimumoptFLOAT-9223372036854775808.00-9223372036854776000–9223372036854776000Web app control minimum value.
maximumoptFLOAT9223372036854775808.00-9223372036854776000–9223372036854776000Web app control maximum value.
stepoptFLOAT1.00-9223372036854776000–9223372036854776000Web app control step size.
parentoptPARENTWeb app parent to add the node to.
tooltipoptSTRINGWeb app control tooltip.

Outputs (2)

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