Extensions/ComfyUI_html
ComfyUI Extension

ComfyUI_html

A ComfyUI extension with 6 custom nodes.

By filipemeneses·Created about a year ago·Updated about a year ago· 2
filipemeneses/ComfyUI_html
Nodes6
On cloudLocal install
Categoryutils, html
Stars2
Updatedabout a year ago
Readme

ComfyUI HTML Preview Node

A ComfyUI custom node that allows you to preview and manipulate HTML content directly in your workflow.

Installation

  1. Clone this repository into your ComfyUI/custom_nodes directory
  2. Restart ComfyUI

Nodes

HTML Preview

A node that allows you to preview HTML content with configurable viewport settings:

  • width: Width of the preview viewport (default: 375px)
  • height: Height of the preview viewport (default: 667px)
  • scale: Scale factor for the preview (default: 1.0)
  • is_portrait: Toggle between portrait/landscape orientation
  • html: HTML content to preview (string input)

HTML Download

A node that allows you to download HTML content as a file:

  • filename: Name of the file to download (default: "myhtml.html")
  • html: HTML content to download (string input)

Single Image to Base64

A utility node that converts an image into a base64 string representation:

  • image: Input image to convert
  • Returns: Base64 encoded string of the image

Save HTML

A node that saves HTML content to your ComfyUI output directory:

  • html: HTML content to save (string input)
  • filename_prefix: Prefix for the output filename (default: "ComfyUI")

The filename prefix supports formatting patterns:

  • Date/time: %date:yyyy-MM-dd%, %date:hh-mm-ss% etc.

The HTML file will be saved with an auto-incrementing counter in your ComfyUI output folder.

Workflows

HTML Preview