Nodes/comfyui-prompt-shelf/Resolution Shelf Editor
ComfyUI Node

Resolution Shelf Editor

The editor node that saves resolutions without you touching a JSON file

By timonknispel·Created 4 months ago·Updated 4 months ago· 0
Resolution Shelf Editor
      keyFLUX.1
      resolution
      width1024
      height1024

      Resolution Shelf Editor has no outputs, and that's the point. It's a management node you keep off to the side of your generation graph, not part of the pipeline. Its job is to maintain the resolution presets that Resolution Shelf reads: add new ones, update existing ones, remove ones you're done with.

      Four inputs, and only three really matter day to day. key (default FLUX.1) is the group you're editing - pick one from the "Existing keys" dropdown or type a brand-new group name. resolution is the dropdown of saved resolutions for that key. width and height are the values you're about to save (or the ones currently in the selected preset). Then the buttons do the writing: Save current resolution adds a new entry to the current key, Update current resolution replaces the selected one with the current width/height, and Remove selected resolution deletes it.

      Here's the mechanism that surprises people, and it's worth understanding because it shapes how you use the node. The node's Python code is a no-op - the actual editing happens in the browser. When you click a button, the node's frontend fires a POST or DELETE request at the server's /prompt-shelf/resolutions route, and the server does the file writing. The saved data lands in user/resolutions.json inside the pack folder, layered as an overlay over the repo's defaults/resolutions.json. That's a deliberate design: the bundled defaults stay in the repository, your additions and your deletions of bundled items live in the user file, and the pack merges the two at load time. Update the pack and your custom resolutions survive; delete a bundled default and that deletion is remembered in the user file rather than silently resurrected by the next git pull.

      Install is the single pack install, and it's the pleasant kind - nothing to compile, nothing to download. ComfyUI Manager search for comfyui-prompt-shelf, or:

      cd ComfyUI/custom_nodes
      git clone https://github.com/timonknispel/comfyui-prompt-shelf
      

      Restart ComfyUI, refresh the browser, and the Prompt Shelf category is populated. There's no requirements.txt and no model download in this pack, so it can't break your environment.

      Two gotchas. First, nothing saves until you actually click a button - editing the width/height fields and walking away saves nothing, and the shelf keeps serving the old preset. Second, your custom resolutions live in custom_nodes/comfyui-prompt-shelf/user/resolutions.json; if you delete the pack folder to reinstall, that file is gone with it. It's plain JSON, so back it up with a copy before any uninstall - a habit worth forming before you've hand-built a dozen model-family presets.

      CategoryPrompt Shelf

      Inputs (4)

      NameTypeDefaultDescription
      keySTRINGFLUX.1
      resolutionCOMBO4 options: Custom input, 1024 x 1024, 1344 x 768, 1216 x 832
      widthINT10241–16384
      heightINT10241–16384

      Outputs (0)

      No outputs