Float input
WebApp Float input
- parent
- value
- Order + 1
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
orderand 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.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| value_in | FLOAT | 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 | FLOAT | 0.00-9223372036854776000–9223372036854776000 | Web app control default value. |
| minimumopt | FLOAT | -9223372036854775808.00-9223372036854776000–9223372036854776000 | Web app control minimum value. |
| maximumopt | FLOAT | 9223372036854775808.00-9223372036854776000–9223372036854776000 | Web app control maximum value. |
| stepopt | FLOAT | 1.00-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 | FLOAT | Output value. |
| Order + 1 | INT | Order number for the next control. |