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.
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).
⚠️ about ComfyUI Node 2.0...
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)))
💫 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 UI...
Legacy v1.0.4_rc: Only provided basic node alignment tools and fixed coloring tools:

| 💫 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 |
- 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.)
- 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】
- 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...)
cd ComfyUI/custom_nodes
git clone https://github.com/ArtsticH/ComfyUI_EasyKitHT_NodeAlignPro.git
- 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.
- Search for "NodeAlignPro" in the ComfyUI Manager (if not installed, install ComfyUI Manager first).
- Find
ComfyUI_EasyKitHT_NodeAlignPro, click Install. - Restart ComfyUI.
git fetch --all
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 👇.
🖥️ User Guide...
- 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.
| 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 |
- 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.
- 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.
- 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');
- 🌐 Native Development: Implemented from scratch using only native JS+CSS.
- 🔒 Zero Dependencies: No reliance on any third-party frameworks/libraries or existing code snippets. (Only imports the necessary Python built-in OS module in init.py)
- 📴 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. (Even using Windows Notepad; in fact, many minor adjustments were tested by tweaking directly with Notepad.)
- 🧩 Modular Design: Separation of color, alignment, and UI controllers. (Achieves module separation on a single-file basis, facilitating future development to some extent.)
- 🏷️ 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.
- 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.
- 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 Settings...
// 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
📁Modes Settings...
// 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.
📁 File Structure of NodeAlignPro...
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)
- Refactored color conversion logic
- Refactored screen color picker functionality
- Revised and improved the README documentation
- Fixed various bugs
📄 Release History...
- Improve UI prompts for the new version (v2.0.3_rc)
- Fix several bugs
- Rewrite MD tutorial documentation (Chinese-English bilingual)
- Added Shift/Alt/Ctrl combo key modes.
- Improved color picker performance and stability.
- Added node preview functionality.
- Optimized UI interaction experience.
- Initial release version.
- Complete alignment and color functions.
- Draggable container system.
- Integrated color picker tool.
📄 Release History...
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
- 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
- This project is licensed under the GPL-3.0 License. For details, please see the LICENSE file.
- 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.
- 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.
This document was last updated: 2025-12-24 01:51 @ArtsticH·2025

