explaingit

captaingrock/comfyui-photopea

Analysis updated 2026-05-18

2JavaScriptAudience · generalComplexity · 2/5Setup · easy

TLDR

A ComfyUI extension that opens the Photopea browser image editor inside ComfyUI so you can edit node images without leaving the app.

Mindmap

mindmap
  root((ComfyUI-Photopea))
    What it does
      Opens Photopea inside ComfyUI
      Edit image or mask node outputs
      Save edits back to node
    Tech stack
      JavaScript
      ComfyUI custom node
      Photopea embed
    Use cases
      Touch up images mid workflow
      Edit masks without exporting
      Quick edits via Clipspace panel
    Audience
      ComfyUI users
      Image workflow builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Edit an image node's output directly inside ComfyUI using Photopea.

USE CASE 2

Touch up a mask without exporting it to a separate editor.

USE CASE 3

Open the Photopea editor from the Clipspace panel for quick fixes.

USE CASE 4

Install the extension through ComfyUI Manager without touching the command line.

What is it built with?

JavaScriptComfyUI

How does it compare?

captaingrock/comfyui-photopea3imed-jaberi/cryptography-si-isamm3imed-jaberi/koa-isomorphic-router
Stars222
LanguageJavaScriptJavaScriptJavaScript
Last pushed2021-09-252021-02-06
MaintenanceDormantDormant
Setup difficultyeasyeasyeasy
Complexity2/51/52/5
Audiencegeneralresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Installs like any ComfyUI custom node, via git clone into custom_nodes or through ComfyUI Manager.

In plain English

ComfyUI-Photopea is a small extension for ComfyUI, the node based interface for building AI image generation workflows, that lets you edit images without leaving the app. Normally, if you wanted to touch up an image partway through a ComfyUI workflow, you would need to export it, open a separate image editor, make your changes, and bring the result back in. This extension removes that round trip by loading Photopea, a browser based image editor, right inside ComfyUI. Once installed, the extension adds a right click option called Open in Photopea editor on any node in your workflow that outputs an image or a mask. Clicking it opens Photopea in an embedded window loaded with that node's image. You can then make whatever edits you need inside Photopea itself, and when you are done, a Save to node button writes the edited image back into the original node, replacing its output. There is also a Photopea Editor button available from the Clipspace panel for the same purpose. Installation follows the usual ComfyUI custom node pattern. You can either clone the repository directly into your custom_nodes folder with git and restart ComfyUI, or install it through the ComfyUI Manager by searching for ComfyUI-Photopea and clicking Install. The README is upfront that this extension has not been extensively tested and may have bugs, particularly around Clipspace actions, so it should be used with that in mind. It also notes one known limitation that is still open for discussion: every time you click Open in Photopea, it opens a brand new Photopea document rather than reusing an existing session. The README does not mention a license.

Copy-paste prompts

Prompt 1
Walk me through installing ComfyUI-Photopea using git into my custom_nodes folder.
Prompt 2
Explain how the Save to node button in ComfyUI-Photopea replaces a node's image.
Prompt 3
Help me install ComfyUI-Photopea through the ComfyUI Manager interface.
Prompt 4
What are the known limitations of ComfyUI-Photopea mentioned in its README?

Frequently asked questions

What is comfyui-photopea?

A ComfyUI extension that opens the Photopea browser image editor inside ComfyUI so you can edit node images without leaving the app.

What language is comfyui-photopea written in?

Mainly JavaScript. The stack also includes JavaScript, ComfyUI.

How hard is comfyui-photopea to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is comfyui-photopea for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.