File size: 1,465 Bytes
c225a63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
"""

ComfyUI INSTARAW

A general-purpose custom nodes package by Instara



INSTARAW is a collection of powerful custom nodes for ComfyUI that brings together

hard-to-install dependencies and integrations in one convenient package.



Features:

- API Integrations: SeeDream, Ideogram, and more

- Easy Installation: Pre-packaged dependencies

- Modular Design: Easy to extend and customize

- INSTARAW Brand: Where we push the boundaries



Created by Instara

"""

import os
import nodes

# This line is critical for loading the JavaScript and CSS files.
# It tells ComfyUI where to find the web assets for this extension.
if "ComfyUI_INSTARAW" not in nodes.EXTENSION_WEB_DIRS:
    nodes.EXTENSION_WEB_DIRS["ComfyUI_INSTARAW"] = os.path.join(os.path.dirname(os.path.realpath(__file__)), "js")

from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS

# Import creative API to register endpoints (after nodes are loaded)
try:
    from .nodes.api_nodes import creative_api
except Exception as e:
    print(f"[INSTARAW] Warning: Could not load creative_api: {e}")
    print("[INSTARAW] Creative/Character generation features will not be available.")

# Required exports for ComfyUI
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]

# Package metadata
__version__ = "1.2.0" # Version bumped to reflect the major addition
__author__ = "Instara"
__description__ = "INSTARAW - General purpose custom nodes for ComfyUI"