# CozyGen: A Mobile-Friendly ComfyUI Controller  ## DISCLAIMER This project was 100% "vibe-coded" using Gemini 2.5 Pro/Flash. I dont code, but wanted to share a working LLM assisted projected. Everything AFTER this disclaimer section is 99% made by an LLM. I just wanted to make dumb cat pictures with my desktop ComfyUI from my phone, so now this exists. Thanks to @acly and the comfyui-tooling-nodes for the inspiration. Known Issues: * The default_choice option on the "Choice Input Node" does not work, but you will only need to select it the first time in the front end and it will save in your browser cache. Just make sure the choice_type is correct. * If the front end web page is not "active" when generation completes, the preview will not display. The image will be in the gallery. Changelog: * 9/24/2025 - Update 2 * Added mp4/gif output support with the "CozyGen Video Output" node * Broke out the Dynamic input node to reduce complexity. DynamicInput still functions, but these can be used if you want to have values saved when loading the workflow again in ComfyUI. Choice options are still weird, you need to specify the folder the model is in and the front end will fill the drop down control with those models. 4 new nodes: * CozyGen Int Input * CozyGen Float Input * CozyGen String Input * CozyGen Choice Input * Improved Generate page with a static generate button and styling tweaks * Improved choice bypass option, allowing you to bypass lora loaders from the front end. You can now bypass loras in a chain of loras as seen in the Flux example workflow. * Generating a batch greater than 1 now displays all generated images in the image preview * 9/11/2025 - Update 1 *NOTE* This update will require you to remake workflows if you already had some. If you run into weird issues, try a complete reinstall if you are upgrading. * Added image 2 image support with the "Cozy Gen Image Input" Node * "Smart Resize" for image upload that automatically resizes to within standard 1024*1024 ranges while maintaining aspect ratio. * Added more robust support for dropdown choices, with option to specify model subfolder with "choice_type" option. * Improved gallery view and image overlay modals, with zoom/pinch and pan controls. * Added gallery pagination to reduce load of large gallery folders. * Added bypass option to dropdown connections. This is mainly intended for loras so you can add multiple to the workflow, but choose which to use from the front end. * General improvements (Layout, background functions, etc.) * The other stuff that I forgot about but is in here. * 8/29/2025 - Initial release ## ✨ Overview CozyGen is a custom node for ComfyUI that provides a sleek, mobile-friendly web interface to remotely control your ComfyUI server. Designed for ease of use, it allows you to load pre-defined workflows, dynamically adjust parameters, and generate stunning images from any device with a web browser. Say goodbye to the desktop interface and hello to on-the-go creativity! ## 🚀 Features * **Modern & Intuitive UI:** A beautiful, mobile-first interface built with React, Vite, and Tailwind CSS, featuring a stylish dark theme. * **Dynamic Controls:** The user interface automatically generates input controls (text fields, sliders, dropdowns, toggles) based on the `CozyGenDynamicInput` nodes in your ComfyUI workflows. * **Priority Sorting:** A "priority" field that determines how the webpage is ordered. A 0 priority will push the field towards the top of the page. * **Real-time Previews:** Get instant visual feedback with real-time previews of your generated images directly in the web interface. * **Persistent Sessions:** Your selected workflow, input values, and even the last generated image are remembered across browser sessions. * **Image Gallery:** Browse, view, and manage all your previously generated images, complete with extracted prompt and seed metadata. * **Randomization:** Easily randomize numerical inputs like seeds with a dedicated toggle. * **Seamless Integration:** Works directly with your existing ComfyUI setup, leveraging its core functionalities. ## 📸 Screenshots / Demos Mobile-first design: