ComfyUI Extension: EasyKitHT NodeAlignPro
Professional alignment & real-time node color picker. A must-have plugin for managing node layout and color schemes in ComfyUI. Features a real-time color picker, alignment, 7 preset colors, grayscale/custom modes, and one-click reverse alignment.
Custom Nodes (0)
README
ComfyUI_EasyKitHT_NodeAlign Pro ๐จ
๐ Project Introduction
ComfyUI_EasyKitHT_NodeAlignPro is a powerful ComfyUI plugin independently developed by a designer, offering a brand-new alignment toolset and a professional node color management system. The built-in alignment tool layout follows the common operational logic and experience of the design industry. The coloring tool with multiple modes is more reasonable, and a new real-time color picker has been added for quick coloring. This plugin aims to enhance the workflow efficiency of ComfyUI users by simplifying node layout and color management through an intuitive interface and rich features.
๐ฅ What's New in v2.0 ?
The New Version v2.0 has completely refactored the old v1.0.4_rc UI and underlying logic, rewritten from scratch with a brand-new UI icon set and interface interaction logic. The foundational code and concepts were largely completed back in June-July of this year. Due to recent busy schedules, the update was delayed for quite some time. I managed to find some time recently to update it, redesigning the relevant UI while preserving as much of the previous version's interface and interaction habits as possible. Essentially, all related logic has been reconstructed (see image below).
โ New Version Demo

If you like it, please consider giving it a โญStar. Your encouragement is my greatest motivation!
<details> <summary><b>โ ๏ธ about ComfyUI Node 2.0...</b></summary>โ ๏ธ Note: Regarding the multiple alignment modes, you can try holding the Alt key + clicking the alignment button to experience the new Easter Egg Feature with its brand-new alignment methods.
(Note: The alignment-related functions in the new Node2.0 Beta are currently not very stable, suffering from cumulative offset issues due to various calculation errors (Reproduction: repeatedly enabling/disabling ComfyUI's native Node2.0 Beta switch will cause nodes to accumulate errors, with sizes and coordinates constantly shifting. Therefore, compatibility is temporarily withheld (even though adaptation for Node2.0 is already done, the logic for Node2.0 compatibility is temporarily removed and will be updated back once it stabilizes a bit more)))
โ ๏ธ Note: The three major sections โ ๐ซ Brand-new Coloring System, ๐ซ User-friendly Interaction Design, and ๐ซ Brand-new Color Picker (Original Design) โ have undergone varying degrees of refactoring, whileๅฐฝๅฏ่ฝ retaining the basic operation logic of the v1.0.4_rc version. As development is done in spare time by a non-professional programmer, rushed updates may inevitably contain bugs. We appreciate your help in testing and welcome Issue submissions for feedback. Thank you for your support and understanding!
Legacy v1.0.4_rc: Only provided basic node alignment tools and fixed coloring tools:

โจ Core Features (Officially Released)
| ๐ซ Intelligent Alignment System | ๐ซ Brand-new Coloring System | ๐ซ User-friendly Interaction Design | ๐ซ Brand-new Color Picker (Original Design) | |---------------------------|---------------------------|---------------------------|---------------------------| | โ Multiple Alignment Modes | ๐ผ๏ธ One-click Color Management | ๐ฑ๏ธ Floating Tool Panel | โ Native JS/CSS New Color Picking System | | ๐ Dynamic Spacing Distribution Algorithm | ๐ Real-time Linked Color Preview | ๐งฉ New Custom Configuration | ๐จ Color Palette Modes: Color/Grayscale/Custom | | ๐ฅ Multi-Node Group Coordination | ๐พ Custom Palette Saving & Restoring System | ๐พ Layout Memory & Restore System | ๐ Palette: Random/Favorite/Remove/Manual Add |
๐จ Color Management Module
- Two Coloring Modes: Title-only / Full-node ใv2.0.3_rc Newใ
- Seven Preset Colors: Quickly apply standard colors to selected nodes.
- Grayscale Palette: Hold the Shift key to switch to grayscale color mode. ใv2.0.1_rc Newใ
- Custom Palette: Hold the Alt key to enter custom color mode. ใv2.0.1_rc Newใ
- Color Favorites: Use Ctrl+Alt combo to lock/unlock custom colors. ใv2.0.1_rc Newใ
- Random Color: Click the random color button for a random color. ใv2.0.1_rc Newใ
- Super Random Colors: Press Alt key + Random Color Button to generate 7 random colors at once and apply them in real-time to selected nodes. ใv2.0.2_rc Newใ
- Smart Color Picker: Built-in HSB/RGB real-time color picker adapted for ComfyUI nodes. ใv2.0.2_rc Newใ (Zero dependencies, pure native JS+CSS development & design.)
- Real-time Node Color Preview: Real-time preview of color effects applied to nodes. ใv2.0.2_rc Newใ (Zero dependencies, pure native JS+CSS development & design.)
๐ง Node Alignment Tools
- Basic Alignment: Left align, Right align, Top align, Bottom align.
- Center Distribution: Vertical center and Horizontal center.
- Even Spacing: Horizontal even distribution and Vertical even distribution.
- Uniform Sizing: Equal width and Equal height adjustment.
- Smart Mode: Press Alt key + click corresponding Alignment Button for reverse reference alignment. ใv2.0.2_rc Newใ
๐ฏ Advanced Features
- Draggable Container: Freely draggable and scalable operation panel.
- Linkage Mode: Position linked with ComfyUI's Run button.
- Display Mode: Always visible or auto-show upon selection.
- Right-click Menu: Rich settings options and quick actions.
- Node Selection: Multiple selection tools and Magic Wand functionality. (In development and debugging...)
- Rename Tool: Batch rename nodes functionality. (In development and debugging...)
๐ Installation Methods
Method 1: Git Clone (Recommended)
cd ComfyUI/custom_nodes
git clone https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro.git
Method 2: Manual Installation
- Open the project address: https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro
- Download the plugin ZIP (
<>Code>Download ZIP). - Extract to the
ComfyUI/custom_nodesdirectory (Ensure correct directory hierarchy:ComfyUI/custom_nodes/ComfyUI_EasyKitHT_NodeAlignPro). - Restart ComfyUI.
Method 3: ComfyUI Manager
- Search for "NodeAlignPro" in the ComfyUI Manager (if not installed, install ComfyUI Manager first).
- Find
ComfyUI_EasyKitHT_NodeAlignPro, click Install. - Restart ComfyUI.
Supplementary: Git Update (First navigate to the ComfyUI_EasyKitHT_NodeAlignPro directory manually)
git fetch --all
๐ Quick Start (Brief Guide)
After successfully installing NodeAlignPro, basic operations (for reference).
- Node Coloring: In ComfyUI, select any node > Click any color button in the NodeAlignPro panel (hereafter NAP panel) (๐ด๐ ๐ก๐ข๐ต๐ฃ๐ค,
Clear Color,Color Picker,Random Color). - Custom Color: Select any node > Click the color picker button in the NAP panel.
- Node Alignment: Select any node > Click any alignment button in the NAP panel.
- Reverse Alignment: Select any node > Press Alt key + click the corresponding alignment button for reverse reference alignment.
โ Example:
Left Alignโ Select multiple nodes > PressAlt key+Left Align Button, then alignment uses therightmost nodeas thereferenceforleft alignment(Default left alignment uses the leftmost node as reference). - Dragging the NAP Panel: Without selecting any node > Click the buttons on the left/right sides of the NAP panel, a four-way arrow cursor (โโ) appears, then drag.
- Reset Settings: Without selecting any node > In the NAP panel > ใMouse Right-clickใ > ใOne-click Resetใ.
- Advanced Techniques: Please refer to the User Guide below ๐.
Basic Operations
- Start Plugin: The plugin loads automatically after ComfyUI starts.
- Show/Hide: Control visibility via right-click menu or hotkeys.
- Drag to Move: Drag the title bar or separator line to move the panel.
- Scale Adjustment: Adjust UI scaling via the right-click menu.
Color Mode Switching
| Key Combination | Mode Description | Function Description | |---------|---------|---------| | No Key | Default Mode | Seven preset colors | | Shift | Grayscale Mode | Black/white/gray series colors | | Alt | Custom Mode | Custom color management | | Ctrl+Alt | Lock Mode | Lock/Unlock custom colors |
Alignment Operations
- Select 2 or more nodes on the ComfyUI canvas.
- Click the corresponding button on the alignment panel:
- Left Align: Align all nodes to the left.
- Vertical Center: Vertically center all nodes.
- Right Align: Align all nodes to the right.
- Top Align: Align all nodes to the top.
- Horizontal Center: Horizontally center all nodes.
- Bottom Align: Align all nodes to the bottom.
Advanced Techniques
- Alt + Alignment Button: Use "reverse reference" for alignment.
- Double-click Color Picker Preview: Toggle between whole node / title-only coloring mode.
- Right-click Menu: Access full settings and reset functions.
- Container Linkage: Link the operation panel position with the Run button.
๐ Frequently Asked Questions
- Q: What if the plugin doesn't show up? โA: Check if installed correctly in the custom_nodes directory, restart ComfyUI, check the browser console for errors. Advanced users can also enter the following command directly in the console:
// Clear NodeAlignPro plugin-related data and force a reload
clear();const keysToRemove = ['NodeAlignProPosition', 'NodeAlignProRunButtonLink'];keysToRemove.forEach(key => localStorage.removeItem(key));console.log('NodeAlignPro has been reloaded');window.location.reload(true);
- Q: Colors cannot be applied to nodes? โA: Ensure nodes are selected, check if nodes are locked, try refreshing the page.
- Q: Alignment function doesn't work? โA: Ensure 2 or more nodes are selected, check node selection status, try clearing selection and reselecting.
- Q: How to reset all settings? โA: Right-click menu โ "One-click Reset", or clear browser localStorage.
- Q: How to display plugin operation logs? โA: Execute the following console command:
document.getElementById('hDebugInfo_V2')?.style.setProperty('display', 'block', 'important');
โ๏ธ Technical Features
Architecture Design
- ๐ Native Development: Implemented from scratch using only native JS+CSS.
- ๐ Zero Dependencies: No reliance on any third-party frameworks/libraries or existing code snippets.<small style="color:#999"> (Only imports the necessary Python built-in OS module in init.py) </small>
- ๐ด Fully Offline Operation: Runs entirely locally, no dependence on any network resources, ensuring security and reliability for local private deployment.
- ๐ Single File Characteristic: Centralized development in a single file. While slightly lengthy overall, it facilitates centralized management and debugging/maintenance.<small style="color:#999"> (Even using Windows Notepad; in fact, many minor adjustments were tested by tweaking directly with Notepad.) </small>
- ๐งฉ Modular Design: Separation of color, alignment, and UI controllers.<small style="color:#999"> (Achieves module separation on a single-file basis, facilitating future development to some extent.) </small>
- ๐ท๏ธ Standardized Naming: Customized a personal naming style for clear distinction.
- ๐ป Responsive Layout: Adapts to different screen resolutions.
- โก Performance Optimization: Throttling and debouncing in necessary sections.
- ๐พ State Persistence: Saves user settings to local storage.
- โ Truly Open Source / No Obfuscation: Complete retention of necessary comments and variable/parameter names, no code obfuscation for pseudo-open source.
Color System
- HSB/RGB/HEX: Full color space support.
- Real-time Preview: Node SVG preview updates in real-time.
- Intelligent Distribution: Multi-node color intelligent distribution algorithm.
- CSS Variables: Unified theme color management.
UI Components
- Draggable Container: Supports boundary detection and elastic bounce-back.
- Dropdown Menu: Smooth animations and hover interactions.
- Slider Control: Precise color value adjustment.
- Icon System: SVG vector icon rendering.
// Display Mode
- Always Show: Operation panel always visible.
- Follow Selection: Auto-show when 2 or more nodes are selected.
// UI Scaling
- 0.5x, 0.75x, 1x, 1.25x, 1.5x, 2x
</details>
<details>
<summary><b>๐Modes Settings...</b></summary>
// Drag Method
- Decoupled: Independent dragging of operation panel.
- Linked: Position linked with the Run button.
// Working Mode
- Alignment Mode: Basic alignment functions.
- Professional Mode: Advanced selection tools.
</details>
<details>
<summary><b>๐ File Structure of NodeAlignPro...</b></summary>
ComfyUI_EasyKitHT_NodeAlignPro/
โโโ __init__.py
โโโ README.md # English Documentation
โโโ README_ZH.md # ไธญๆ่ฏดๆๆๆกฃ
โโโ LICENSE # License File
โโโ pyproject.toml
โโโ ArtsticH/ # Project Files
โโโ hNodeAlignPro.js # Main Program File
โโโ Example/
โโโ NodeAlignPro_demo.json # Test Workflow
โโโ NodeAlignPro_demo.png # Example Image (contains test workflow)
</details>
๐ Changelog
v2.0.3_rc (Latest Release)
- Refactored color conversion logic
- Refactored screen color picker functionality
- Revised and improved the README documentation
- Fixed various bugs
v2.0.2_rc (2025-12-22)
- Improve UI prompts for the new version (v2.0.3_rc)
- Fix several bugs
- Rewrite MD tutorial documentation (Chinese-English bilingual)
v2.0.1_rc (2025-12-24Latest Release) [v2.0 Release]
- Added Shift/Alt/Ctrl combo key modes.
- Improved color picker performance and stability.
- Added node preview functionality.
- Optimized UI interaction experience.
v1.0.4_rc (2025-08-14)
v1.0.3_rc (2025-05-01)
v1.0.2_rc (2025-04-30)
v1.0.1_rc (2025-04-29) [v1.0 Release]
- Initial release version.
- Complete alignment and color functions.
- Draggable container system.
- Integrated color picker tool.
v2.0.2_rc 8a12160: ๐ฅNodeAlignPro Major Version Update, Optimized File Structure (New UI, More Complete Node Coloring System)โSee readme for details.
----------------
v2.0.1_rc dd2a09f: ๐ฅNodeAlignPro Major Version Update Released (New UI, More Complete Node Coloring System)
d90bd02: ๐ฅUpdate Preview (A Major Update for the Upcoming Version ๐)โSee README for details.
----------------
v1.0.4_rc b77a9d7: FIX README, ht History Optimization.
----------------
v1.0.3_rc a62e3a6: Fix the ui scaling adaptation issue, The interlocking control function has been newly added.
d067502: remove res, add hPic, FIX README,FIX README_ZH.md
----------------
v1.0.2_rc b11f325: upload README
cb93ffa-461032d: README Modifications
4e60dc2: Fixed REEADME, Rename some img, Add README_ZH.md
fac4c81: UPLoad README , Create README_ZH.md
9f1839e: README Modifications - Added UI Scaling Adaptation
ef5735d: Added UI Scaling, Fixed issue where old version color removal didn't work.
8ac01db: Added Main Features: Alignment Distribution, Node Coloring. Fixed Readme image display issues.
----------------
v1.0.1_rc 2926b82: README Modifications
10749c7: ComfyUI_EasyKitHT_NodeAlignPro is a newly developed ComfyUI node alignment plugin and node coloring plugin.
New visual UI, relatively more aligned with the common operational logic of designers.
Aiming to provide a relatively aesthetic user experience for everyone.
Added main features: Alignment distribution, Node coloring.
----------------
ca28236: Initial commit
----------------
# @Artstich_Example
# @name ComfyUI_EasyKitHT_NodeAlignPro (ComfyUI Plugin)
# @description ComfyUI_EasyKitHT_NodeAlignPro is a lightweight ComfyUI node alignment and node coloring tool
# for refactoring and rewriting the UI based on the open-source projects Comfyui-Align and Comfyui-Nodealigner.
# @author Artstich @date 2025-06-15 @version v2.0.2_rc @license GPL-3.0
# @see https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro
</details>
## ๐ค Contribution Guidelines
- Welcome participation through the following ways:
Submit usage feedback,New Issue,Improve code logic,Fork & PR,Improve multilingual documentation,Share your creative node layouts,Share your custom color palettes
๐ License
- This project is licensed under the GPL-3.0 License. For details, please see the LICENSE file.
๐ฅ Contributors
- ArtsticH - Project creator and main developer.
- ISISUES: @JGDMGJAPT ใ@MAOMAOCHONGNEใ@aimposerใ@Rock-suv...
- Thanks to all designers, developers, testers, ComfyUI users, and feedback providers who helped.
๐ Related Links
- GitHub Repository | Issue Feedback | ComfyUI Community | ComfyUI-Manager
- Author's video tutorial link: https://www.bilibili.com/video/BV1V7G9z9EcU (This link is for the
v1.0.4_rcold version tutorial; v2.0.2_rc new version tutorialๅพ ๅฝๅถ)
๐จ๐ป The first small project developed by a designer in spare time. Welcome to report usage issues. โ ๏ธ There may be untested scenarios causing anomalies. Please report via Issues. (If you like it, please consider giving it a Starโญ. Your encouragement is my greatest motivation!) Welcome interested friends to join!
<small style="color:#999">This document was last updated: 2025-12-24 01:51 @ArtsticHยท2025</small>