comfyui-ap-tools
A ComfyUI extension with 4 custom nodes.
Nodes (4)

ComfyUI AP Tools
A set of useful custom nodes for ComfyUI that improve convenience when working with images, file paths, and execution time.
π¦ Installation
- Navigate to the
custom_nodesfolder of your ComfyUI installation - Clone the repository:
git clone https://github.com/your-username/comfyui-ap-tools.git
- Restart ComfyUI
- Use Manager for installation
β¨ Features
The module contains 4 nodes with rich user interface:
π§ AP Image File Path
Category: ap-tools

Convenient file path constructor with template support. Allows saving frequently used paths and quickly switching between them.
Inputs:
file_name(STRING): File name without extensionfile_path(STRING): Base path (hidden field, controlled by UI)
Outputs:
full_path(STRING): Full assembled path in Windows format (with backslashes)
Features:
- β Path template manager (save/delete)
- β Automatic combination of base path and file name
- β Relative paths support
- β Settings are saved in node properties
- β Minimum node size: 350x170 pixels
Usage:
- Enter the output file name in the
file_namefield - In the templates section select an existing template or create a new one
- Enter relative path in the path field (it will be added to the selected template)
- Full path is automatically assembled and passed to output
πΌοΈ AP Image Preview
Category: ap-tools

Improved image previewer with zoom, loupe, and grid mode support.
Inputs:
image(IMAGE): Image or image batch for preview
Outputs:
No outputs (display only)
Features:
- β Display modes: Single and Grid
- β Batch image navigation (β β arrows)
- β Scalable loupe (zoom 1.5x - 8.0x)
- β Automatic size fitting to node
- β Browser DPI scaling support
- β Minimum node size: 420x460 pixels
- β Hides standard ComfyUI output
Controls:
- Mode: Switch between single and grid display
- Zoom: Change loupe magnification level
- β β: Navigate through images in batch
- Mouse hover: Shows loupe with magnified fragment
π AP Image Compare
Category: ap-tools
https://github.com/user-attachments/assets/95954dc6-0af3-4eb9-930e-3bb57473aa06
Tool for comparing two or more images with different modes.
Inputs:
image_1(IMAGE): First image (required)image_2(IMAGE): Second image (required)image_3(IMAGE): Third image (optional)image_4(IMAGE): Fourth image (optional)
Outputs:
No outputs (display only)
Features:
- β Two comparison modes: Overlay and Split
- β Select any two images for comparison from 4 inputs
- β Transparency adjustment in overlay mode
- β Interactive splitter (draggable with mouse)
- β Zooming and panning
- β Center and Reset buttons for quick view reset
- β Minimum node size: 520x500 pixels
- β Mouse wheel for quick zoom
Modes:
- Overlay: First image over second with adjustable transparency
- Split: Vertical splitter that can be dragged to compare details
β±οΈ AP Execution Timer
Category: ap-tools

Workflow execution timer with history of recent runs.
Inputs:
No inputs
Outputs:
No outputs (display only)
Features:
- β Real-time from execution start to end
- β History of last 3 runs
- β
Time format:
HH:MM:SS.ms - β Automatic start/stop when queue runs
- β Preserves state on page reload
- β Minimum node size: 440x160 pixels
- β Monospace font for easy reading
Display:
- Main counter with millisecond precision
- List of last 3 executions with number and time
π Project Structure
comfyui-ap-tools/
βββ __init__.py # Node registration and API endpoints
βββ templates.json # Saved path templates storage
βββ nodes/
β βββ ap_image_file_path.py # AP Image File Path node logic
β βββ ap_image_preview.py # AP Image Preview node logic
β βββ ap_image_compare.py # AP Image Compare node logic
β βββ ap_execution_timer.py # AP Execution Timer node logic
βββ web/js/
βββ ap_image_file_path.js # Template manager frontend
βββ ap_image_preview.js # Previewer with loupe frontend
βββ ap_image_compare.js # Image comparison frontend
βββ ap_execution_timer.js # Timer frontend
π API Endpoints
Module provides following API methods for working with templates:
| Method | Path | Description
|--------|-------------------------------|-------------------------------------
| GET | /ap-tools/templates | Get list of all template names
| GET | /ap-tools/templates/all | Get all templates with paths
| POST | /ap-tools/templates | Save new template
| DELETE | /ap-tools/templates/{name} | Delete template by name
| GET | /ap-tools/execution-timer/uptime | Get ComfyUI uptime
π‘ Usage Tips
- AP Image File Path works great with image save nodes β use the
full_pathoutput as input forfilename_prefix - For comparing different generation variants use AP Image Compare β it's much faster than opening images in separate programs
- AP Execution Timer helps optimize workflows β notice execution time grew? Means something can be optimized
- All nodes automatically adapt to ComfyUI interface scale
π οΈ Technical Details
- All nodes use native ComfyUI extension mechanisms
- Frontend written in pure JavaScript without external dependencies
- Path templates are stored in
templates.jsonfile in module root - Timer history is stored locally in browser
localStorage - Only Windows path style is supported (backslashes
\) - Preview and comparison images are saved in ComfyUI temp folder
π Requirements
- ComfyUI version 0.1.0 or higher
- Python 3.8+
- Compatible with all operating systems (Windows, Linux, macOS)
π€ Support
If you found a bug or want to suggest an improvement, create an issue in the repository.