Settings with defaults
FreeLogic@rabbinatix/settings-with-defaults by Rabbinatixupdated Oct 4, 2026
Fills in the settings a user hasn't chosen from a defaults table.
The defaults live in a Dictionary node (JSON). Merge lays the user's settings over them, so what the user chose wins.
Shows: Dictionary, Merge.
How to use it
Add it to your logic, then add a Call Function step in any logic and pick Settings with defaults. It belongs to no system, so every system can use it. Or download the TypeScript and call it from your own code.
Inputs
chosen: Record
Outputs
settings: Record
Previewdrag the steps around; scroll to zoom
Function Entry, Input / output. 0 inputs, 2 outputs. step 1 of 4
Settings with defaults
chosen
Dictionary, Data. 0 inputs, 1 output. step 2 of 4
Dictionary
dictionary
Merge, Object. 2 inputs, 1 output. step 3 of 4
Merge
A
B
result
Return, Input / output. 2 inputs, 0 outputs. step 4 of 4
Return
settings
Arrow keys: next or previous step in flow order. Alt with arrows: nearest step in that direction. Enter: open. Shift F10: more actions.
Examplesrun live against the logic · 2/2 pass
| Passed | Example | Input | Output |
|---|---|---|---|
| Dark theme | {"chosen":{"theme":"dark"}} | {"settings":{"theme":"dark","language":"en","pageSize":20}} | |
| Nothing chosen | {"chosen":{}} | {"settings":{"theme":"light","language":"en","pageSize":20}} |
Try it
Versions
In this package
Settings with defaults (entry)
